So trying to route my local syslog messages routed to a different input so that I can set a different retension schedule and the pipeline that I have setup is acting unexpectedly:
I have indexes “Main” and “Local” and streams “All messages” (index set Main) and “Local Messages” (index set Local)
My Local input “appliance-syslog-udp” is receiving messages from my local server. When I attempt to use a pipeline rule to route these messages to the “Local Messages” stream and then remove them from the “All messages” stream it is putting messages that came from my global input “WinLogs-gelf” into the “Local Messages” stream.
My rule I have defined are as follows if anyone can see where I went wrong or suggest an alternative I would be very appreciative:
rule "function move main to local"
when
from_input(id:"\<InputID\>")
then
// the following date format assumes there's no time zone in the string
route_to_stream(id:"\<LocalStreamID\>");
remove_from_stream(id:"\<MainStreamID\>");
end
So I am obviously coming at this from a wrong angle.
My local input “appliance-syslog-udp” utilizing port 514 is sending messages into my main index. I am trying to get all of those messages into a different index so that I can define a different retention policy. I thought I could use route_to_stream (into a stream with my different index set) and remove_from_stream (removing from the All messages stream).
My problem seems to be with the pipeline I have created. I now have messages in the needed index but they aren’t the messages that are coming into the “appliance-syslog-udp” input. How would I go about figuring out what the pipeline is triggering off of?
rule "function move main to local"
when
from_input(id:"3A58779f40b85fe8065554aa6f")
then
// the following date format assumes there's no time zone in the string
route_to_stream(id:"5b100261cb93e5170abc42cd");
remove_from_stream(id:"000000000000000000000001");
end
So looking at differences between Pipelines and Stream rules. Is it true that Stream rules are as the messages are coming and Pipeline rules are after the messages are already ingested?