Kibana - Exclude field with same value


#1

I am trying to create a graph which displays deltas from the previous week and current week. In terms of delta, I would like to display the events that showed up last week, but not the current week AND the events that showed up this week, but not last week.

In each event there is an "ID" field. I would use the "ID" field to get the deltas. If there are duplicate ID's, these events would be omitted from the graph. I've looked into aggregated unique counts and json input, but could not find a solution. Any help would be appreciated.


(Brandon Kobel) #2

@chg Unfortuantely, this isn't something that is currently supported. Elasticsearch has limited Join support and neither of these types of joins appears to solve your problem, so Kibana isn't able to do so either.


#3

Thanks for the response Brandon. I was thinking of something along the lines of setting the date range to the current week and previous week, so I could look at only those events. And then somehow get a unique count of the ID's. If the count is greater than 1 for an ID, the event that contains that ID would be excluded. Is this possible to implement?


(Brandon Kobel) #4

@chg it sounds like you're wanting to do custom excludes based on another query, which would require an unsupported Join.


#5

I was searching around and came upon scripted fields. Is there a way to generate a count and store in a scripted field? And then filter the events using the scripted field.


(Brandon Kobel) #6

@chg I'm not seeing how scripted fields would help you in this scenario. Elasticsearch/Kibana doesn't have a built-in mechanism to allow you to create scripted fields based on the counts in Elasticsearch.


#7

I see. Thanks @Brandon_Kobel for the reply.


#8

I came across the bucket selector aggregation, which seems to do what I want. But do you know if this feature is available in Kibana? I currently have version 4.6 installed and do not see this feature.


(system) #9

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.