Hi.
Have installed filebeat on a Windows box to collect and forward logs to ELK.
On the logstash input file i have setup a seperate beats section so i can define a different type compared to my other inputs, refer winlogbeat-log01 below:
input file extract:
beats {
port => 5044
type => "beats-log01"
}
beats {
port => 5045
type => "winfilebeat-log01"
}
output file extract:
} else if [type] == "beats-log01" {
elasticsearch {
hosts => ["els02:9200","els03:9200"]
sniffing => true
manage_template => false
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][type]}"
}
} else if [type] == "winfilebeat-log01" {
elasticsearch {
hosts => ["els02:9200","els03:9200"]
sniffing => true
manage_template => false
index => "winfilebeat-%{+YYYY.MM.dd}"
document_type => "winfilebeat-log01"
}
My Kibana output is not picking up this new file 'type' and in my ES I am not getting a new index created (see pic).
Any pointers?