I saw in documentation that its better to have less indexes and created only 1 index for all my different types of JSON.
I have a fields.log_type which shows different types of services that generate the logs. When I make a query the said field exists in all logs and one more field responseCode exists in only 1 service log. So when I query I am getting wrong results kindly suggest.
No sure what you need about the fields. These are the fields that are generated by filebeat and logstash respectively.
The query is returning incorrect set of records its not a rest query its the SQL type query in kibana using which we search for records or filter records.
its not a rest query its the SQL type query in kibana
All queries to elasticsearch are REST - they are transported over HTTP and use the verbs GET, POST, PUT, and DELETE. The Java client uses the exact same mechanism, it just provides a nice API around the underlying HTTP requests and responses.
Log the query request generated by the Java client, in either elasticsearch or via the Java client. Then compare how the _search request is different between the working version and the Java generated version.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.