syslog klogd

3 posts / 0 new
Last post
#1 Fri, 2018-03-16 13:39
vinz
  • vinz's picture
  • Offline
  • Last seen: 2 weeks 11 hours ago
  • Joined: 2018-03-16

Dear all,
I'm new here, so I hope, I'm not doing something wrong.
I installed Alpine Linux in sys mode to SD on a Raspberry Pi.

In the evening of 2018-02-28 my /var/log/messages stopped logging.

Today I investigated on this an found, in this evening during a update the startup order of klogd and syslog changed.

/etc/init.d/klogd
  BEFORE need clock hostname localmount
  AFTER  need clock hostname localmount syslog
 
/etc/init.d/syslog
  BEFORE need clock hostname klogd localmount
  AFTER  need clock hostname localmount

Why did this change? How can I boil it down to understand the problem.

After changing it back an a reboot, my iptables logs to /var/log/messages again.
Without the change, service restart and reboot did not help.

But the sshd-login-messages are still missing...
I can't find any further changes regarding this inside /etc/.

Any suggestions?
Thanks,
Vinz

Sat, 2018-03-17 23:33
vinz
  • vinz's picture
  • Offline
  • Last seen: 2 weeks 11 hours ago
  • Joined: 2018-03-16

OK... changing /etc/syslog.conf to something easy I understand, leads to all messages again.

$ sudo vim /etc/syslog.conf
*.info             /var/log/messages
kern.!err          /var/log/critical
*.*                /dev/null
 
$ sudo touch /var/log/messages /var/log/critical
$ sudo service klogd restart

Did there change something in processing this file?
Thanks,
Vinz

Sat, 2018-03-17 23:56
Head_on_a_Stick
  • Head_on_a_Stick's picture
  • Offline
  • Last seen: 1 week 1 day ago
  • Joined: 2016-05-01

Hi vinz :-)

I think you may get a better response over at the mailing lists:

https://wiki.alpinelinux.org/wiki/Alpine_Linux:Mailing_lists#alpine-user

Log in or register to post comments