I made another post earlier during the day, but didn't get any response. I've tried a lot of things during the day but i think understanding the issue is more important.
My question is, if i have two types under the same index that have the following fields
index/logs
field: jobid
field: buisnessevent
index/errors
field: jobid
field: errorid
is it possible to aggregate in kibana by buisnessevent?
i'm trying to get a list of every business event, and display how many jobs (with and without errors) per event.
From what i understand because index/errors doesn't have the buisnessevent field, i can't aggregate based on it.
Hi Robert,
I also have some use case like your where I need to aggregate data based on some field and then when user clicks on the particular field it should show details of the results.
Can you please help me how you are trying to achieve this?
I dont know the details of your case, but i was importing data from MSSQL using JDBC drivers between three tables using logstash.
What i ended up doing was using 'Left Join' in my SQL query, instead of having two different tables, i flattened it out into one and imported. so from
index/logs
field: jobid
field: buisnessevent
index/errors
field: jobid
field: errorid
i endded up with one _type: index/logs
field: jobid
field: businessevent
field: errorid
and it doesn't matter if i have two error id for one jobid, i'll just have two entries and i can aggregate in kibana using "unique count" or "cardinality"
Thank you so much for the response. I will try the way you are using it. My use case is I need to aggregate data based on correlation id or some token. Can you please let me know if we can create hyperlinks in Kibana and use it to view details of the fields.
If you need to view the details of a document, you can check the discover tab in kibana and on the left part of the window under 'available fields', just add the fields you want. After that you can save it as a search and add it to a dashboard (i think that's what you want).
I'm kind of new to kibana, so there might be other ways around doing what you want
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.