Hello guys,
I'm currently configuring my ELK cluster to receive syslog from ESXi and Winlogbeats events from Windows.
On input file, i got:
input {
udp {
port => 3514
type => "syslog"
}
beats {
port => 5044
type => "wineventlog"
}
}
And output file:
output {
if [type] == "wineventlog" {
elasticsearch {
hosts => ["http://localhost:9200"]
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][type]}"
}
}
else {
elasticsearch {
hosts => ["http://localhost:9200"]
index => "syslog-%{+YYYY.MM.dd}"
}
}
stdout { codec => rubydebug }
}
Is it correct to got 2 different index?
Is there a better way?
Thanks in advance for your help.