Hello everyone,
There is something driving me insane, and most probably its my lack of understanding of streams or clojure (or both). I have the following code in riemann.config
(where (tagged-all? "dmz" event)
#(info "dmz" %)
(else #(info "non-dmz" %)))
which seems to always opt for the 'else' clause independent of the presence of the "dmz" tag in the event. I am pasting a sample line which contains the string 'non-dmz', and the 'dmz' tag
INFO [2022-05-13 08:22:27,755] defaultEventExecutorGroup-2-4 - riemann.config - non-dmz #riemann.codec.Event{:host synapse01, :service load/load/longterm, :state ok, :description nil, :metric 0.05, :tags [collectd dmz], :time 1652455348, :ttl 120.0, :plugin load, :type load, :ds_name longterm, :ds_type gauge, :ds_index 2}
I also tried tagged-any? just in case but it made no difference. Can anyone explain why I do not get the "dmz" string when the dmz tag is present?
Thanks