All pastes #876979 Raw Edit

Stuff

public text v1 · immutable
#876979 ·published 2008-01-29 06:32 UTC
rendered paste body
/*
 * dsyslog example config.
 * Comments are either C-style (like this block), C++ style (//) or
 * shell style (#).
 *
 * This file aims to be a drop-in replacement for syslogd. --nenolod
 *
 * Missing features still:
 *   - log rotation
 *   - output specific matches
 */

/*
 * loadmodule controls what modules are loaded into dsyslog.
 */
loadmodule "source_localsock.so";
loadmodule "filter_dropprog.so";
loadmodule "output_file.so";

/*
 * sources define where dsyslog gets it's data.
 */
source localsock { path "/dev/log"; };

/* you can use the dropprog filter to drop syslog messages
 * from programs you don't care about entirely. for example,
 * to drop logs from sudo, uncomment the line below.
 */
#filter dropprog { program sudo; };

/*
 * this appends entries to /var/log/messages like sysklogd on debian.
 */
output file { path "/var/log/messages"; };