# How to specify multiple data paths in custom car

**URL:** <https://discuss.elastic.co/t/how-to-specify-multiple-data-paths-in-custom-car/207781>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [November 13, 2019, 9:41pm UTC](https://discuss.elastic.co/t/how-to-specify-multiple-data-paths-in-custom-car/207781 "2019-11-13T21:41:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![toneyalexander](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@toneyalexander](https://discuss.elastic.co/u/toneyalexander)\
**Post date:** [November 13, 2019, 9:41pm UTC](https://discuss.elastic.co/t/how-to-specify-multiple-data-paths-in-custom-car/207781/1 "2019-11-13T21:41:54Z")

</div>

I've defined a custom car with base=vanilla. I'm trying to set multiple data paths using data\_paths, but I'm not sure how to make rally recognize the value.

I've tried

```
/path/0,/path/1
/path/0/,/path/1/
/path/0, /path/1
/path/0","/path/1
/path/0','/path/1

```

In the first three cases, it treats the paths as a single string and I end up with

```
path.data: ['/path/0,/path/1']
path.data: ['/path/0/,/path/1/']
path.data: ['/path/0, /path/1']

```

in my elasticsearch.yml. In the ones where I explicitly add quotes, the end result uses the opposite quote type to make them a single string. So

```
/path/0","/path/1

```

becomes

```
path.data: ['/path/0","/path/1']

```

and

```
/path/0','/path/1

```

becomes

```
path.data: ["/path/0','/path/1"]

```

How can i delimit my strings so that elasticsearch will store in multiple locations?

---

<div class="post-metadata">

**Author:** ![dliappis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dliappis/32/56174_2.png) [@dliappis](https://discuss.elastic.co/u/dliappis)\
**Post date:** [November 14, 2019, 3:55pm UTC](https://discuss.elastic.co/t/how-to-specify-multiple-data-paths-in-custom-car/207781/2 "2019-11-14T15:55:15Z")

</div>

Hello,

Did you try to specify `data_paths` via a json file, as described [here](https://github.com/elastic/rally-teams/tree/master/cars/v1/vanilla#parameters) and use an array e.g.:

```auto
{
    "data_paths": ["/mnt/disk1", "/mnt/disk2"]
}

```

store it as `car_params.json` and then reference it using `car_params=/path/to/car_params.json`?

---

<div class="post-metadata">

**Author:** ![toneyalexander](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@toneyalexander](https://discuss.elastic.co/u/toneyalexander)\
**Post date:** [November 15, 2019, 6:57pm UTC](https://discuss.elastic.co/t/how-to-specify-multiple-data-paths-in-custom-car/207781/3 "2019-11-15T18:57:11Z")

</div>

I ended up just changing the elasticsearch.yml file in vanilla to match what I wanted, but thank you for the recommendation!

---

<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:** [December 13, 2019, 6:57pm UTC](https://discuss.elastic.co/t/how-to-specify-multiple-data-paths-in-custom-car/207781/4 "2019-12-13T18:57:14Z")

</div>

Closed on December 13, 2019, 6:57pm UTC

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