# List of Requests Sent To Elasticsearch Cluster

**URL:** https://discuss.elastic.co/t/list-of-requests-sent-to-elasticsearch-cluster/137667
**Category:** Elasticsearch
**Created:** [June 27, 2018, 5:25pm UTC](https://discuss.elastic.co/t/list-of-requests-sent-to-elasticsearch-cluster/137667 "2018-06-27T17:25:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tphillips-att](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@tphillips-att](https://discuss.elastic.co/u/tphillips-att)
#### Post date: [June 27, 2018, 5:25pm UTC](https://discuss.elastic.co/t/list-of-requests-sent-to-elasticsearch-cluster/137667/1 "2018-06-27T17:25:18Z")

</div>

Is there a way to get a list of search requests and indexing requests currently being sent to the Elasticsearch Cluster?

It would be nice to see the following info:

1. Request Type (Search, indexing, etc..)
2. Timestamp of Request
3. Request (ie. query term, indexing msg, ES API calls, etc...)
4. Response Time
5. Source / Origin of the request (ex: URL, userid (if available), hostname, port, etc)

---

<div class="post-metadata">

### Author: ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)
#### Post date: [June 27, 2018, 7:12pm UTC](https://discuss.elastic.co/t/list-of-requests-sent-to-elasticsearch-cluster/137667/2 "2018-06-27T19:12:13Z")

</div>

The most reliable way to do it is by enabling [audit logs](https://www.elastic.co/guide/en/x-pack/current/auditing.html). It also possible (kind of) to achieve this by using indexing and searching slow logs and setting threshold to 0.

---

<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: [July 25, 2018, 7:12pm UTC](https://discuss.elastic.co/t/list-of-requests-sent-to-elasticsearch-cluster/137667/3 "2018-07-25T19:12:18Z")

</div>

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