Replicating Splunk query

(Mulligan) #1

Hi I have injested my data into ELK and i can see the data in Kibana as well.

in splunk i have this query

index=app "verifyStatusCode" | stats ExecutionTime

I can see the ExecutionTime field in kibana as per my GROK filter, now i want to just visualise the same thing in ELK Single Value visualisation, by searching for events which have "verifyStatusCode" and their Execution time.

Need help in writing the Elastic search query for this one.

(Marius Dragomir) #2

Where do you want to write the query for this in Kibana? In the filter json input or in the search bar?
Also, what version of Kibana are you using? (as there may be deprecations in query syntax between versions). Also, you can check out the latest 6.0.0 beta (should come out soon) that has a visual filter builder.

(Mulligan) #3

Yes i want to create using the search bar. How do we create using the JSON input?

(Marius Dragomir) #4

You can create a filter in Kibana like this:
once you create it, that filter can be edited and you can modify it's JSON object.
This is a guide to QueryDSL which is used in the filter syntax:

You need _exists_" from there for theverifyStatusCode` field.

(system) #5

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