How to check if logging works right

I have fairly new Virtualmin/Webmin installation and I discovered that my logging was not working (lfd gives failed state and also logger -p auth.notice “message” was not saved).

Firstly, I see that my syslog.socket was not running at all and reboot was not help. I tried uncommenting out rsyslog.service systemd configuration “Requires=syslog.socket” and “Alias=syslog.service”, but it was not helping. Finally I get syslog.socket running when I add symlink “ln -s /usr/lib/systemd/system/rsyslog.service /etc/systemd/system/syslog.service”.

But even after that logger -p auth.notice “message” was not saved.

Finally, I get it work when commenting out rsyslog.service /etc/rsyslog.conf “#$ModLoad imjournal”, “#$IMJournalStateFile imjournal.state” and changed “$OmitLocalLogging” option to off.

Now, how can I check that my logging really is working like it should and why all this hassle was needed?

Thank you for all help!

Hi,

How did you install Virtualmin?

wget http://software.virtualmin.com/gpl/scripts/install.sh
sudo /bin/sh install.sh --minimal --bundle LEMP

It was actually strange that after installation httpd was running, not nginx. It was easily fixed for stopping httpd and starting nginx.

Hi,

Which operating system and version are you running?

Sorry for not providing that information in first post.

It is CentOS 2.6.32-042stab125.3