summaryrefslogtreecommitdiffstats
path: root/usr.sbin/syslogd/syslogd.8
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2008-09-25 09:28:18 +0000
committerdwmalone <dwmalone@FreeBSD.org>2008-09-25 09:28:18 +0000
commit94da79315bdc541c58e1c004e61e255e6cc5397f (patch)
tree8564bf426dd0ba6942f01879bda251b1983829ea /usr.sbin/syslogd/syslogd.8
parent71c4e3af8912c81a6b9fd9f363ac48c2aa96f33f (diff)
downloadFreeBSD-src-94da79315bdc541c58e1c004e61e255e6cc5397f.zip
FreeBSD-src-94da79315bdc541c58e1c004e61e255e6cc5397f.tar.gz
Add a flag, -T, that tells syslogd to always replace the timestamp on
messages from the network. We already replace malformatted timestamps and this option lets us replace timestamps that are correctly formatted but wrong. PR: 120891 Submitted by: Thomas Vogt <thomas@bsdunix.ch> MFC after: 1 week
Diffstat (limited to 'usr.sbin/syslogd/syslogd.8')
-rw-r--r--usr.sbin/syslogd/syslogd.812
1 files changed, 12 insertions, 0 deletions
diff --git a/usr.sbin/syslogd/syslogd.8 b/usr.sbin/syslogd/syslogd.8
index 5d8896a..e8000f7 100644
--- a/usr.sbin/syslogd/syslogd.8
+++ b/usr.sbin/syslogd/syslogd.8
@@ -242,6 +242,11 @@ Do not log messages from remote machines.
If
specified twice, no network socket will be opened at all, which also
disables logging to remote machines.
+.It Fl T
+Always use the local time and date for messages received from the network,
+instead of the timestamp field supplied in the message by the remote host.
+This is useful if some of the originating hosts can't keep time properly
+or are unable to generate a correct timestamp.
.It Fl u
Unique priority logging.
Only log messages at the specified priority.
@@ -308,6 +313,13 @@ will not append to log files that do not exist (unless
option is specified);
therefore, they must be created manually before running
.Nm .
+.Pp
+The date and time are taken from the received message.
+If the format of the timestamp field is incorrect,
+time obtained from the local host is used instead.
+This can be overriden by the
+.Fl T
+flag.
.Sh FILES
.Bl -tag -width /var/run/syslog.pid -compact
.It Pa /etc/syslog.conf
OpenPOWER on IntegriCloud