Logging, Syslog and Log Anaylsys Forums
»
Forums
»
Syslog & syslogd
»
syslog-ng
how to add facility and level to log entry with syslog-ng.......urgent
Username:
1 Hour
1 Day
1 Week
1 Month
Forever
Password:
Home
Help
Search
Quick Search
Advanced Search
Login
Register
News
:
« previous
next »
Pages: [
1
]
0 Members and 1 Guest are viewing this topic.
Topic Tools
Topic Tools
Print
July 24, 2008, 06:08:38 am
#0
taka1112004
taka1112004
Send taka1112004 an email.
Show taka1112004's last posts.
Show general stats for taka1112004.
Newbie
Posts: 7
how to add facility and level to log entry with syslog-ng.......urgent
Hi guys,
I have a problem that has troubled me for quite a long time, in a short ,the problem is like as following:
a want to add the corresponding facility and level into the every log info i received,however,(as a freshman ,i haven't completely understood how to config to meet my requirement .) every entry of log info in my file didn't have the facility.it's just like below:
Jul 13 18:57:47 10.240.46.16 36: *Mar 1 03:02:54: %SYS-5-CONFIG_I: Configured from console by console
and the format i want is like this :
<local1.info> Jul 13 18:57:47 10.240.46.16 36: *Mar 1 03:02:54: %SYS-5-CONFIG_I: Configured from console by console
i've looked up the web for a long time ,though i know syslog-ng must have the ability to attach the facility and level to every log entry ,the detail config can't be found ,
so what i want is a sample from which i can learn how to config the syslog-ng .
the another question is what should i add to the config file to get the syslog-ng itself log info?
appreciate
July 27, 2008, 07:37:56 pm
#1
mutex
mutex
Show mutex's last posts.
Show general stats for mutex.
Administrator
Newbie
Posts: 782
Re: how to add facility and level to log entry with syslog-ng.......urgent
You want to add something like this:
destination d_file {
file("/var/log/messages"
template("$FACILITY:$PRIORITY $MSG\n"; template_escape(no))); };
Pages: [
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Forums
-----------------------------
=> Syslog & syslogd
===> syslog-ng
=> Log Data and Analysis
=> Windows Event Log
=> Web Server Logs
=> Security
=> General Discussion
=> Red Light District
=> Logs, Sarbanes Oxley and Compliance
GoogleTagged:
add syslog entry
syslog-ng logging level
syslog facility add
facility
syslog-ng
syslog level
syslog-ng add log
syslog-ng facility user severity info
add syslog facility
syslog learn local facility
syslog level
level facility syslog-ng
syslog
les dans syslog-ng
facility syslog-ng
custom log facility syslog-ng
syslog add facility
syslog-ng facility level
syslog-ng facility log
syslog show facility level
Information Security News
|
Jerry Bell's blog
|
Enterprise IT
|
Tropical Fish Information
|
Tropical Fish Forums
Loading...