# Using custom rally config while running esrally cli

**URL:** <https://discuss.elastic.co/t/using-custom-rally-config-while-running-esrally-cli/277621>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [July 2, 2021, 8:09am UTC](https://discuss.elastic.co/t/using-custom-rally-config-while-running-esrally-cli/277621 "2021-07-02T08:09:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![purushothamkdr143](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/purushothamkdr143/32/90242_2.png) [@purushothamkdr143](https://discuss.elastic.co/u/purushothamkdr143)\
**Post date:** [July 2, 2021, 8:09am UTC](https://discuss.elastic.co/t/using-custom-rally-config-while-running-esrally-cli/277621/1 "2021-07-02T08:09:12Z")

</div>

Hi All,

I am using esrally for benchmakring elasticsearch. rally by default looks for config at this location i.e /rally/.rally/rally.ini, is it possible to specify the custom path while running the race for example: esrally race --track nyc\_taxis --config /data/rally.ini ? Kindly assist me.

---

<div class="post-metadata">

**Author:** ![Bradley\_Deam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bradley_deam/32/52991_2.png) [@Bradley\_Deam](https://discuss.elastic.co/u/Bradley_Deam)\
**Post date:** [July 5, 2021, 2:35am UTC](https://discuss.elastic.co/t/using-custom-rally-config-while-running-esrally-cli/277621/2 "2021-07-05T02:35:02Z")

</div>

Hi @purushothamkdr143,

> I am using esrally for benchmakring elasticsearch. rally by default looks for config at this location i.e /rally/.rally/rally.ini, is it possible to specify the custom path while running the race for example: esrally race --track nyc\_taxis --config /data/rally.ini ? Kindly assist me.

Unfortunately there's no explicit `--config` argument/option available.

By default Rally will attempt to look in the [user's default home directory (`~/.rally`)](https://github.com/elastic/rally/blob/master/esrally/paths.py#L20-L22) for the required files. If you'd like to use a different directory, then you can set the `RALLY_HOME` environment variable to point to a different directory that only contains `rally.ini` (`logging.json` etc will be created automatically), for example..

```auto
$ ls -la /Users/myuser/test/
total 0
drwxr-xr-x 3 myuser mygroup 96B 5 Jul 11:44 ./
drwxr-xr-x+ 111 myuser mygroup 3.5K 5 Jul 11:44 ../
drwxr-xr-x 3 myuser mygroup 96B 5 Jul 12:01 .rally/

$ ls -la /Users/myuser/test/.rally/
total 8
drwxr-xr-x 3 myuser mygroup 96B 5 Jul 12:01 ./
drwxr-xr-x 3 myuser mygroup 96B 5 Jul 11:44 ../
-rw-r--r-- 1 myuser mygroup 811B 5 Jul 11:57 rally.ini

$ export RALLY_HOME="/Users/myuser/test/"

$ esrally race --track nyc_taxis

```

---

<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:** [August 2, 2021, 2:35am UTC](https://discuss.elastic.co/t/using-custom-rally-config-while-running-esrally-cli/277621/3 "2021-08-02T02:35:11Z")

</div>

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