# Error: unrecognized arguments: refresh\_interval: -1

**URL:** <https://discuss.elastic.co/t/error-unrecognized-arguments-refresh-interval-1/305058>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [May 18, 2022, 11:59am UTC](https://discuss.elastic.co/t/error-unrecognized-arguments-refresh-interval-1/305058 "2022-05-18T11:59:48Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![json](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/json/32/4125_2.png) [@json](https://discuss.elastic.co/u/json)\
**Post date:** [May 18, 2022, 4:20pm UTC](https://discuss.elastic.co/t/error-unrecognized-arguments-refresh-interval-1/305058/4 "2022-05-18T16:20:54Z")

</div>

Hello Amit,

`geonames` allows index settings to be overridden as you have discovered. Configuring the `index_settings` track parameter overrides the default index settings applied in the track. If you want to set `refresh_interval`, then you will need to configure all index settings using the full path to the setting:

```auto
--track-params='{"index_settings":{ "index.refresh_interval": '${ES_REFRESH_INTERVAL}',"index.number_of_shards": '${ES_NO_OF_SHARDS}',"index.number_of_replicas": '${ES_NO_OF_REPLICAS}'}, "ingest_percentage": 1}'

```

In addition, each designation of `--track-params` on the command line overrides the previous. Be sure to set all desired parameters in a single flag. It is recommended to put all parameters in a single `.json` file, and reference the file in `--track-params` instead to make things cleaner.

---

_[View the full topic](https://discuss.elastic.co/t/error-unrecognized-arguments-refresh-interval-1/305058)._
