NetBSD Problem Report #14290
Received: (qmail 24011 invoked from network); 18 Oct 2001 17:51:05 -0000
Message-Id: <E15uHJs-0008Kp-00@pilchuck.reedmedia.net>
Date: Thu, 18 Oct 2001 10:51:00 -0700
From: reed@reedmedia.net
Reply-To: reed@reedmedia.net
To: gnats-bugs@gnats.netbsd.org
Subject: syslogd(8) doesn't explain what a log message contains
X-Send-Pr-Version: 3.95
>Number: 14290
>Category: bin
>Synopsis: syslogd manual should explain what a log message contains
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: closed
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 18 17:52:00 +0000 2001
>Closed-Date: Wed May 07 21:40:20 +0000 2003
>Last-Modified: Wed May 07 21:40:20 +0000 2003
>Originator:
>Release: not current
>Organization:
http://bsd.reedmedia.net/
>Environment:
System: NetBSD rainier 1.5.1_BETA NetBSD 1.5.1_BETA (JCR-1.5-20010407) #0: Sat Apr 7 01:44:35 PDT 2001 reed@rainier:/usr/src/sys/arch/i386/compile/JCR-1.5-20010407 i386
>Description:
Every so often I read or hear that someone doesn't understand the
info in a syslog log message; in particular the [pid]. I know this is not
related to syslogd, but maybe a quick explanation can help.
While I was looking at this I see that syslogd's usage is slightly different
than the manual page. The usage() doesn't include -S and uses different
names for log_socket (vs. logpath). I didn't make a patch for that.
>How-To-Repeat:
man syslogd # what does [number] mean?
man syslog
>Fix:
Two patches below (are made against netbsd-1-5):
--- /usr/share/man/man3/syslog.3 Wed Apr 25 20:14:42 2001
+++ syslog.3 Thu Oct 18 10:44:50 2001
@@ -157,7 +157,8 @@
Write the message to standard error output as well to the system log.
.It Dv LOG_PID
Log the process id with each message: useful for identifying
-instantiations of daemons.
+instantiations of daemons. (This PID is placed within brackets
+between the ident and the message.)
.El
.Pp
The
--- /usr/src/usr.sbin/syslogd/syslogd.8 Thu Jul 20 07:48:13 2000
+++ syslogd.8 Thu Oct 18 10:33:54 2001
@@ -129,6 +129,12 @@
.Dl syslogd -p /var/run/log -p /web/var/run/log -p /ftp/var/run/log
.Pp
note: the normal log socket must now also be passed to syslogd.
+.Pp
+The logged message includes the date, time, and hostname (or pathname of
+the log socket). Commonly, the program name and the process id is
+included, but this depends on how
+.Xr openlog 3
+was used.
.Sh SYSLOG PROTOCOL NOTES
.Pp
The message sent to
>Release-Note:
>Audit-Trail:
From: Gregory McGarry <gmcgarry@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: pr/14290 CVS commit: src/lib/libc/gen
Date: Fri, 2 May 2003 08:26:47 +0000 (UTC)
Module Name: src
Committed By: gmcgarry
Date: Fri May 2 08:26:46 UTC 2003
Modified Files:
src/lib/libc/gen: syslog.3
Log Message:
Clarify output. From PR#14290.
To generate a diff of this commit:
cvs rdiff -r1.16 -r1.17 src/lib/libc/gen/syslog.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: gmcgarry
State-Changed-When: Fri May 2 08:32:00 UTC 2003
State-Changed-Why:
I added the changes to the manpages. On -current, there isn't any
references to the -S option. Has this changed? Can you check and
get back to me so that this PR can be closed.
From: Gregory McGarry <gmcgarry@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: pr/14290 CVS commit: src/usr.sbin/syslogd
Date: Fri, 2 May 2003 08:31:53 +0000 (UTC)
Module Name: src
Committed By: gmcgarry
Date: Fri May 2 08:31:52 UTC 2003
Modified Files:
src/usr.sbin/syslogd: syslogd.8
Log Message:
Add an explanation of the log format. From PR#14290.
To generate a diff of this commit:
cvs rdiff -r1.28 -r1.29 src/usr.sbin/syslogd/syslogd.8
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: feedback->closed
State-Changed-By: gmcgarry
State-Changed-When: Wed May 7 21:39:22 UTC 2003
State-Changed-Why:
Patches applied. Feedback positive. OK to close.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.