SumoLogic / logstash-output-sumologic

Forward logstash data to Sumo Logic
Apache License 2.0
18 stars 15 forks source link

Add support for dynamic headers #36

Closed bin3377 closed 5 years ago

bin3377 commented 5 years ago

Addressing https://github.com/SumoLogic/logstash-output-sumologic/issues/33 Support %{} field evaluation in source_category, source_name, source_host parameters

alexbklein91 commented 5 years ago

Hey Bin! What is the proper Syntax to be able to use this? I'm currently using the below output, but the values for source_category and source_host aren't sending.

output {
 sumologic {
 url => "https://endpoint5.collection.us2.sumologic.com/receiver/v1/http/Redacted"
 format => "%{@json}"
 source_category => "%{[fields][log_type]}"
 source_host => "%{[host][name]}"
 }
}

M1kep commented 4 years ago

Same issue here...

M1kep commented 4 years ago

Looks like the released gem is version 1.2.2. This is added to 1.3.0 @alexbklein91