# Location of json data file and yml

**URL:** <https://discuss.elastic.co/t/location-of-json-data-file-and-yml/219347>\
**Category:** Elasticsearch\
**Created:** [February 14, 2020, 10:18am UTC](https://discuss.elastic.co/t/location-of-json-data-file-and-yml/219347 "2020-02-14T10:18:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vagelis](https://avatars.discourse-cdn.com/v4/letter/v/82dd89/32.png) [@Vagelis](https://discuss.elastic.co/u/Vagelis)\
**Post date:** [February 14, 2020, 10:18am UTC](https://discuss.elastic.co/t/location-of-json-data-file-and-yml/219347/1 "2020-02-14T10:18:15Z")

</div>

I would like to specify in the yml file where the json data file is located.  
It is the file that I would like the elasticsearch to read.  
I have set in the yml  
path.data: /etc/elasticsearch/data  
and elasticsearch seems to run without a problem  
There in /etc/elasticsearch/data/elasticsearch I have put the folder drug that contains the json file.  
Elasticsearch seems that has created one more folder nodes.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/d/fd522b70528c23dad7e90984d1afdfdb642a5e3d.png)

The question is if the path.data refers from where the elasticsearch reads the data or where it writes its data.  
If path.data refers to the destination where data is written where can I specify the location from where elasticsearch reads its data? The data that should be searched

The data are from OpenFDA and there is a json file which contains all the urls from where I can download the data.  
[https://api.fda.gov/download.json](https://api.fda.gov/download.json)

[https://open.fda.gov/apis/downloads/](https://open.fda.gov/apis/downloads/)

I am a little bit confused with how I can a search in these data and the first question is where the data should be located and if this should be done via elasticsearch command

---

<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:** [March 13, 2020, 10:18am UTC](https://discuss.elastic.co/t/location-of-json-data-file-and-yml/219347/2 "2020-03-13T10:18:17Z")

</div>

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