Pipeline to Overriding facility with additional _facility field


(N3xus) #1

I’m trying to write a rule to override “facility” with “_facility” but not working. Can you tell me what I’m doing wrong?

rule "override facility field with _facility"
when
    has_field("_facility")
then
    set_field("facility", $message._facility);
end

(Jochen) #2

Have you connected the rule to the correct pipeline and the pipeline to the correct stream?

See http://docs.graylog.org/en/2.2/pages/pipelines/usage.html for details.