# Logstash service not reading application log file

**URL:** <https://discuss.elastic.co/t/logstash-service-not-reading-application-log-file/220779>\
**Category:** Logstash\
**Created:** [February 25, 2020, 6:56am UTC](https://discuss.elastic.co/t/logstash-service-not-reading-application-log-file/220779 "2020-02-25T06:56:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![volcano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/volcano/32/46287_2.png) [@volcano](https://discuss.elastic.co/u/volcano)\
**Post date:** [February 25, 2020, 6:56am UTC](https://discuss.elastic.co/t/logstash-service-not-reading-application-log-file/220779/1 "2020-02-25T06:56:37Z")

</div>

I am using Logstash 7.4 in AWS EC2 (Amazon Linux 2)

following command works

#/usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/logstash.conf --debug // this is reading application log file

But  
**this command is not reading application log file but only starts logstash**

**#initctl start logstash** // this is not reading application log file but only starts logstash

My logstash.conf file

```
input {
  file {
    path => "/home/ec2-user/xxxx/testservice.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
}

output {
   stdout { codec => rubydebug }
}

```

what is the issue ? how to fix it ?

---

<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:** [March 24, 2020, 6:56am UTC](https://discuss.elastic.co/t/logstash-service-not-reading-application-log-file/220779/2 "2020-03-24T06:56:42Z")

</div>

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