Folks, I've modified the contributed configuration file for Red Hat to update it to be more compatible with Red Hat 7.3. In particular, I've modified it to totally remove the requirement for running klogd (as described in the FAQ). In particular, I've added a template to include the program type "kernel:" for kernel messages. This is normally done by klogd, and is expected by such utilities as logwatch. The one question I have here is that I have two opens of "/var/log/messages" with different options, and I'm not sure if it is legal, although it does seem to work. Are there any possible problems with this? Thanks Frank Crawford -- ac3 Suite G16, Bay 7, Locomotive Workshop Phone: 02 9209 4600 Australian Technology Park Fax: 02 9209 4611 Eveleigh NSW 1430
On Sat, Aug 10, 2002 at 10:00:49PM +1000, Frank Crawford wrote:
Folks, I've modified the contributed configuration file for Red Hat to update it to be more compatible with Red Hat 7.3. In particular, I've modified it to totally remove the requirement for running klogd (as described in the FAQ).
In particular, I've added a template to include the program type "kernel:" for kernel messages. This is normally done by klogd, and is expected by such utilities as logwatch. The one question I have here is that I have two opens of "/var/log/messages" with different options, and I'm not sure if it is legal, although it does seem to work. Are there any possible problems with this?
Yes, there are. You should use the log_prefix option for file sources. (I know it's undocumented): source s_kern { file("/proc/kmsg" log_prefix("kernel: ")); }; -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
On Wed, 2002-08-21 at 21:43, Balazs Scheidler wrote:
On Sat, Aug 10, 2002 at 10:00:49PM +1000, Frank Crawford wrote: ...
Yes, there are. You should use the log_prefix option for file sources. (I know it's undocumented):
source s_kern { file("/proc/kmsg" log_prefix("kernel: ")); };
Thanks, I'll do that and it should take care of my issue. Frank -- ac3 Suite G16, Bay 7, Locomotive Workshop Phone: 02 9209 4600 Australian Technology Park Fax: 02 9209 4611 Eveleigh NSW 1430
Following on from Balazs' email, attached is a better Red Hat configuration file. Frank Crawford -- ac3 Suite G16, Bay 7, Locomotive Workshop Phone: 02 9209 4600 Australian Technology Park Fax: 02 9209 4611 Eveleigh NSW 1430
On Thu, Aug 22, 2002 at 02:40:46PM +1000, Frank Crawford wrote:
Following on from Balazs' email, attached is a better Red Hat configuration file.
I included it in my source tree. the next release will contain it. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
participants (2)
-
Balazs Scheidler
-
Frank Crawford