Category Archives: Programming

Java JConsole – Local Process List Empty – Solved

JAVA JCONSOLE – LOCAL PROCESS LIST EMPTY – SOLVED.png

Java JConsole – Local Process List Empty – Solved

JAVA JCONSOLE – LOCAL PROCESS LIST EMPTY – SOLVED.png

JConsole or  Java Monitoring and Management Console Open command prompt Execute the command echo %TMP% Now you will get a path to a folder where temporary files are stored. E.g. C:\Users\Username\AppData\Local\Temp Go to that folder Remove the folder named hsperfdata_USERNAME Restart JConsole application and now you will have the list of currently running Java processes in the local process… Read More »

Elasticsearch – Compare/ScriptFilter/Condition on Two Fields using Script Filter – REST Query + Java API

Elasticsearch - Compare or Script Filter or Condition on Two Fields using Script Filter - REST Query + Java API

Elasticsearch – Compare/ScriptFilter/Condition on Two Fields using Script Filter – REST Query + Java API

Elasticsearch - Compare or Script Filter or Condition on Two Fields using Script Filter - REST Query + Java API

Example 1: GET /INDEX/TYPE/_search { “query”: { “filtered”: { “filter”: { “script”: { “script”: “doc[‘field1’].value < doc[‘field2’].value” } } } } } Example 2: GET /INDEX/TYPE/_search { “query”: { “filtered”: { “filter”: { “script”: { “script”: “doc[‘field1’].value – doc[‘field2’].value > 10” } } } } } Java API: import org.elasticsearch.index.query.FilterBuilders; import org.elasticsearch.action.search.SearchRequestBuilder; import org.elasticsearch.action.search.SearchResponse; import… Read More »

Elasticsearch – Use Script Filter/Conditon in Aggregation/Sub-Aggreagtion

Elasticsearch - Use Script Filter or Conditon in Aggregation or Sub-Aggreagtion

Elasticsearch – Use Script Filter/Conditon in Aggregation/Sub-Aggreagtion

Elasticsearch - Use Script Filter or Conditon in Aggregation or Sub-Aggreagtion

Example 1 – REST: GET /INDEX/TYPE/_search { “size”: 0, “aggs”: { “FILTER_NAME”: { “filter”: { “script”: { “script”: “doc[‘field1’].value < doc[‘field2’].value” } } } } } Example 1 – Java API: SearchRequestBuilder searchRequestBuilder = esClient .prepareSearch(“INDEX) .setTypes(“TYPE”) .setSize(0) .addAggregation( AggregationBuilders.filter(“FILTER_NAME”).filter(FilterBuilders.scriptFilter(“doc[‘filed1’].value > doc[‘field2’].value”))); SearchResponse searchResponse = searchRequestBuilder.execute().actionGet(); Map<String, Aggregation> aggMap = searchResponse.getAggregations().asMap(); InternalFilter filter = (InternalFilter)… Read More »

ElasticTab – Elasticsearch to Excel Report

ElasticTab - Elasticsearch to Excel Report

ElasticTab – Elasticsearch to Excel Report

ElasticTab - Elasticsearch to Excel Report

GitHub Page : ElasticTab – Elasticsearch to Excel Report ( https://github.com/raghavendar-ts/ElasticTab-Elasticsearch-to-Excel-Report ) 1. Introduction There are a lot of companies(small scale to large scale companies) who use Elasticsearch to store massive amount of to data.Most of them find it hard to generate simple reports from Elasticsearch to get information out of it. So this Java application can be… Read More »

Elasticsearch and Logstash – General Guide Links

Elasticsearch and Logstash - General Guide Links

Elasticsearch and Logstash – General Guide Links

Elasticsearch and Logstash - General Guide Links

Web Application for Elasticsearch : ElasticTab – Elasticsearch to Excel Report (Web Application) Elasticsearch Plugin: Elasticsearch Plugin To Generate (Save and E-Mail) Excel Reports Elasticsearch: Execute Multiple Search Query in Elasticsearch Monitor Elasticsearch Servers with Shell Script – E-Mail Notification Execute Raw Elasticsearch Query using Transport Client – Java API Elasticsearch – Apply Nested Filter on… Read More »