# Logstash not reading CSV file when running as CSV

**URL:** <https://discuss.elastic.co/t/logstash-not-reading-csv-file-when-running-as-csv/255374>\
**Category:** Logstash\
**Created:** [November 13, 2020, 7:27pm UTC](https://discuss.elastic.co/t/logstash-not-reading-csv-file-when-running-as-csv/255374 "2020-11-13T19:27:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![errupeshmca](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/errupeshmca/32/78285_2.png) [@errupeshmca](https://discuss.elastic.co/u/errupeshmca)\
**Post date:** [November 13, 2020, 7:27pm UTC](https://discuss.elastic.co/t/logstash-not-reading-csv-file-when-running-as-csv/255374/1 "2020-11-13T19:27:23Z")

</div>

Hi,

I am trying to run ELK through service on windows, Kibana and Elasticsearch is working fine as service.

I have configured service through nssm and used below reference to configure logstash

> **[Running Logstash on Windows | Logstash Reference \[7.10\] | Elastic](https://www.elastic.co/guide/en/logstash/current/running-logstash-windows.html)**

Logstash starting properly but not reading the CSV file. i tried with every possible way to resolve but failed. I tried with UNC path i gives me below error

**[2020-11-12T18:53:14,328][WARN][filewatch.tailmode.handlers.create][main][6c67464455f07920dd2f946303d7ab774f31461750881a09a01135cc62cdb4fc] failed to open //server/Link2/DataFileLogstash/XDViews/TotatOrderOfDay.csv: java.nio.file.AccessDeniedException: \server\Link2\DataFileLogstash\XDViews\TotatOrderOfDay.csv, ["sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)", "sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)", "sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)"]**

But when i changed the path to read CSV file then it's not reading the file. but now there is no exception showing in logs.

input {

file {

path =\> "D:/ELK/logstash-7.9.3/config/\*.csv"  
#path =\> "//server/Link2/DataFileLogstash/XDViews/TotatOrderOfDay.csv"  
#path =\> "Q:/DataFileLogstash/XDViews/TotatOrderOfDay.csv"

start\_position =\> "beginning"  
#sincedb\_path =\> "//server/Link2/DataFileLogstash/logstash.db"  
#stat\_interval =\> 1  
#discover\_interval =\> 1  
#sincedb\_path =\> "NULL"

Please help, Any solution ?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [November 13, 2020, 7:46pm UTC](https://discuss.elastic.co/t/logstash-not-reading-csv-file-when-running-as-csv/255374/2 "2020-11-13T19:46:16Z")

</div>

Set log.level to TRACE, then the filewatch module that the file input uses will log messages like [these](https://discuss.elastic.co/t/path-not-loading-in-logstash-7-3/196353/9) to tell you what it is doing.

On Windows, if you want to disable the persistence of the in-memory sincedb across restarts then you would use `sincedb_path => "NUL"`, not NULL.

---

<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 11, 2020, 7:46pm UTC](https://discuss.elastic.co/t/logstash-not-reading-csv-file-when-running-as-csv/255374/3 "2020-12-11T19:46:22Z")

</div>

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