Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-19-2009, 10:21 AM   #1
LQ Newbie
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
syslog configuration


I have a syslog viewer which requires that the log messages be written with the PRI part of the syslog header.

I.E, currently the messages are being written by syslog such as follows:
Jun 19 16:08:40 jade.......

What I need is the following
<110>Jun 19 16:08:40 jade.......

Where <110> is the PRI part of the syslog header. I am using syslogd 1.4.1 which comes with Red Hat EL5. Can anyone tell me how I configure syslog to print the PRI as part of it's messages? Is it even possible?

Old 06-19-2009, 11:17 AM   #2
Registered: Feb 2009
Distribution: Debian, CentOS 5, Gentoo, FreeBSD, Fedora, Mint, Slackware64
Posts: 208

Rep: Reputation: 46
I looked for a similar answer and found that the standard syslogd gives very few options for customizing how the message is written. I ended up scrapping my search and using syslog-ng which gives a template function that allows you to specify how the log entry is written. But, there are other options like rsyslog and metalog (and probably a lot more I don't mention).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
syslog-ng configuration linux_@dmin Linux - Server 5 01-01-2009 11:17 PM
syslog configuration nrodri72 Linux - Security 1 05-21-2008 05:24 AM
syslog configuration in 9.3 smannell SUSE / openSUSE 2 05-13-2005 03:16 PM
Syslog configuration RajaRC Linux - Networking 0 01-14-2004 01:36 AM
info on syslog configuration markus1982 Linux - Software 1 05-26-2003 11:55 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration