-
Hi all, Since fluentd is fundamental for Sentinel oms-agent log parsing, this Q&A section is probably where the experts are :) I have successfully configured and installed the oms-agent and the Microsoft CEF python log forward script on a Ubuntu 20.04 x64 VM to forward Fortinet Analyzer firewall logging to Sentinel. I receive the CEF logging in Sentinel. Most fields are mapped correctly. However, not all fields within the CEF Within CEF -> message -> AdditionalExtensions there is the However, I cannot figure out how to configure this additional parse within the message field. My configuration:
Works (raw message and primary CEF filter): https://regex101.com/r/rdf4iP/1
Raw message and secondary
But the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I took some time this evening trying to replicate this issue. Attached As far as I can tell, it just worked, so I'm not sure what is the exact In particular, I poured the test data directly to Fluentd: $ cat test.data > /dev/tcp/127.0.0.1/25226 ... which resulted in the following record: {"host":"evb-nl-ams-fw01_FG6H0E","ident":"CEF","message":"...","cs1":"Norway"} As you can see, "cs1" got parsed properly. Isn't this what you are expecting? fluent.conf <source>
@type syslog
port 25226
bind 127.0.0.1
protocol_type tcp
tag oms.**
<parse>
message_format auto
</parse>
</source>
<filter oms.**>
@type parser
key_name message
reserve_data true
<parse>
@type regexp
expression /.*ad.srccountry=(?<cs1>.*?)\s.*$/
</parse>
</filter>
<match oms.**>
@type stdout
</match> test.data
|
Beta Was this translation helpful? Give feedback.
I took some time this evening trying to replicate this issue. Attached
is the configuration I used in my replication attempt.
As far as I can tell, it just worked, so I'm not sure what is the exact
problem here.
In particular, I poured the test data directly to Fluentd:
$ cat test.data > /dev/tcp/127.0.0.1/25226
... which resulted in the following record:
As you can see, "cs1" got parsed properly. Isn't this what you are expecting?
fluent.conf
<source> @type syslog port 2522…