If I have several outputs defined, are my events guaranteed to hit each output in the order they are defined?
I want to have an output plugin add a tag if it fails and have a conditional that will send my event to a file if that tag exists. It would look like this:
output {
my_custom_output_plugin {}
if "failed_custom_output" in [tags] {
file {
path => "/var/log/failed_to_send.log"
}
}
}
The logic to add the tag would exist in the custom output plugin. Would something like this work?