Charlie Brady wrote:
On Tue, 23 Aug 2005, Robin Bowes wrote:
In the pod for the logging/adaptive plugin, you suggest changing the
log run file to (something like):
#! /bin/sh
export LOGDIR=./main
mkdir -p $LOGDIR/failed
exec multilog t n10 \
'-*` *' $LOGDIR/detailed \
'-*' '+*` *' $LOGDIR/accepted
This seems not quite right.
Why are you creating $LOGDIR/failed ?
Why are you not creating $LOGDIR/detailed and $LOGDIR/accepted ?
I'd add:
Why is multilog running as root when it doesn't have to?
Good point. My production server runs setuidgid.
Why is LOGDIR exported?
Also a good point.
[Are those really backticks, or are you just using an MUA which
doesn't understand ASCII?]
They're really backticks. John's plugin uses this as a default if no
other character is specified:
In order to visually distinguish the accepted from rejected lines, all
log lines from a accepted message will be prefixed with the character
listed here (directly after the PID). You can use anything you want as
a prefix, but it is recommended that it be short (preferably just a single
character) to minimize the amount of bloat in the log file. If absent, the
prefix defaults to the left single quote (`).
R.