I believe you have to have a Default Index/Stream. You donāt have to use it though. They way I have my Graylog is setup, message processing handles all incoming messages and routes them to a new stream and index. That way if anything shows up in the Default stream/Index, I know I have some adjustments to make.
It is possible to remote the index via command line/api call, but I believe there is a good reason why this is not possible via GUI.
Try it, but backup your system before you do it.
So what you suggest is that I create a stream for a different index? The problem with that approach is that if I associate a stream to my whole input Iāll get the same problem. Since Iām using a mono-input source (Wazuh logs), it would just create a duplicate index with all the information already contained in the different indices/streams, defined with rules to include all logs, but segregated by client.
My applogies, I though it was about default index. What I have been doing to help you further was read about Wazuh environment.
I was looking for a way to separt the logs before sending them to Graylog.
Example somehting like thisā¦
output {
udp {
port => 5064
type=>"syslog"
}
}
output {
beats {
port => 12201
type=>"gelf"
}
}
It would be better to separate the logs before the y hit Graylog input. Just an idea
Second, using the piepline to filter out the devices, etc⦠from Wazuh, pretty much something like this.
Stage 0
rule "testing route to input"
when
from_input(id:"61930ee96cfcf9713fe14bf2") AND contains (to_string($message.message), "joseraeiro")
then
route_to_stream(id:"619f001ede134c6ec5760c9f");
end
The idea behind this would be route_to_stream(id:ā619f001ede134c6ec5760c9fā); is the the stream called āLINUXā and only ājoseraeiroā in th emessage would be routed there. you can make a broader search but that is just an example, hope that helps.