hello all,
I installed Elasticsearch/Logstash/Kibana on CentOS 7 .
Kibana and Elasticsearch works fine.
Logstash version logstash-2.2
I have an issue with the Logstash – it is not listening on the input ports
I created new logstash config file: /etc/logstash/conf.d/logstash.conf
I tested the config file with service logstash configtest and got Configuration OK
There are no errors at /var/log/logstash/logstash.log or /var/log/logstash/logstash.err
I have another CentOS 7 server which Logstash woks there fine with same config life.
This is the logstash.conf file content:
input {
lumberjack {
port => 5043
type => "haproxy"
ssl_certificate => "/etc/pki/tls/certs/logstash-forwarder.crt"
ssl_key => "/etc/pki/tls/private/logstash-forwarder.key"
}
}
input {
tcp {
type => "VMware"
port => "5000"
}
}
filter {
if [type] == "haproxy" {
grok {
match => ["message", "%{HAPROXYHTTP}"]
}
}
if [type] == "VMware" {
grok {
break_on_match => true
match => [
"message", "<%{POSINT:syslog_pri}>%{TIMESTAMP_ISO8601:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{SYSLOGPROG:syslog_program}: (?(?<message_system_info>(?:[%{DATA:message_thread_id} %{DATA:syslog_level} '%{DATA:message_service}'\ ?%{DATA:message_opID}])) [%{DATA:message_service_info}]\ (?<syslog_message>(%{GREEDYDATA})))",
"message", "<%{POSINT:syslog_pri}>%{TIMESTAMP_ISO8601:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{SYSLOGPROG:syslog_program}: (?(?<message_system_info>(?:[%{DATA:message_thread_id} %{DATA:syslog_level} '%{DATA:message_service}'\ ?%{DATA:message_opID}])) (?<syslog_message>(%{GREEDYDATA})))",
"message", "<%{POSINT:syslog_pri}>%{TIMESTAMP_ISO8601:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{SYSLOGPROG:syslog_program}: %{GREEDYDATA:syslog_message}"
]
}
}
}
output {
elasticsearch { hosts => localhost }
stdout { codec => rubydebug }
}
Thanks