History log of /freebsd-10.0-release/etc/newsyslog.conf
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 252481 01-Jul-2013 asomers

Add syslog(3) support to devd(8).

sbin/devd/devd.cc
All output will now go to syslog(3) if devd is daemonized, or stderr
if it's running in the foreground.

sbin/devd/devd.8
Remove the "-D" flag. Filtering messages by priority now
happens in the usual syslog way. For performance reasons, a few
extra-verbose debugging statements are now conditional on the "-d" (do
not daemonize) flag.

etc/syslog.conf
etc/newsyslog.conf
Direct messages from devd(8) to /var/log/devd.log, but leave it
disabled by default

Reviewed by: eadler
Approved by: gibbs (co-mentor)
MFC after: never (removed a command-line option from devd)


# 250579 12-May-2013 eadler

Revert r250565 which causes issues for older CPUs

PR: conf/178504
Requested by: many


# 250565 12-May-2013 eadler

Make newsyslog compress logs with xz instead of bzip2 to save space.

PR: conf/178504
Submitted by: ak
Reviewed by: smh


# 244522 20-Dec-2012 markj

Don't reload syslogd after rotating sendmail.st, as this file isn't
managed by syslogd.

PR: conf/169973
Approved by: rstone (co-mentor)
MFC after: 1 week


# 243568 26-Nov-2012 glebius

Fix typo in weekly line which made it to rotated after reaching > 1 Kb.

PR: conf/173857
Submitted by: Matt Smith <matt xtaz.co.uk>


# 233167 19-Mar-2012 glebius

Rotate auth.log and messages at the beginning of a year. Otherwise,
daily security checks 800.loginfail and 900.tcpwrap may produce
false positive alerts.


# 232977 14-Mar-2012 ed

Make init(8) slightly more robust when /dev/console is missing.

If the environment doesn't offer a working /dev/console, the existing
version of init(8) will simply refuse running rc(8) scripts. This means
you'll only have a system running init(8) and nothing else.

Change the code to do the following:

- Open /dev/console like we used to do, but make it more robust to use
O_NONBLOCK to prevent blocking on a carrier.
- If this fails, use /dev/null as stdin and /var/log/init.log as stdout
and stderr.
- If even this fails, use /dev/null as stdin, stdout and stderr.

So why us this useful? Well, if you remove the `getpid() == 1' check in
main(), you can now use init(8) inside jails to properly execute rc(8).
It still requires some polishing, as existing tools assume init(8) has
PID 1.

Also it is now possible to use use init(8) on `headless' devices that
don't even have a serial boot console.


# 221382 03-May-2011 ru

Updated `flags' field description.


# 202218 13-Jan-2010 ed

Let rc and periodic infrastructure and newsyslog use the utmpx files.


# 185565 02-Dec-2008 kensmith

The slip.log file got removed along with the MPSAFE tty work. If slip
does ever come back it's probably best if its log file be something that
gets added if the user decided they want to run slip instead of having
it here unconditionally.


# 177658 27-Mar-2008 brooks

Remove the C flag from slip.log. The current slip userbase does not
justify the presence of a (usually empty) /var/log/slip.log on every
FreeBSD box.


# 142962 01-Mar-2005 brooks

- Update etc/rc.d/newsyslog to FreeBSD standards and install it.
- Enable it by default, running newsyslog with -CN which creates files
that have the C flag specified in /etc/newsyslog.conf.
- Remove the "newsyslog -CC" call from etc/rc.d/var and the check for
newsyslog.
- Add the C flag to entries in /etc/newsyslog.conf that are currently
installed as part of the base system.

There are two effects from this change:
- Users who delete default syslog files to stop logging to them
will need to set newsyslog_enable=NO in rc.conf or remove the C
flag from those file in /etc/newsyslog.conf or they will come back
on the next boot.
- Diskless systems now create the same set of files that ordinary
systems have by default instead of every file in newsyslog.conf.


# 127799 03-Apr-2004 mlaier

Style:
- do not comment out entries in newsyslog.conf
- use tabs to line up inetd.conf

Requested by: bde
Approved by: bms(mentor)


# 127759 02-Apr-2004 mlaier

Add rc.d script to start pflogd and add rcvars etc. Also document vars in
rc.conf(5) and put a sample entry to newsyslog.conf

Reviewed by: -current
Approved by: bms(mentor)


# 118637 07-Aug-2003 fjoe

Fix typo in comments:
/etc/syslogd.conf -> /etc/syslog.conf

MFC after: 3 days


# 114747 05-May-2003 gad

Add the 'N' flag to the entries for three log files which are *not*
written to by syslogd: /var/log/{daily.log,weekly.log,monthly.log}

MFC after: 1 week


# 114745 05-May-2003 gad

Update the comments in this file to reflect the recent changes to
newsyslog.

MFC after: 1 week


# 113259 08-Apr-2003 des

Introduce debug.log which gets debug.* (most of this would otherwise go
to the great bit-bucket in the sky)


# 110995 16-Feb-2003 des

Alphabetize.


# 103738 21-Sep-2002 markm

Rename the ftp log filename for compatability with OpenBSD and NetBSD.

Requested by: ru


# 103719 20-Sep-2002 markm

Log ftpd stuff in the same way that we log lpd stuff. Too many ftpd's
are attacked for us to throw away this sort of evidence.


# 103263 12-Sep-2002 obrien

Use bzip2 instead of gzip for those logs we compress.

Basic idea agreed to by: rwatson


# 97199 23-May-2002 gshapiro

Change the default permissions for the sendmail statistics file to 0640
instead of 0644 to help protect users against a file locking local
denial of service.

MFC after: 1 day
pending RE approval


# 92100 11-Mar-2002 rwatson

Turns out everyone is a lot lazier than I thought. Spell
'authentication.log' as 'auth.log'.

This is also more consistent with syslog facility names.

Sigh. :-)

Submitted by: asmodai, aeonflux, green, ....


# 92099 11-Mar-2002 rwatson

Clean up logging of security information a bit:

o Introduce /var/log/authentication.log, which will be the target for
auth.info and authpriv.info by default. Rotate on the same schedule
as most other logs. Create at installation.

o Remove logging of auth.info from /var/log/security.log, which will
return to being only for security feature subsystems (such as ipfw,
and so on).

This creates a special authentication log, which can now be searched
by scripts for authentication events.


# 87170 01-Dec-2001 obrien

Use tabs where possible.


# 83560 16-Sep-2001 jlemon

Change maillog to have permissions of 640. Users shouldn't be able to
eavesdrop on other users' communications.


# 82866 03-Sep-2001 brian

Allow group network to read ppp.log & slip.log.

Suggested by: Jesper Skriver <jesper@FreeBSD.org>


# 82758 01-Sep-2001 rwatson

o Note that some sites will want to select generally more conservative
permissions on some files, and give hints as to what those permissions
might be. Note also that the current more liberal permissions might
get changed in future revisions.


# 82706 31-Aug-2001 rwatson

o More conservative permissions for kerberos.log: 600 instead of 644.

Reviewed by: peter


# 80639 30-Jul-2001 obrien

Document Bzip2's flag.

PR: 27901
Submitted by: Anders Nordby <anders@fix.no> (stylistic changes by me)


# 77363 28-May-2001 phk

/var/log/console.log should be mode 600.

PR: 25329
Submitted by: Yoshihiro Koya Yoshihiro.Koya@math.yokohama-cu.ac.jp
MFC after: 1 week


# 72580 17-Feb-2001 phk

Log the console output to "/var/log/console.log", not "/var/log/console"
(MFC candidate)


# 72075 06-Feb-2001 rwatson

o Introduce automated log rotation for /var/log/console, the
default syslog target for console messages (when enabled in
syslog.conf). Use the same rotation defaults as with
/var/log/messages -- every 100kb of log, compress back logs,
and keep five rotated logs.
o Note: phk also thought it would be useful to force rotation
each boot. This commit does not introduce such a rotation.

Reviewed by: phk


# 65843 14-Sep-2000 brian

Another overhaul of the periodic stuff.

All periodic sub-scripts <larf> now have their return codes interpreted
by periodic(8). Output may be masked based on variable values in
periodic.conf.

It's also now possible to email periodic output to arbitrary addresses,
or to send it to a log file, examples of which can be found in
newsyslog.conf.

The upshot of it all should be no discernable changes to the default
behaviour of periodic(8).

PR: 21250


# 63097 13-Jul-2000 peter

Change various log file modes from mode 664 to 644. Allowing group
wheel to trash logfiles is not exactly good security policy. There have
been several gid wheel holes in ports. Various other files were changed
as well (eg: the locate database were set to more restrictive modes (444)
by their generation scripts) so this should be safe for them. utmp and
wtmp are mode 644 already on all the systems we checked.

Submitted by: jkb
Reviewed by: kris


# 57065 08-Feb-2000 rwatson

Add two commented out syslog.conf entries, one to demonstrate the use of
an all.log for logging all messages, and one to demonstrate use of loghosts.
Also, a matching entry in newsyslog.conf for all.log.

Per request of Garrett Wollman, also modified the maillog entry to use the
@T newsyslog time specification mechanism. Because newsyslog doesn't
support the mod date specification machanism, couldn't change other
entries that required more than one execution a month, but less than once
a day.

Approved by: jkh
Reviewed by: freebsd-security


# 51033 06-Sep-1999 n_hibma

Move /var/cron/log to /var/log/cron


# 50472 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 50126 21-Aug-1999 green

This is the addition of a syslog(3) security.* top-level category. This
should be used from now on for anything security but not auth-related.
Included are updates for all relevant manpages and also to /etc files,
creating a new /var/log/security. Nothing in the system logs to
/var/log/security yet as of the time of this commit.

Reviewed by: rgrimes, imp, chris


# 48295 28-Jun-1999 obrien

Syntax for user/group is changed from "user.group" to "user:group" to be
consistant with chown(8).


# 48294 28-Jun-1999 obrien

Fix minor alignment problem.


# 47665 01-Jun-1999 ru

Damn, forgot this: time -> when.


# 47662 01-Jun-1999 ru

Sync header line with newsyslog(8).
PR: 11511
Reviewed by: des


# 43358 28-Jan-1999 wollman

Now that newsyslog is capable of doing this at a specific time,
let it rotate /var/log/wtmp again, and update monthly/200.accounting to
take this into account. (Some sites might want to change the parameters
of the rotation; it's easier to do this when it's all centralized in
newsyslog.conf.)


# 36818 09-Jun-1998 ache

Indicate optional signal number field


# 35199 14-Apr-1998 jmb

rotate sendmail statistics file weekly.
keep the last ten weeks of data.
Submitted by: jmb


# 33188 09-Feb-1998 danny

PR: 1708, 5448
Remove wtmp


# 26548 10-Jun-1997 ache

Fix ppp log name


# 26547 10-Jun-1997 ache

Not kill ppp now, it uses syslog


# 25645 10-May-1997 brian

Update ppp example pid_file name.

Suggested by: ache


# 25446 04-May-1997 ache

Use newly introduced pid file field now for ppp


# 23037 23-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 22295 05-Feb-1997 mpp

Change the header line to read "count" instead of "ngen" so
that it matched the terms used in the manual page.

Closes PR# 2663.


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 16596 22-Jun-1996 pst

Add /var/log/ppp.log from iij ppp


# 13455 16-Jan-1996 graichen

added the "-p" option to amd so that it writes it's pid to
/var/run/amd.pid and added the "-l /var/log/amd.log" option there too

added an entry for the "rotation" of /var/log/amd.log to newsyslog.conf


# 13296 06-Jan-1996 ache

Put startslip syslog messages into separate file
Increase rotating log sizes in newsyslog.conf to reflect
more common case


# 13286 06-Jan-1996 ache

Restore broken accounting statistics:
1) It have nothing common to (new)syslog messages
2) acct.* rotating allowed only after "sa -s" run!


# 13285 06-Jan-1996 ache

/var/account/acct is binary file, mark this fact as 'B' flag


# 13250 05-Jan-1996 graichen

added the file /etc/newsyslog.conf (config file for
/usr/sbin/newsyslog - see the man-page for it for details) - i put all
the "rotations" which were in /etc/[daily,weekly,monthly] in here