How to check if logging works right

5 posts / 0 new
Last post
#1 Mon, 01/08/2018 - 04:09
Mixka

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!

Tue, 01/09/2018 - 15:37
tpnsolutions
tpnsolutions's picture

Hi,

How did you install Virtualmin?

Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Wed, 01/10/2018 - 04:46 (Reply to #2)
Mixka
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.

Wed, 01/10/2018 - 14:00
tpnsolutions
tpnsolutions's picture

Hi,

Which operating system and version are you running?

Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Wed, 01/10/2018 - 14:46 (Reply to #4)
Mixka

Sorry for not providing that information in first post.

It is CentOS 2.6.32-042stab125.3

Topic locked