Select output plugin based on a field


(Ram Sharan Mittal) #1

In my requirement, event have to send to different output plugin based on a field in input


#2

This will feed to different outputs based on the 'type' field.

output{
        if [type] != "dots" {
                stdout{ codec=>"rubydebug" }
        } else {
                stdout{ codec=>"dots" }
        }
}

(Makayla Eady) #3

In the event that you intend to influence reasonable sounding to pop or shake, my recommendation is run with a multi-inspected drum pack. On the off chance that you intend to influence hip bounce or electronic music, to begin with a unit of one-hit tests. Most DAWs accompany the two sorts of drums. Mostly Thesis Help | ThesisHelpSquad.co.uk for using new methods.


(Ram Sharan Mittal) #4

I can't use this:
input
{stdin {codec => json}}

output{

            stdout{ codec=>

{if {[type] != "dots"} "rubydebug"
else "dots" }
}

is this some kind of data structure of ruby or logstash format?


(Magnus B├Ąck) #5

You can't use conditionals inside plugin definitions.


(system) #6

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