Closed zamirajaupaj closed 5 years ago
I have the same issue. I've tried to create dynamic source_category using metadata or value in some fields but those aren't successul. Example code is described below, which is pretty same with zamirajaupaj's code.
filter {
mutate{
add_field => {
"[@metadata][env]" => "prod"
}
}
}
output {
sumologic {
format => "%{@json}"
source_category => "%{[@metadata][env]}"
url => "https://endpoint1.collection.eu.sumologic.com/receiver/v1/http/xxxxxxxxxxxxx"
}
}
Current the %{}
is not supported in header tags like source_name
, source_category
, etc.
hello, i'm trying to use this plugin, but i have an issue: is not working value in output. Sumo logic create the resources with name: prod/%{logGroupName} but not with name prod/aws/lambda/zamira in local i have this output:
my configuration file is: