I have a logstash config file below but the api I'm using requires a body that looks like this, how can i pass that information to the http output configuration.
[
{
"class":"stuff",
"details":"more stuff"
}
]
input {
snmptrap {
id => "my_snmp"
port => 162
}
}
output {
stdout {
codec => rubydebug
}
http
{
url=>"https://xxxxxxxxxxxxxxxx"
"
http_method=>"post"
content_type=>"application/json"
format=>"json_batch"
retry_failed=>false
http_compression=>true
headers => {
"Authorization" => "apiKey xxxxxxx"}
}
}