# Logstash Input file is not reading file

**URL:** <https://discuss.elastic.co/t/logstash-input-file-is-not-reading-file/92441>\
**Category:** Logstash\
**Created:** [July 10, 2017, 9:51am UTC](https://discuss.elastic.co/t/logstash-input-file-is-not-reading-file/92441 "2017-07-10T09:51:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![igbayilola](https://avatars.discourse-cdn.com/v4/letter/i/76d3ee/32.png) [@igbayilola](https://discuss.elastic.co/u/igbayilola)\
**Post date:** [July 10, 2017, 9:51am UTC](https://discuss.elastic.co/t/logstash-input-file-is-not-reading-file/92441/1 "2017-07-10T09:51:55Z")

</div>

Hello,  
I want first to apologize for my english level. I'm using Logstash 5.5.0 and I'm facing an issue with my configuration. It works just fine with the stdin plugin but not with the file pugin.  
I have the following configuration for the file plugin:  
input {  
file {  
path =\> "/home/salam/ELK/test/load/igbayilola.csv"  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null"  
ignore\_older =\> 0  
}  
}

It is supposed to create an index in elasticsearch at the output.

Thanks for your help,  
Igbayilola.

---

<div class="post-metadata">

**Author:** ![igbayilola](https://avatars.discourse-cdn.com/v4/letter/i/76d3ee/32.png) [@igbayilola](https://discuss.elastic.co/u/igbayilola)\
**Post date:** [July 10, 2017, 11:38am UTC](https://discuss.elastic.co/t/logstash-input-file-is-not-reading-file/92441/2 "2017-07-10T11:38:30Z")

</div>

Hello, if it could hepl, this is an extract of the debug info

12:36:03.864 [Api Webserver] DEBUG logstash.agent - Starting puma  
12:36:03.864 [Api Webserver] DEBUG logstash.agent - Trying to start WebServer {:port=\>9600}  
12:36:03.867 [Api Webserver] DEBUG logstash.api.service - [api-service] start  
12:36:03.867 [[main]\<file] DEBUG logstash.inputs.file - \_globbed\_files: /etc/logstash/igbayilola.csv: glob is: ["/etc/logstash/igbayilola.csv"]  
12:36:03.867 [[main]\<file] DEBUG logstash.inputs.file - \_discover\_file: /etc/logstash/igbayilola.csv: new: /etc/logstash/igbayilola.csv (exclude is [])  
12:36:03.868 [[main]\<file] DEBUG logstash.inputs.file - \_open\_file: /etc/logstash/igbayilola.csv: opening  
12:36:03.868 [[main]\<file] DEBUG logstash.inputs.file - /etc/logstash/igbayilola.csv: initial create, no sincedb, seeking to beginning of file  
12:36:03.869 [[main]\<file] DEBUG logstash.inputs.file - writing sincedb (delta since last write = 1499686563)  
12:36:03.871 [[main]\<file] DEBUG logstash.inputs.file - each: file grew: /etc/logstash/igbayilola.csv: old size 0, new size 7294  
12:36:03.894 [Api Webserver] DEBUG logstash.agent - Trying to start WebServer {:port=\>9601}  
12:36:03.894 [Api Webserver] DEBUG logstash.api.service - [api-service] start  
12:36:03.898 [Api Webserver] INFO logstash.agent - Successfully started Logstash API endpoint {:port=\>9601}  
12:36:08.856 [Ruby-0-Thread-14: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:532] DEBUG logstash.pipeline - Pushing flush onto pipeline  
12:36:13.856 [Ruby-0-Thread-14: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:532] DEBUG logstash.pipeline - Pushing flush onto pipeline  
12:36:13.872 [[main]\<file] DEBUG logstash.inputs.file - each: file grew: /etc/logstash/igbayilola.csv: old size 0, new size 7294  
12:36:18.855 [Ruby-0-Thread-14: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:532] DEBUG logstash.pipeline - Pushing flush onto pipeline  
12:36:23.855 [Ruby-0-Thread-14: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:532] DEBUG logstash.pipeline - Pushing flush onto pipeline  
12:36:23.873 [[main]\<file] DEBUG logstash.inputs.file - each: file grew: /etc/logstash/igbayilola.csv: old size 0, new size 7294  
12:36:28.854 [Ruby-0-Thread-14: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:532] DEBUG logstash.pipeline - Pushing flush onto pipeline  
12:36:33.854 [Ruby-0-Thread-14: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:532] DEBUG logstash.pipeline - Pushing flush onto pipeline  
12:36:33.875 [[main]\<file] DEBUG logstash.inputs.file - each: file grew: /etc/logstash/igbayilola.csv: old size 0, new size 7294  
12:36:38.854 [Ruby-0-Thread-14: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:532] DEBUG logstash.pipeline - Pushing flush onto pipeline  
12:36:43.853 [Ruby-0-Thread-14: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:532] DEBUG logstash.pipeline - Pushing flush onto pipeline  
12:36:43.876 [[main]\<file] DEBUG logstash.inputs.file - each: file grew: /etc/logstash/igbayilola.csv: old size 0, new size 7294  
12:36:48.852 [Ruby-0-Thread-14: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:532] DEBUG logstash.pipeline - Pushing flush onto pipeline  
12:36:53.851 [Ruby-0-Thread-14: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:532] DEBUG logstash.pipeline - Pushing flush onto pipeline  
12:36:53.877 [[main]\<file] DEBUG logstash.inputs.file - each: file grew: /etc/logstash/igbayilola.csv: old size 0, new size 7294  
12:36:58.850 [Ruby-0-Thread-14: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:532] DEBUG logstash.pipeline - Pushing flush onto pipeline  
12:37:03.849 [Ruby-0-Thread-14: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:532] DEBUG logstash.pipeline - Pushing flush onto pipeline  
12:37:03.878 [[main]\<file] DEBUG logstash.inputs.file - each: file grew: /etc/logstash/igbayilola.csv: old size 0, new size 7294  
12:37:08.849 [Ruby-0-Thread-14: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:532] DEBUG logstash.pipeline - Pushing flush onto pipeline  
12:37:13.849 [Ruby-0-Thread-14: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:532] DEBUG logstash.pipeline - Pushing flush onto pipeline  
12:37:13.881 [[main]\<file] DEBUG logstash.inputs.file - each: file grew: /etc/logstash/igbayilola.csv: old size 0, new size 7294

---

<div class="post-metadata">

**Author:** ![kottapar](https://avatars.discourse-cdn.com/v4/letter/k/a87d85/32.png) [@kottapar](https://discuss.elastic.co/u/kottapar)\
**Post date:** [July 11, 2017, 12:11pm UTC](https://discuss.elastic.co/t/logstash-input-file-is-not-reading-file/92441/3 "2017-07-11T12:11:56Z")

</div>

Please post your complete conf file. Also use the \</\> to format text so it'll be easier to read.

---

<div class="post-metadata">

**Author:** ![igbayilola](https://avatars.discourse-cdn.com/v4/letter/i/76d3ee/32.png) [@igbayilola](https://discuss.elastic.co/u/igbayilola)\
**Post date:** [July 11, 2017, 3:50pm UTC](https://discuss.elastic.co/t/logstash-input-file-is-not-reading-file/92441/4 "2017-07-11T15:50:53Z")

</div>

Thanks you for your answer. This is the complete conf file:

```
input {
    file {
        path => "/etc/logstash/igbayilola.csv"
        start_position => "beginning"
        sincedb_path => "/dev/null"
        ignore_older => 0
    }
}

filter {
    csv {
        columns => ["ID", "SWITCH", "TYPE", "NAME"]
        separator => ";"
        remove_field => ["message"]
    }
}

output {
    elasticsearch {
       hosts => ["localhost:9200"]
        index => "ressources"
    }
}
```

---

<div class="post-metadata">

**Author:** ![kxuan](https://avatars.discourse-cdn.com/v4/letter/k/87869e/32.png) [@kxuan](https://discuss.elastic.co/u/kxuan)\
**Post date:** [July 20, 2017, 2:43pm UTC](https://discuss.elastic.co/t/logstash-input-file-is-not-reading-file/92441/5 "2017-07-20T14:43:37Z")

</div>

Hi,

I've the same output error:

[Ruby-0-Thread-27: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:532] DEBUG logstash.pipeline - Pushing flush onto pipeline

But I don't use ruby code in my configuration, like it seem the reason.

Please, could you help us?

Thanks

---

<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:** [August 17, 2017, 2:43pm UTC](https://discuss.elastic.co/t/logstash-input-file-is-not-reading-file/92441/6 "2017-08-17T14:43:54Z")

</div>

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