SumoLogic/logstash-output-sumologic

test

Closed this issue · 0 comments

hello,
im 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:

{
  "accountId" => "12324",
   "@timestamp" => 2019-03-18T14:43:33.030Z,
  "message" => "myjson",
  "logGroupName" => "/aws/lambda/zamira",
   "id" => "/aws/lambda/zamira",
 }

my configuration file is:

filter {
  if [type] == "kinesis" {
    json {
      source => "message"
      add_field => { "id" => "%{logGroupName}" }
    }
    
    mutate {
      replace => { "message" => "My new message" }}
    }
  }
}

output {
  if [accountId] == "" {
    sumologic {
      format => "%{@json}"
      source_category => "prod/%{logGroupName}"
      url => "https://endpoint1.collection.eu.sumologic.com/receiver/v1/http/xxxxxxxxxxxxx"
    }
  }
}