I try the same pipeline for some syslog messages and it works but I need this for a “Raw/Plaintext AMQP” input, so it’s the graylog that reads the Rabbit queue and I think I need to do something different for this input.
@nsecurity
Hello,
I tried to create an example for you. What I’m using is Graylog 4.0.
Created a new field using a Regular expression from what information you gave us as shown below,
First I used this site for testing my Regular expression → here.
Using a pipeline to convert the your_new_field to a different value.
rule "event"
when
has_field("your_new_field") AND contains(to_string($message.your_new_field), "0x10000")
then
set_field("your_new_filed","new_value");
end
Still fairly new at using pipelines and Regular expression. This worked for me to converting numbers into a name. I have seen other members/staff here work with pipelines better then i can.
Hope this helps
@gsmith
Hello,
I have updated graylog to 4.0 but still not working even with extractors.
If I use on message the funcion “add to query” this is the result:
the original message is in a strange format so, probably, did not match with extractors,pipelines ecc…
do you ever seen something like this?
thanks
Agree, if the mesages looks like that, the extractor are not going to help.
Yes I have, when one of my INPUTs were incorrect. For an example: Using Syslog UDP INPUT for my frewalls I had to change my INPUT to Raw/Plaintext UDP.
You still using Raw/Plaintext AMQP? is so try using Raw/Plaintext UDP as an INPUT see if that helps. The order of what I would do is make sure messages are coming through correct. Then I would add the extractors to create unique fields. And last I would apply the pipeline. Just a thought…
Hope that helps
How are you sending those messages to RabbitMQ? Do you happen to be sending Windows logs through RabbitMQ to Graylog? I ask because I ran into a similar issue (sans RabbitMQ) that seemed to indicate that it was actually an encoding issue on the Windows side. If it is in fact a Windows system, you’ll want to look at how that file is encoded. IANA Windows admin, but from what Google tells me, Windows uses UTF-16. If you’re using Filebeat, you should be able to set the encoding like so:
logs arrive from a EMC unity, rabbitmq is installed on a windows machine and talk with the EMC CEE service installed on the same machine.
I configure a Splunk endpoint that ricognized all the fileds of EMC logs without rabbitmq beacause CEE has a dedicated configuration for Splunk and these services communicate each other via HTTP.
I didn’t find anything like this in graylog so I try to do the same thing with rabbitmq.