# File input plugin not working

**URL:** https://discuss.elastic.co/t/file-input-plugin-not-working/178058
**Category:** Logstash
**Created:** [April 23, 2019, 2:52pm UTC](https://discuss.elastic.co/t/file-input-plugin-not-working/178058 "2019-04-23T14:52:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Enigma\_666](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/enigma_666/32/44644_2.png) [@Enigma\_666](https://discuss.elastic.co/u/Enigma_666)
#### Post date: [April 23, 2019, 2:52pm UTC](https://discuss.elastic.co/t/file-input-plugin-not-working/178058/1 "2019-04-23T14:52:12Z")

</div>

Hi , I'm using Logstash with docker to send apache logs to elasticsearch , when I use beats plugin as input it's works fine , but when I try file input plugin , nothing happens , there is no indices in elasticsearch , this is my config file 🙂  
input  
{

file {

path =\> "/var/log/apache/apache\_logs.log"

start\_position =\> "beginning"

ignore\_older =\> 0  
sincedb\_path =\> "/dev/null"

}

}

filter  
{

grok {

match =\> { "message" =\> "%{COMBINEDAPACHELOG}" }  
}

date {  
match =\> ["timestamp" , "dd/MMM/yyyy:HH:mm:ss Z"]  
}

output  
{

elasticsearch {

index =\> "apache-logs"

hosts =\> {"localhost:9200"}  
stdout {  
codec =\> rubydebug  
}  
}

---

<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: [April 23, 2019, 2:53pm UTC](https://discuss.elastic.co/t/file-input-plugin-not-working/178058/2 "2019-04-23T14:53:47Z")

</div>

> [@Enigma\_666](#):
>
> ignore\_older =\> 0

That says to ignore files that are more than zero seconds old, which means to ignore everything.

---

<div class="post-metadata">

### Author: ![Enigma\_666](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/enigma_666/32/44644_2.png) [@Enigma\_666](https://discuss.elastic.co/u/Enigma_666)
#### Post date: [April 23, 2019, 3:00pm UTC](https://discuss.elastic.co/t/file-input-plugin-not-working/178058/3 "2019-04-23T15:00:33Z")

</div>

I deleted that line but still it doesn't work

---

<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: [May 21, 2019, 3:00pm UTC](https://discuss.elastic.co/t/file-input-plugin-not-working/178058/4 "2019-05-21T15:00:47Z")

</div>

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