# Monitor users (requests, CPU usage, etc.)

**URL:** <https://discuss.elastic.co/t/monitor-users-requests-cpu-usage-etc/340018>\
**Category:** Elasticsearch\
**Created:** [August 3, 2023, 8:37am UTC](https://discuss.elastic.co/t/monitor-users-requests-cpu-usage-etc/340018 "2023-08-03T08:37:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GinkoLucas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ginkolucas/32/107055_2.png) [@GinkoLucas](https://discuss.elastic.co/u/GinkoLucas)\
**Post date:** [August 3, 2023, 8:37am UTC](https://discuss.elastic.co/t/monitor-users-requests-cpu-usage-etc/340018/1 "2023-08-03T08:37:01Z")

</div>

Hello,

I'd like to be able to find out what my users are doing, and more specifically list the users who are consuming CPU, consult the list of "big" requests and the linked user.

Basically, I'd like to know if someone is making bad requests, too big or too complex.

Is there a way to do this ? With Stack Monitoring ?

---

<div class="post-metadata">

**Author:** ![DineshNaik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dineshnaik/32/89308_2.png) [@DineshNaik](https://discuss.elastic.co/u/DineshNaik)\
**Post date:** [August 4, 2023, 7:23pm UTC](https://discuss.elastic.co/t/monitor-users-requests-cpu-usage-etc/340018/2 "2023-08-04T19:23:28Z")

</div>

If you have access to the X-Pack features, including the Stack Monitoring feature, which are available only in the paid subscription , then most of these monitoring are available .

but if you are using OSS version then you need to build a monitoring system with combination of below alternative methods and tools :

1. **Elasticsearch Node Stats API** : Elasticsearch exposes a Node Stats API, which you can use to gather detailed statistics about each node in your cluster, including CPU usage, memory usage, indexing rates, and more. You can periodically query this API and store the data for further analysis.

2. **Elasticsearch logs and Slow Logs** : Elasticsearch provides a Slow Log feature apart from normal logging, which records queries that take longer than a specified threshold to execute. This can help you identify slow or resource-heavy queries that might be affecting the cluster's performance.

3. **Third-Party Monitoring Tools** : There are third-party monitoring tools and frameworks available that can help you monitor and analyze your Elasticsearch cluster's performance. Some popular options include Prometheus, Grafana, and Kibana (as a standalone monitoring tool).

---

<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:** [September 1, 2023, 7:23pm UTC](https://discuss.elastic.co/t/monitor-users-requests-cpu-usage-etc/340018/3 "2023-09-01T19:23:37Z")

</div>

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