LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 02-03-2008, 08:14 AM   #1
tommy_cs
LQ Newbie
 
Registered: Nov 2007
Posts: 3

Rep: Reputation: 0
Question Syslog syntex


Here is a portion from syslog configuration file

...

# Log cron stuff
cron.* /var/log/cron

# Everybody gets emergency messages
*.emerg *

....


Do anyonw know the meaning of the * ? What is the output file it represent?

Last edited by tommy_cs; 02-03-2008 at 08:15 AM.
 
Old 02-03-2008, 08:22 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

As stated in syslog.conf's manpage: An asterisk ("*'') can be used to specify all facilities or all levels.

Hope this helps.
 
Old 02-04-2008, 10:02 AM   #3
tommy_cs
LQ Newbie
 
Registered: Nov 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by druuna View Post
Hi,

As stated in syslog.conf's manpage: An asterisk ("*'') can be used to specify all facilities or all levels.

Hope this helps.
I saw an example on the web( forgot where )
using "*" instead of specifing a path to a log file.

not sure it is valid, I will try it out when i'm free.
 
Old 02-04-2008, 10:14 AM   #4
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS
Posts: 375

Rep: Reputation: 38
Like this?
Code:
# Everybody gets emergency messages
*.emerg                                                 *
That means that it goes to all logs(i think) and to everyone logged in.

Last edited by frndrfoe; 02-04-2008 at 10:25 AM. Reason: correction
 
Old 02-04-2008, 10:21 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

Quote:
Originally Posted by tommy_cs View Post
I saw an example on the web( forgot where )
using "*" instead of specifing a path to a log file.

not sure it is valid, I will try it out when i'm free.
It is valid.

You can use the * in the 'action' field to tell syslog that it should output this message to all available (logged in) users, logs and (if defined) pipes. The manpage cuts it a bit short: An asterisk. Selected messages are written to all logged-in users..

Hope this helps.
 
Old 02-05-2008, 07:35 AM   #6
tommy_cs
LQ Newbie
 
Registered: Nov 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by druuna View Post
Hi,



It is valid.

You can use the * in the 'action' field to tell syslog that it should output this message to all available (logged in) users, logs and (if defined) pipes. The manpage cuts it a bit short: An asterisk. Selected messages are written to all logged-in users..

Hope this helps.
I see.. Thanks!!
 
  


Reply


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
syntex error sachin1361 Linux - Enterprise 2 03-12-2007 07:11 AM
LXer: Centralized Syslog Server Using syslog-NG LXer Syndicated Linux News 0 04-28-2006 07:21 PM
Ftp command syntex juanb Linux - General 1 02-12-2006 08:03 AM
Syntex error in script Dave Kelly Programming 1 10-31-2005 04:02 AM
syslog brandonweinberg Linux - Software 0 03-10-2004 04:02 PM


All times are GMT -5. The time now is 08:06 AM.

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