Forum Discussion
OMS Agent on Azure Sentinel Log forwarder not receiving and forwarding logs to sentinel workspace
sudo wget -O cef_troubleshoot.py https://raw.githubusercontent.com/Azure/Azure-Sentinel/master/DataConnectors/CEF/cef_troubleshoot.py&&sudo python cef_troubleshoot.py [WorkspaceID]
- FahadAhmedOct 21, 2021Brass Contributor
GaryBushey Thank you for the prompt response. We have got the issue resolved through microsoft support. Apparently for some reason the OMI Agent was in a zombie/stuck state. Restarting the agent didnt work, had to manually kill the process and start the agent again.
Killing and starting the agent again resolved the issue. As per MS teams , one of the possibility of this behavior may be that the disk space got full earlier at some point in time, which was then resolved however may be that disk space issue might have caused the agent to go into such a state.
Anyways, the issue has been resolved, we are still monitoring to see if it remains stable or not.
Sharing the above for the benefit of all.
Thanks once again for your support, much appreciated.Fahad.
- alazargFeb 04, 2023Copper ContributorFahadAhmed - I am having the same issue here. how did you prevent it from getting disk full again?
- KennethMLApr 14, 2023MCT
Hi alazarg
Check your /etc/rsyslog.d/50-default.conf file. It has a section like this:
# # First some standard log files. Log by facility. # #auth,authpriv.* /var/log/auth.log *.*;auth,authpriv.none -/var/log/syslog #cron.* /var/log/cron.log #daemon.* -/var/log/daemon.log kern.* -/var/log/kern.log #lpr.* -/var/log/lpr.log mail.* -/var/log/mail.log #user.* -/var/log/user.logThe problem is line 5 where any facility (*.*) is written to /var/log/syslog file. Solution is to either comment it out (using #) or even better:
# # First some standard log files. Log by facility. # if ($fromhost-ip == '127.0.0.1') then { #auth,authpriv.* /var/log/auth.log *.*;auth,authpriv.none -/var/log/syslog #cron.* /var/log/cron.log #daemon.* -/var/log/daemon.log kern.* -/var/log/kern.log #lpr.* -/var/log/lpr.log mail.* -/var/log/mail.log #user.* -/var/log/user.log }Then only local generated logs will be written to the filesystem and the disk will not be filled.
Good luck.
/Kenneth ML