Hi buddies!
I getting a problem after applying "Getting start with Elasticsearch security" to my environment. I followed this entire procedure:
And everything works fine.
Elasticsearch protected with user and password:
Kibana protected with user and password:
An user created with all privileges:
Kibana receiving beats data and showing at Discovery view: (meatricbeats for example):
As we can see, everything works fine, except for Logstash. My logstash is configured to receive syslog data. Before applying the security settings, my environment was working fine, and I could see the data entering in Kibana at the Discovery view (logstash*- index). Now, after applying the security settings, when I go to Discovery view, and select the index logstash-*, I can't see the data:
If I run Logstash, I can see that the plugins are working fine because I still receiving syslog data without any error:
But I don't know why Kibana doesn't receive the output anymore.
Before the security setting, I could see all syslog output in Kibana.
This is my syslog.conf file:
input {
tcp {
port => 514
type => syslog
}
udp {
port => 514
type => syslog
}
}
filter {
if [type] == "syslog" {
grok {
match => { "message" => "%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program} %{GREEDYDATA:syslog_message}" }
add_field => [ "received_at", "%{@timestamp}" ]
add_field => [ "received_from", "%{host}" ]
}
date {
match => [ "syslog_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss" ]
}
}
}
output {
elasticsearch { hosts => ["localhost:9200"] }
user => "elastic"
password => "secret"
}
stdout { codec => rubydebug }
}
Any idea of where is the problem?
I've tried to delete and create again logstash index but doesn't work.
Thanks in advance for the help.