# Can't configure multiple indices on which to run a benchmarkin RALLY

**URL:** <https://discuss.elastic.co/t/cant-configure-multiple-indices-on-which-to-run-a-benchmarkin-rally/70281>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [December 30, 2016, 3:14pm UTC](https://discuss.elastic.co/t/cant-configure-multiple-indices-on-which-to-run-a-benchmarkin-rally/70281 "2016-12-30T15:14:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Louis](https://avatars.discourse-cdn.com/v4/letter/t/a9a28c/32.png) [@Thomas\_Louis](https://discuss.elastic.co/u/Thomas_Louis)\
**Post date:** [December 30, 2016, 3:14pm UTC](https://discuss.elastic.co/t/cant-configure-multiple-indices-on-which-to-run-a-benchmarkin-rally/70281/1 "2016-12-30T15:14:59Z")

</div>

Hello,

I try to create a track that works on one index but fails with several indices :

```
  "meta": {
    "short-description": "...",
    "description" : "..."
  },
  "indices": [
    {
      "name": "sa_2016_01_1",
      "types": [
        {
          "name": "search",
          "mapping": "mappings.json"
        }
      ],
      "auto-managed": false
    },
    {
      "name": "sa_2016_02_1",
      "types": [
        {
          "name": "search",
          "mapping": "mappings.json"
        }
      ],
      "auto-managed": false
    }
  ],
  "operations": [
    {
      "name": "match_all_query_search",
      "operation-type": "search",
      "body": {
        "query": {
          "match_all": {}
        }
      }
    }, 
  ...................

```

it gives :

> 2016-12-30 15:08:59,771 rally.driver ERROR Main driver received a fatal exception from a load generator. Shutting down.  
> 2016-12-30 15:08:59,772 root ERROR Cannot run subcommand [race].  
> Traceback (most recent call last):  
> File "/home/thomas/Technologies/ESRally/venv/lib/python3.4/site-packages/esrally/rally.py", line 459, in dispatch\_sub\_command  
> racecontrol.run(cfg)  
> File "/home/thomas/Technologies/ESRally/venv/lib/python3.4/site-packages/esrally/racecontrol.py", line 238, in run  
> raise e  
> File "/home/thomas/Technologies/ESRally/venv/lib/python3.4/site-packages/esrally/racecontrol.py", line 235, in run  
> pipeline(cfg)  
> File "/home/thomas/Technologies/ESRally/venv/lib/python3.4/site-packages/esrally/racecontrol.py", line 48, in **call**  
> self.target(cfg)  
> File "/home/thomas/Technologies/ESRally/venv/lib/python3.4/site-packages/esrally/racecontrol.py", line 183, in benchmark\_only  
> return race(Benchmark(cfg, mechanic.create(cfg, metrics\_store, external=True), metrics\_store), cfg)  
> File "/home/thomas/Technologies/ESRally/venv/lib/python3.4/site-packages/esrally/racecontrol.py", line 157, in race  
> benchmark.run(lap)  
> File "/home/thomas/Technologies/ESRally/venv/lib/python3.4/site-packages/esrally/racecontrol.py", line 81, in run  
> raise exceptions.RallyError(result.message, result.cause)  
> esrally.exceptions.RallyError: ('Fatal error in load generator [0]', InvalidSyntax("'index' is mandatory",))

but if :  
"indices": [  
{  
"name": "sa\_2016\_01\_1",  
"types": [  
{  
"name": "search",  
"mapping": "mappings.json"  
}  
],  
"auto-managed": false  
}]

Everything works fine.

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [January 3, 2017, 12:08pm UTC](https://discuss.elastic.co/t/cant-configure-multiple-indices-on-which-to-run-a-benchmarkin-rally/70281/2 "2017-01-03T12:08:02Z")

</div>

Hi @Thomas_Louis,

The problem is that Rally cannot derive which index should be targeted by the query, so you need to add the attribute `"index": "_all"` to the definition of the operation "match\_all\_query\_search" (see [docs](http://esrally.readthedocs.io/en/latest/track.html#search) for more details).

Daniel

---

<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:** [January 31, 2017, 12:08pm UTC](https://discuss.elastic.co/t/cant-configure-multiple-indices-on-which-to-run-a-benchmarkin-rally/70281/3 "2017-01-31T12:08:06Z")

</div>

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