Elastic App Search Analytics

Hello,

I am building a custom dashboard where I would like to display all my users search queries, top queries, top queries no results and many other statistics for the past 1 year using elastic app search analytics API (Analytics APIs | Elastic App Search Documentation [7.16] | Elastic). I was wondering whether it is possible to show data prior to 180days as in the elastic app search dashboard it states that “Your analytics are stored for at least 180 days”.

  1. Can I fetch data the for the last one year ?
  2. Can I create a snapshot of the data at the end of the year (before deletion) ?
  3. Can I use ILM (index lifecycle management) to change lifecycle policy from 180-days-default ?
  4. Do I have the ability to change the lifecycle policy for the indices related to the elastic app search ?
  5. Is it possible to track the user created the search query using elasticAppSearch analytics API?
  6. Am I able to fetch data before 7 days using elasticAppSearch analytics API?

Hi @aly ,

All good questions! I think that they can all be answered with Log retention | Enterprise Search documentation [8.11] | Elastic

  1. Can I fetch data the for the last one year ?

Yes, if you change your ILM policy to retain data that long, or disable ILM.

  1. Can I create a snapshot of the data at the end of the year (before deletion) ?

Yes, if you'd changed your ILM policy to retain data that long, or disabled ILM.

  1. Can I use ILM (index lifecycle management) to change lifecycle policy from 180-days-default ?

Yes! See my link above.

  1. Do I have the ability to change the lifecycle policy for the indices related to the elastic app search ?

Yes! See my link above.

  1. Is it possible to track the user created the search query using elasticAppSearch analytics API?

Check out our Tags guide. Since App Search uses a public search key, we don't automatically distinguish one "user" from another. It would be up to you to distinguish users and identify who was searching via a tag. Then you could filter by tag in the Analytics API.

  1. Am I able to fetch data before 7 days using elasticAppSearch analytics API?

Assuming you mean after 7 days - yes! As long as you've configured your ILM policy to retain data that long, or have disabled ILM.

1 Like