# How to capture the actual Elasticsearch query statements generated by esrally?

**URL:** <https://discuss.elastic.co/t/how-to-capture-the-actual-elasticsearch-query-statements-generated-by-esrally/381942>\
**Category:** Kibana\
**Created:** [September 15, 2025, 7:36am UTC](https://discuss.elastic.co/t/how-to-capture-the-actual-elasticsearch-query-statements-generated-by-esrally/381942 "2025-09-15T07:36:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fan\_of\_holmes](https://avatars.discourse-cdn.com/v4/letter/f/3ec8ea/32.png) [@fan\_of\_holmes](https://discuss.elastic.co/u/fan_of_holmes)\
**Post date:** [September 15, 2025, 7:36am UTC](https://discuss.elastic.co/t/how-to-capture-the-actual-elasticsearch-query-statements-generated-by-esrally/381942/1 "2025-09-15T07:36:09Z")

</div>

I'm running Elasticsearch Rally (esrally) benchmark tests and need to capture the actual Elasticsearch query statements generated during the test execution. Specifically, I'm targeting the `bm25-search-with-filter` operation defined in the `challenge/default.json` file of my custom track. Despite configuring `store_data: true` and specifying an `index_name`, I'm unable to retrieve the queries from Elasticsearch or local logs.

**What I've Tried:**

**Configured Track File:**  
Added the following configuration to `challenge/default.json` 🙂  
```  
{ "name": "bm25-search-with-filter",  
"operation": "bm25-search-with-filter",  
"warmup-iterations": 100, "iterations": 1000,  
"clients": {{search\_clients | default(1)}},  
"store\_data": true,  
"index\_name": "esrally-passage-ranking-bm25-filter"  
}  
```  
but in kibana, GET /\_cat/indices?v , no index is "esrally-passage-ranking-bm25-filter"
