Hello all, I'm using both Filebeat and Winlogbeat to send events to Logstash which then forwards them to Elasticsearch nodes, however whilst my Winlogbeat events are being indexed in Elasticsearch I cannot find anything for Filebeat
Relevant Filebeat config:
output.logstash:
# The Logstash hosts
hosts: ["192.168.56.227:5045"]
Relevant Logstash config:
input {
beats {
client_inactivity_timeout => 1200
port => 5044
type => wineventlog
}
beats {
client_inactivity_timeout => 1200
port => 5045
type => filebeat
..........................................................................................
output {
if [type] == "wineventlog" {
elasticsearch {
hosts => ["192.168.56.226:9200", "192.168.52.251:9200", "192.168.52.252:9200"]
manage_template => false
index => "%{[@metadata][beat]}-%{+YYYY.MM}"
document_type => "%{[@metadata][type]}"
}
}
if [type] == "filebeat" {
elasticsearch {
hosts => ["192.168.56.226:9200", "192.168.52.251:9200", "192.168.52.252:9200"]
manage_template => false
index => "%{[@metadata][beat]}-%{+YYYY.MM}"
document_type => "%{[@metadata][type]}"
}
}
Running netstat on the Logstash box shows the filebeat client IP connecting on port 5045, can anyone explain why I'm not seeing a filebeat- index in Elasticsearch?
Thanks for any help.