# How to know the query commands that ES server accepted? Any flag?

**URL:** <https://discuss.elastic.co/t/how-to-know-the-query-commands-that-es-server-accepted-any-flag/17800>\
**Category:** Elasticsearch\
**Created:** [May 29, 2014, 8:51am UTC](https://discuss.elastic.co/t/how-to-know-the-query-commands-that-es-server-accepted-any-flag/17800 "2014-05-29T08:51:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan\_Ji](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@Ivan\_Ji](https://discuss.elastic.co/u/Ivan_Ji)\
**Post date:** [May 29, 2014, 8:51am UTC](https://discuss.elastic.co/t/how-to-know-the-query-commands-that-es-server-accepted-any-flag/17800/1 "2014-05-29T08:51:05Z")

</div>

Hi all,

I am wondering are there any debug flag which can enable the ES server to  
print out all the query commands it accepted?

For some debugging reason, I need to know the query command sequence that  
ES accepted.

Or are there any config which can enable this logging?

Any ideas?

Best,

Ivan

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d2c56f6e-c257-4f40-ad70-10c725408484%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d2c56f6e-c257-4f40-ad70-10c725408484%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![ElasticSearch\_Users\_](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@ElasticSearch\_Users\_](https://discuss.elastic.co/u/ElasticSearch_Users_)\
**Post date:** [May 30, 2014, 10:01pm UTC](https://discuss.elastic.co/t/how-to-know-the-query-commands-that-es-server-accepted-any-flag/17800/2 "2014-05-30T22:01:38Z")

</div>

If you mean a list of all the search queries executed, there is not  
currently a clean way to do this. You can kinda fudge it by enabling the  
query slowlog in the elasticsearch.yml file, but if you have many nodes,  
you still have to go to each node that contains the shards that were hit to  
retrieve the actual search requests.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d35e2147-0e5b-4dcf-804a-fa651e0f77f2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d35e2147-0e5b-4dcf-804a-fa651e0f77f2%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:25am UTC](https://discuss.elastic.co/t/how-to-know-the-query-commands-that-es-server-accepted-any-flag/17800/3 "2017-07-06T01:25:34Z")

</div>


