Duplicating Event To Multiple Indices

I have events coming in with an ID of 123. Is it possible to have this event indexed into two different indices by doing something like below?

output {
  if [log] == 123 {
    elasticsearch {
      index => "123logs"
    }
  }
  elasticsearch {
    index => "all_logs"
  }
}

Yes, you can use conditionals to route some messages to multiple outputs.

So, just to be clear, an event continues to process all outputs until there are none left, it does not stop processing outputs on first match?

That is correct.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.