I have created 2 index say a-b-middletier and a-b-database upon that i have created a kibana visualisation (Data Table) by merging these 2 indexes say a-b-*. i would like to see the counts w.r.t middletier and database with the label say count_for_middletier and count_for_database.
There might be other ways to do this, but I found a way to get those counts only for specific indexes (not wildcarded);
I have packetbeat and topbeat running. I created an index pattern *beat-* which is what I've used in this Data Table visualization. I Split Rows on a Filters aggregation type, and added 2 filters; _index: topbeat-2016.08.24
and _index: packetbeat-2016.08.24
One issue with this is that when you look at the Data tab for the visualization it shows a blank for the Field because _index isn't in the list so it can't show that selection. This technique will find all indexes that match your current index pattern, but it's not going to group them by their type like a-b-middletier or a-b-database (I'm assuming you have time-based indexes).
I would like to tell you the whole scenario, so that you can help me resolving this issue in particular.
I have 2 index, one for database and another for weblogic.
I will be getting 2 different set of fields i.e one set for middletier and the other for database right and there are few common fields like name and version among both.
Example: Lets assume you got 2 products product 1 and 2 with some version, both product have some middletier and database events you want to list(count). can you Please help me how to resolve this issue ??
I would like to see 4 following columns (expected).
Name Version count(middletier) count(database)
product_1 1.1 25 20
product_2 1.2 34 12
It will be really very helpful, if you can help me resolving this issue.
with some common fields (name and version) among all 4 indexes.
so here product_1 will have both middletier and database events (index: a-b-database-product_x, a-b-middletier-product_x)
hence the product_1 has count of 25 for middletier and 20 for the the database right, so for product_y ?
If i use the index as a-b-* in the kibana visualisation (very specifically Data Table), i would expect the following to appear.
I would like to see 4 following columns (expected).
Name Version count(middletier) count(database)
product_x 1.1 25 20
product_y 1.2 34 12
It will be really very helpful, if you can help me resolving this issue.??
please let me know if you have any doubt.
If you followed along with my previous steps and have a Data Table which has a terms aggregation on _index, then you should click to "Add sub-buckets" under that and again select Terms, version.
It won't lay it out exactly as you have shown like a spreadsheet. Instead it will have one column for all counts, and the rows will be for each unique set of the aggregations you have.
Can't we have multiple count columns in one Data Table (kibana Visualisation) and specific filter for each column say count(middletier) or count(database)??
I was thinking, can we do this with JSON input under advanced option ??
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.