I have two indexes - "logstash-*" and let's call it "myindex".
The first one contains basic information I need. It has the following fields related to my question:
"timestamp"
"event" - string field
"myinfo" - string field
The second one contains some additional information that I want to use in couple of visualizations. It also contains one field that could be linked with fields from the "logstash-*" index:
"myinfo" - string field
What I want to do:
Pull special events from "logstash-*" index and build a pie chart based on information I have in "myindex" index for every unique occurence of "myinfo" field.
Is it possible?
Or it will be simplier/smarter to update some of my documents in "logstash-*" index with my additional information?
If the thing I want is too complicated to make, then I'll difinitely try to merge information from my second index into the main (logstash-*).
My initial idea was to distinguish information from different sources into different indexes, but I didn't expect it will bring me troubles with building visualisations.
The reason why I separated some information into the "myindex" is fact that "logstash-* " index could have a lot of events (up to 100k atm) with the same "myinfo" field, so updating "logstash-*" index documents will produce overhead.
Thanks for the tip, but it doesn't work. None of the documents from the "myindex" satisfy the search query (I'm searching for the specific event).
As far as I understand, in order to make it work, my documents in "myindex" index must have two fields:
"timestamp" - in order to make it possible to visualize depending on the time interval choosen in Kibana
"event" - because I'm running a search for specific event type
But adding this two fields to the second index will result in is almost the same situation as if I just update my "logstash-*" index with the additional information from the "myindex".
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.