Archives for DevOPS - Page 3
How to install Logstash in Linux
Install Logstash in Linux In this article I will cover installation of the Logstash in Linux and basic configuration apart from it I will cover validation of Logstash configuration. How Can we start and stop Logstash and verifying that everything is running properly Let's start with What is Logstash? What…
How to change slow log settings in Elasticsearch
What are the slow log settings in Elasticsearch? Elasticsearch provide facility to keep track of your slow queries while indexing and searching data. It helps us to identify the slow elasticsearch query. You can configure slow log threshold according to your requirement. Its just depends on your architecture. Sometimes 2s…
Partial Update in Elasticsearch
Partial Update in Elasticsearch Partial update in elasticsearch works same as updating whole document in Elasticsearch. This process retrieve the document, change it and reindex it again. In elasticsearch partial update is done through Update API. Update API also support scripting language to update a document. We can write our…
Updating Document in Elasticsearch
Documents in Elasticsearch are always immutable we cannot replace or change them directly. If we require updating document in Elasticsearch then we need to reindex or replace it. We can change an existing document by using Index API as well. Elasticsearch delete the old document automatically and add a new…
How to Increase or Decrease Replica in Elasticsearch
How to increase or decrease replica in Elasticsearch You can change number of replicas in live Elasticsearch Cluster using Indices APIs update indices settings. Update number of replicas for all indices: curl -XPUT 'localhost:9200/_settings' -d ' { "index" : { "number_of_replicas" : 2 } }' Update number of replicas for…
Add New Node in Elasticsearch Cluster
How to add new node in elasticsearch cluster? Here is step by step guideline to add new node in existing elasticsearch cluster. 1) Elasticsearch Installation: Install elasticsearch in new node. Elasticsearch version should be same as existing cluster nodes. If you are not aware then you may refer my these…
CircuitBreaking Exception: Data Too Large for field parent/child id cache
You might get this problem with fielddata size limit. fielddata size limit is checked after the query data is loaded. When your elasticsearch query tried to load data more than the fielddata available memory then you would get the OutOfMemoryException. Caused by: : Data too large, data for field would…
How to Delete a Git branch?
Delete a git branch This article will demonstrate, how we can delete a git branch from local or remote git repository. Syntax: git branch -d<branch> git branch -d test-branch If you face any error like "error: The branch 'test-branch' is not fully merged" and you are still want to delete…
Test Elasticsearch Query Performance
I am using two tool to benchmark query performance of an Elasticsearch server. Initially I faced problem to test elasticsearch query performance for large elasticsearch query as it's very hard to put large query in command line. Then I found these two tool, having support to pass json as a…
Install Elasticsearch using Repositories
Install Elasticsearch using Repositories You can easily install Elasticsearch using APT and YUM repository - Install Elasticsearch Using APT repository - Install Elasticsearch Using Yum repository Install Elasticsearch on Debian: Step 1: Download and Install Elasticsearch Public signin key wget -qO - | sudo apt-key add - Step 2: Installation…





