Adding metadata to a query for slow log analysis

I have reviewed the Elasticsearch reference and have been unable to identify a way to add miscellaneous metadata to a query (not as query parameters to match/filter results), but instead specifically for the purposes of recording metadata in the index search slow log for analysis. Here are three very simple examples of miscellaneous metadata that I would like to appear in the slow log for a given slow query:

  • application search category (front-end search applications allows for different categories of feature-based searches)
  • application search unique id (a unique id assigned to every user search)
  • policy code (various searches that were conducted based on a policy search)

Is this possible?

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