# Unable to Send static log files to elasticsearch

**URL:** <https://discuss.elastic.co/t/unable-to-send-static-log-files-to-elasticsearch/105643>\
**Category:** Logstash\
**Created:** [October 28, 2017, 3:10pm UTC](https://discuss.elastic.co/t/unable-to-send-static-log-files-to-elasticsearch/105643 "2017-10-28T15:10:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kpavankulakarni](https://avatars.discourse-cdn.com/v4/letter/k/b5ac83/32.png) [@kpavankulakarni](https://discuss.elastic.co/u/kpavankulakarni)\
**Post date:** [October 28, 2017, 3:10pm UTC](https://discuss.elastic.co/t/unable-to-send-static-log-files-to-elasticsearch/105643/1 "2017-10-28T15:10:24Z")

</div>

Hi Everyone,

Am starting ELK project for first time.  
I have installed logstash, elasticsearch, kibana. All in one single lab server.

I have couple of usecases to work on, So i got couple of files from app team. Basically extracted log file from the application. Now want to send these files/logs to elasticsearch and start creating dashboards for couple of usecases they requested for.

But when I configure, logstash with myapp.conf file with below configuration. after configuring this what are the steps to follow to send logs to elasticsearch.

Could you please help me with this issue.

```auto
input {
file {
        path => "/var/log/middletier/middletier9.log"
        type => "openam"
        start_position => beginning
                }
}

output {
    elasticsearch {
        hosts => ["localhost:9200"]
        index => "openam_logs-%{+YYYY.MM}"
        }
}
```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 29, 2017, 8:54am UTC](https://discuss.elastic.co/t/unable-to-send-static-log-files-to-elasticsearch/105643/2 "2017-10-29T08:54:55Z")

</div>

FYI we’ve renamed ELK to the Elastic Stack, otherwise Beats and APM feel left out! 😉

If you have tried processing these files before then it's likely a sincedb issue on the file input.

---

<div class="post-metadata">

**Author:** ![kpavankulakarni](https://avatars.discourse-cdn.com/v4/letter/k/b5ac83/32.png) [@kpavankulakarni](https://discuss.elastic.co/u/kpavankulakarni)\
**Post date:** [October 30, 2017, 9:27am UTC](https://discuss.elastic.co/t/unable-to-send-static-log-files-to-elasticsearch/105643/3 "2017-10-30T09:27:50Z")

</div>

ok, but this fresh installation and configuring logs for first time.

Could you help me to identify what's wrong in the input file?

Thanks!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 30, 2017, 10:07am UTC](https://discuss.elastic.co/t/unable-to-send-static-log-files-to-elasticsearch/105643/4 "2017-10-30T10:07:44Z")

</div>

Try running with debug and see what the output is.

---

<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:** [November 27, 2017, 10:07am UTC](https://discuss.elastic.co/t/unable-to-send-static-log-files-to-elasticsearch/105643/5 "2017-11-27T10:07:46Z")

</div>

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