I have logstash rigged up for two inputs, one for beats and the other for an http poller to further enrich beats data.
How do I reference the data that comes from the http_poller input?
Here is my config for the inputs:
input {
beats {
port => 5044
client_inactivity_timeout => 300
}
http_poller {
urls => {
igridurl => {
method => get
user => "usr"
password => "pass"
url => "myurl"
headers => {
Accept => "application/json"
}
}
}
request_timeout => 60
schedule => {every => "3h"}
codec => "json"
metadata_target => "http_poller_metadata"
}
}
I have tried to add a field by using:
mutate {
add_field => {"HTTP_DATA" => "%{[http_poller_metadata]}"}
}
But that doesn't work, I literally get a field with "%{[http_poller_metadata]}"
as the value...