Log search requests of my users to my application?

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?


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

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

Thanks, I'll check it out.

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