# Log search requests of my users to my application?

**URL:** https://discuss.elastic.co/t/log-search-requests-of-my-users-to-my-application/222237
**Category:** Elasticsearch
**Tags:** elastic-stack-monitoring
**Created:** [March 5, 2020, 8:47am UTC](https://discuss.elastic.co/t/log-search-requests-of-my-users-to-my-application/222237 "2020-03-05T08:47:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Mattness](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattness/32/52975_2.png) [@Mattness](https://discuss.elastic.co/u/Mattness)
#### Post date: [March 5, 2020, 8:47am UTC](https://discuss.elastic.co/t/log-search-requests-of-my-users-to-my-application/222237/1 "2020-03-05T08:47:05Z")

</div>

Simply put if a user searches for anything on my site I want to be able to quantify and analyze it. How can I achieve this?

---

<div class="post-metadata">

### Author: ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)
#### Post date: [March 5, 2020, 8:57am UTC](https://discuss.elastic.co/t/log-search-requests-of-my-users-to-my-application/222237/2 "2020-03-05T08:57:01Z")

</div>

Hi,

I don't know if this would be overkill but ElasticSearch provides a Slowlog: [https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-slowlog.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-slowlog.html)

You could configure this for your needs(e.g. all queries or only queries slower than X ms) and ingest the logfile into ElasticSearch. Then you can query the data by username and everything.

Best regards  
Wolfram

---

<div class="post-metadata">

### Author: ![Mattness](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattness/32/52975_2.png) [@Mattness](https://discuss.elastic.co/u/Mattness)
#### Post date: [March 5, 2020, 9:01am UTC](https://discuss.elastic.co/t/log-search-requests-of-my-users-to-my-application/222237/3 "2020-03-05T09:01:25Z")

</div>

Thanks, I'll check it out.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [April 2, 2020, 9:01am UTC](https://discuss.elastic.co/t/log-search-requests-of-my-users-to-my-application/222237/4 "2020-04-02T09:01:25Z")

</div>

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