Hello all,
First of all I have to say that I am new to ELK, in fact I have just installed it in the system.
Let me go to the point.
I have followed the oceand digital manual to install elk in a brand new debian system (https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-4-on-ubuntu-14-04) with a few modifications (basically using the latest versions and without ssl support)
Once configured, I have done three tests using this config files:
https://www.elastic.co/guide/en/logstash/master/config-examples.html
The first two tests run perfectly but when I get to the syslog one, no way.
This is my config file:
input {
udp {
port => 5000
type => syslog
}
}
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" ]
}
}
}
And this is a snaptshot of the syslog data transfer
As it can be seen, logstash runs fine, no warnings,the system starts listening on port 5000(udp) but when i connect to the system using nc and sending the data, the data arrives but logstash does nothing
I have been looking in the logsthash logs but found nothing.
Any help will be appreciated.
Thanks a lot for your time,