Forum Discussion
Will_Network
Nov 02, 2020Copper Contributor
Azure Sentinel Linux Syslog Agent Configuration
Hello All,
I looking for help with trying to ingest Cisco NGFWv syslog messages in Azure Sentinel. I've configured my Linux Syslog agent to collect my Common Event Format (CEF) Syslog messages ...
- Dec 16, 2020HI Will,
Please check if you have the security_events.conf file available under /etc/opt/microsoft/omsagent/youur workspaceid/conf/omsagent.d
If not create one and add the below entries in the file.
<source>
type syslog
port 25226
bind 127.0.0.1
protocol_type tcp
tag oms.security
format /(?<time>(?:\w+ +){2,3}(?:\d+:){2}\d+|\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.[\w\-\:\+]{3,12}):?\s*(?:(?<host>[^: ]+) ?:?)?\s*(?<ident>.*CEF.+?(?=0\|)|%ASA[0-9\-]{8,10})\s*:?(?<message>0\|.*|.*)/
<parse>
message_format auto
</parse>
</source>
<filter oms.security.**>
type filter_syslog_security
</filter>
Also under syslog.conf file available in the same path please change the protocol from UDP to TCP. After changing that to TCP restart using the following command.
sudo service rsyslog restart
After performing the above steps you can go to the /etc/rsyslog.d. Under this you can find 95-omsagent.conf file and change the @127.0.0.1 with @@127.0.0.1 to send the log in tcp.
THis should resolve your issue as it worked for me.
Mike_Elliott
Dec 16, 2020Copper Contributor
Will_Network are the mock messages appearing in Sentinel in the CommonSecurityLog?