Log for ALL elasticsearch search queries, query latency, and query hits

Hey folks,

I'd like to setup logstash to keep track of all search queries made against
my elasticsearch cluster along with the amount of time it takes to return
the results and number of results returned. Ideally the log file should
contain something like:

{ query: foobar, time_taken: 100ms, num_hits: 5 }

Does elasticsearch expose a logfile that contains this information? I could
only see the query_slow and index_slow log files, which contain a subset of
the information I'd like logstash to process.

Worst case, I log this data in the application layer, but it would be nice
if elasticsearch took care of it - better separation of concerns.

Thanks,

Dhruv

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/88771eba-8abf-49e3-a8e6-c4df00fcdacc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

1 Like