# Logstash - v:2.2.2 : input file path not working

**URL:** <https://discuss.elastic.co/t/logstash-v-2-2-2-input-file-path-not-working/44317>\
**Category:** Logstash\
**Created:** [March 14, 2016, 11:42am UTC](https://discuss.elastic.co/t/logstash-v-2-2-2-input-file-path-not-working/44317 "2016-03-14T11:42:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreealib](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@andreealib](https://discuss.elastic.co/u/andreealib)\
**Post date:** [March 14, 2016, 11:42am UTC](https://discuss.elastic.co/t/logstash-v-2-2-2-input-file-path-not-working/44317/1 "2016-03-14T11:42:21Z")

</div>

I have the following stack installed on my Windows 8:  
elasticsearch 2.20  
logstash 2.2.2  
kibana 4.4.1  
I have a csv file from which I want to load the data into elasticsearch.

My configuration file is:

input {  
file {  
path =\> "C:/Users/andreealibotean/Desktop/ELK-datafeed-files/5135.csv"  
type =\> "core2"  
start\_position =\> "beginning"

}  
}  
filter {  
csv {  
separator =\> ","  
columns =\> ["Product Code","Make","Description","Availability","Price"]  
}  
mutate {convert =\> ["Availability", "integer"]}  
mutate {convert =\> ["Price", "float"]}  
}  
output {  
elasticsearch {  
action =\> "index"  
hosts =\> "localhost"  
index =\> "5135-%{+YYYY.MM.dd}"  
workers =\> 1  
}  
stdout {}  
}

If I run " logstash -f --configtest ", it prints "Configuration OK".  
When I try to upload the data (with: logstash -f path-to-the-config-file), it doesn't give any errors regarding the configuration, but it doesn't seem to load the data from the csv file into elasticsearch, it remains stuck,all it prints is:

Settings: default pipeline workers: 8  
Logstash startup completed

I've read that it seems to be a problem with the syntax of the file path in the input, apparently logstash works with a unix-like path, so I even changed the path to be with "/" instead of "" or"\" in _"C:/Users/andreealibotean/Desktop/ELK-datafeed-files/5135.csv "_; it still doesn't load the data.

Any advice on how to handle this situation ?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 14, 2016, 11:50am UTC](https://discuss.elastic.co/t/logstash-v-2-2-2-input-file-path-not-working/44317/2 "2016-03-14T11:50:41Z")

</div>

Most likely Logstash is waiting for more data to be appended to the file. Read the file input's documentation about sincedb files to better understand what's going on.

---

<div class="post-metadata">

**Author:** ![andreealib](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@andreealib](https://discuss.elastic.co/u/andreealib)\
**Post date:** [March 14, 2016, 12:26pm UTC](https://discuss.elastic.co/t/logstash-v-2-2-2-input-file-path-not-working/44317/3 "2016-03-14T12:26:29Z")

</div>

I've modified it, I added a file: sincedb.out, referenced it in the configuration file:

input {  
file {  
path =\> "C:/Users/andreealibotean/Desktop/ELK-datafeed-files/5135.csv"  
type =\> "core2"  
start\_position =\> "beginning"  
sincedb\_path =\> "D:/ELK/logstash-2.2.2/sincedb/sincedb.out"   
}  
}

Unfortunately, the data is still not being loaded, just like before adding the sincedb\_path to the conf file. Am I not setting the sincedb\_path properly ?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 14, 2016, 12:40pm UTC](https://discuss.elastic.co/t/logstash-v-2-2-2-input-file-path-not-working/44317/4 "2016-03-14T12:40:40Z")

</div>

Looks okay. Increase the log level by passing `--verbose` when starting Logstash and read the log for clues.

---

<div class="post-metadata">

**Author:** ![andreealib](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@andreealib](https://discuss.elastic.co/u/andreealib)\
**Post date:** [March 14, 2016, 12:52pm UTC](https://discuss.elastic.co/t/logstash-v-2-2-2-input-file-path-not-working/44317/5 "2016-03-14T12:52:57Z")

</div>

I've started logstash with the --verbose option, everything looked fine.  
I have modified the content of the csv file and after that it loaded the data, so it seems that sincedb\_path didn't work as I expected. I actually receive a new csv file with the data each day at a given hour, so maybe I should implement a quickfix and configure the name of the csv file to be dd-mm-YYYY-5135.csv instead of 5135.csv (this is how it is currently), so logstash will see it as a new file each day thus loading the data without any inconveniences.

---

<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:** [July 6, 2017, 5:07am UTC](https://discuss.elastic.co/t/logstash-v-2-2-2-input-file-path-not-working/44317/6 "2017-07-06T05:07:08Z")

</div>


