Hi All,
below is the file beat I'm configuring in one server with port 5044
filebeat:
prospectors:
- paths:
- /path/to/logs/router-001-yyyymmdd.log
include: "Read from QMANGER:INPUT_IN"
fields: {log_type: input_interface}
-
paths:
- /path/to/logs/router-002-yyyymmdd.log
include: "Write on QMANGER:OUTPUT_OUT"
fields: {log_type: output_interface}
Logstash: config file
input {
beats {
port => 5044
}
}
filter {
if [fields][log_type] == "input_interface" {
mutate {
add_field => { "foo" => "var" }
}
}
if [fields][log_type] == "output_interface" {
mutate {
add_field => { "foo" => "var" }
}
}
}
the above will work for one server log files, if I want to get logs from another servers.. how should I configure logstash conf file.?
Please help..
Thanks,
Sridhar. B