Here's my logstash input config:
input {
snmp {
tables => [
{ "name" => "interfaces" "columns" => [
".1.3.6.1.2.1.31.1.1.1.1"
] }
]
hosts => [
{ host => "udp:192.168.1.1/161" community => "public" },
{ host => "udp:192.168.1.2/161" community => "public" }
]
}
}
My list of hosts is dynamic, always updated... Can I source it from a file, something like that:
input {
snmp {
tables => [
{ "name" => "interfaces" "columns" => [
".1.3.6.1.2.1.31.1.1.1.1"
] }
]
hosts => [
source /path/to/host/file
]
}
}
That would bring whatever is in the /path/to/host/file into the input config of logstash. If not, how can I dynamically generate my list?