I'm sure this is in the docs, and/or here somewhere, but the closest I have been able to find was a thread here from Oct. 2015 with a link to a doc with info that doesn't work on the current version.
I want to add a field to all log entries that will contain the IP Address of the host (where the log originated). I'm thinking a mutate at the bottom of my filter block. Something like
mutate {
add_field => { "host_ip" => "%{someVar}" }
}
However, I can't seem to find that "someVar" variable.
I thought about setting to debug, and looking at the data coming in to the filter block, but if I did find the IP in some field/variable (eg. %{host}) I couldn't necessarily assume it will always be the IP Address (eg. %{host}).
I would appreciate any help with this specifically, or a point to someplace that lists all the %{data} available in each scope (input, filter, output).
Thanks