# Logstash not getting log files properly

**URL:** <https://discuss.elastic.co/t/logstash-not-getting-log-files-properly/80787>\
**Category:** Logstash\
**Created:** [March 31, 2017, 9:07am UTC](https://discuss.elastic.co/t/logstash-not-getting-log-files-properly/80787 "2017-03-31T09:07:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DharaniKumar](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@DharaniKumar](https://discuss.elastic.co/u/DharaniKumar)\
**Post date:** [March 31, 2017, 9:07am UTC](https://discuss.elastic.co/t/logstash-not-getting-log-files-properly/80787/1 "2017-03-31T09:07:37Z")

</div>

Kibana is not showing any of my logs. Im having this in my logstash config file

logstash-syslog.conf :

input {  
file  
{  
#port =\> 5044  
path =\> ["/var/log/\*.log", "/var/log/syslog"]  
type =\> "syslog"  
#ssl =\> true  
#ssl\_certificate =\> "/etc/pki/tls/certs/logstash-forwarder.crt"  
#ssl\_key =\> "/etc/pki/tls/private/logstash-forwarder.key"  
}  
}

filter {  
if [type] == "syslog" {  
grok {  
match =\> { "message" =\> "%{SYSLOGTIMESTAMP:syslog\_timestamp} %{SYSLOGHOST:syslog\_hostname} %{DATA:syslog\_program}(?:[%{POSINT:syslog\_pid}])?: %{GREEDYDATA:syslog\_message}" }  
add\_field =\> ["received\_at", "%{@timestamp}"]  
add\_field =\> ["received\_from", "%{host}"]  
}  
syslog\_pri { }  
date {  
match =\> ["syslog\_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss"]  
}  
}  
}

output {  
elasticsearch { hosts =\> ["localhost"] }  
stdout { codec =\> rubydebug }  
}

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 31, 2017, 11:37am UTC](https://discuss.elastic.co/t/logstash-not-getting-log-files-properly/80787/2 "2017-03-31T11:37:56Z")

</div>

- Does the Logstash process have permission to read /var/log/syslog?
- Have new lines been added to /var/log/syslog since you started Logstash the first time?
- Is there anything in the Logstash logs indicating that it's having problems talking to Elasticsearch?

---

<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:** [April 28, 2017, 11:38am UTC](https://discuss.elastic.co/t/logstash-not-getting-log-files-properly/80787/3 "2017-04-28T11:38:00Z")

</div>

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