# File input not sending to Elasticsearch

**URL:** https://discuss.elastic.co/t/file-input-not-sending-to-elasticsearch/342891
**Category:** Logstash
**Created:** [September 13, 2023, 12:55am UTC](https://discuss.elastic.co/t/file-input-not-sending-to-elasticsearch/342891 "2023-09-13T00:55:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![roman-tasi](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@roman-tasi](https://discuss.elastic.co/u/roman-tasi)
#### Post date: [September 13, 2023, 12:55am UTC](https://discuss.elastic.co/t/file-input-not-sending-to-elasticsearch/342891/1 "2023-09-13T00:55:05Z")

</div>

Hi I am just wondering if someone could look over these relevant portions of my Logstash config to see if there is an issue:

```auto
input {
  file {
    path => "/etc/elasticsearch/scripts/otherScripts/fortune.txt"
    codec => plain {
      format => "%{message}"
    }
    sincedb_path => "/dev/null"
    start_position => "beginning"
    type => "fortune"
  }
}

```

and

```auto
output {
        if [type]=="fortune" {
            elasticsearch {
            hosts => ["localhost:9200"]
            index => "linux-%{+yyyy.MM.dd}"
            }
        stdout { codec => rubydebug }
        }
}

```

Whenever I change the file and then check in the Kibana Discover linux-\* pattern filtering for field `type` with value `fortune` nothing comes up. So can you help?

---

<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: [October 11, 2023, 12:55am UTC](https://discuss.elastic.co/t/file-input-not-sending-to-elasticsearch/342891/2 "2023-10-11T00:55:17Z")

</div>

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