Hello,
yes. This should be very common but I cannot send data to Elasticsearch-or I cannot find it there. Either way I am haven trouble using the data.
What I am doing: Filebeat sends a collection of Log-Files to Logstash. Currently 1 Log-File that gets passed to Logstash and is then transformed(I will paste the .conf later on)
I use two commands for this:
filebeat -e #in the first shell
/usr/share/logstash/bin/logstash #in the second shell
Filebeat connects to logstash and logstash verifies that the server is started on port x. After that nothing happens.
I used the filebeat index in the .conf, but the Dashboard does not show any data.
Here is the .conf:
input {
beats {
host => "IP"
port => 5044
ssl => true
ssl_key => '/etc/logstash/pkcs8.key'
ssl_certificate => '/etc/logstash/elastic4.crt'
}
}
filter{
if "login" not in [log_message]{
drop {} #Drop everything that does not include a WARN
}
}
output {
elasticsearch {
hosts => ["IP:9200"]
cacert => '/etc/logstash/ca.crt'
user => '?'
password => ?
index => "filebeat-%{[@metadata][target_index]}"
}
}
The Problem is: I sent the data to Elasticsearch via Filebeat first. That worked just fine and I can therefore the see field name "log_message". Logstash doesn't work.
Please let me know if you need more Information.