unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCHES] Syslog produces no log (just for me?)
Date: Mon, 30 Mar 2015 10:23:15 +0300	[thread overview]
Message-ID: <87y4mfrlss.fsf@gmail.com> (raw)
In-Reply-To: <87sicnx5m9.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 29 Mar 2015 16:03:58 +0200")

Ludovic Courtès (2015-03-29 17:03 +0300) wrote:

> Alex Kost <alezost@gmail.com> skribis:
>
>> Hello, I noticed that my /var/log/messages (and other log files and
>> tty12) were not filled anymore.  I found that the problem is in
>> "syslog.conf": when the "rule" lines begin with spaces, they are
>> ignored, so I'm attaching a patch to fix it.¹
>>
>> The strange thing is it worked earlier (with the same config) and since
>> nobody noticed that before, I have a feeling that it might be the
>> problem on my computer.  So I appreciate if someone confirms that the
>> problem really exists.
>
> If definitely works on my machine.  Could it be that your in-store
> syslog.conf has actually been altered or something?  Does syslogd print
> an error message in the console when it starts?

Nope, syslog.conf in store is fine.  The problem can be definitely
solved for me by removing leading spaces.  Actually never mind, as I'm
going to use my config for syslog-service, but anyway here is what
happens when I start syslogd with the conf-file of the same contents as
provided by 'syslog-service':

--8<---------------cut here---------------start------------->8---
# /run/current-system/profile/libexec/syslogd --debug --rcfile /tmp/syslog-with-leading-spaces.conf
init
cfline(*.aauth.noth.notice;authpriv.none       /dev/console)
syslogd: unknown priority name "aauth.noth.notice"
(logmsg): syslog.err (43), flags 4, from localhost, msg syslogd: unknown priority name "aauth.noth.notice"
Logging to CONSOLE /dev/console
cfline(*.iail.none.none;authpriv.none          /var/log/messages)
syslogd: unknown priority name "iail.none.none"
(logmsg): syslog.err (43), flags 4, from localhost, msg syslogd: unknown priority name "iail.none.none"
Logging to CONSOLE /dev/console
cfline(*.iail.none.none;authpriv.none          /dev/tty12)
syslogd: unknown priority name "iail.none.none"
(logmsg): syslog.err (43), flags 4, from localhost, msg syslogd: unknown priority name "iail.none.none"
Logging to CONSOLE /dev/console
cfline(aut.*                                   /var/log/secure)
syslogd: unknown facility name "aut"
(logmsg): syslog.err (43), flags 4, from localhost, msg syslogd: unknown facility name "aut"
Logging to CONSOLE /dev/console
cfline(mai                                     /var/log/maillog)
syslogd: unknown priority name ""
(logmsg): syslog.err (43), flags 4, from localhost, msg syslogd: unknown priority name ""
Logging to CONSOLE /dev/console
cannot open /gnu/store/9i6q97ixp1ndrwq06b8b5y7mdy0ii4lz-inetutils-1.9.2/etc/syslog.d
 X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X UNUSED: 
 X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X UNUSED: 
 X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X UNUSED: 
 X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X UNUSED: 
 X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X UNUSED: 
(logmsg): syslog.info (46), flags 4, from localhost, msg syslogd (GNU inetutils 1.9.2): restart
syslogd: restarted
Klog open /proc/kmsg
Opened UNIX socket `/dev/log'.
off & running....
Debugging is disabled. Send SIGUSR1 to PID=354 to turn on debugging.
--8<---------------cut here---------------end--------------->8---

\f
And here is the output when the same conf file but without leading
spaces is used:
--8<---------------cut here---------------start------------->8---
# /run/current-system/profile/libexec/syslogd --debug --rcfile /tmp/syslog-without-leading-spaces.conf
init
cfline(*.alert;auth.notice;authpriv.none       /dev/console)
cfline(*.info;mail.none;authpriv.none          /var/log/messages)
cfline(*.info;mail.none;authpriv.none          /dev/tty12)
cfline(authpriv.*                              /var/log/secure)
cfline(mail.*                                  /var/log/maillog)
cannot open /gnu/store/9i6q97ixp1ndrwq06b8b5y7mdy0ii4lz-inetutils-1.9.2/etc/syslog.d
 X  X ff  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X  X FILE: /var/log/maillog
 X  X  X  X  X  X  X  X  X  X ff  X  X  X  X  X  X  X  X  X  X  X  X  X  X FILE: /var/log/secure
7f 7f  X 7f 7f 7f 7f 7f 7f 7f  X 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f TTY: /dev/tty12
7f 7f  X 7f 7f 7f 7f 7f 7f 7f  X 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f FILE: /var/log/messages
 3  3  3  3 3f  3  3  3  3  3  X  3  3  3  3  3  3  3  3  3  3  3  3  3  3 CONSOLE: /dev/console
(logmsg): syslog.info (46), flags 4, from localhost, msg syslogd (GNU inetutils 1.9.2): restart
Logging to TTY /dev/tty12
Logging to FILE /var/log/messages
syslogd: restarted
Klog open /proc/kmsg
Opened UNIX socket `/dev/log'.
off & running....
Debugging is disabled. Send SIGUSR1 to PID=355 to turn on debugging.
--8<---------------cut here---------------end--------------->8---

>> Also I think it would be good to allow a user to specify his own
>> configuration file for syslogd (a patch is also attached²).  WDYT?
>
>> From f66520181a65566b1f191583c3e1344c1af93ecc Mon Sep 17 00:00:00 2001
>> From: Alex Kost <alezost@gmail.com>
>> Date: Sat, 28 Mar 2015 15:42:23 +0300
>> Subject: [PATCH 2/2] services: syslog-service: Add 'config-file' argument.
>>
>> * gnu/services/base.scm (syslog-service): Add 'config-file' keyword
>> argument.
>> * doc/guix.texi (Base Services): Document it.
>
> Sure, please push!

Thanks!

-- 
Alex

  reply	other threads:[~2015-03-30  7:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-28 13:24 [PATCHES] Syslog produces no log (just for me?) Alex Kost
2015-03-29 14:03 ` Ludovic Courtès
2015-03-30  7:23   ` Alex Kost [this message]
2015-03-30 21:20     ` Ludovic Courtès
2015-04-01  9:54       ` Syslog bug Alex Kost
2015-04-01 19:51         ` Ludovic Courtès
2015-04-01 20:34           ` Alex Kost

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y4mfrlss.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).