| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-03-2008, 07:14 AM
|
#1
|
|
LQ Newbie
Registered: Nov 2007
Posts: 3
Rep:
|
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 07:15 AM.
|
|
|
|
02-03-2008, 07:22 AM
|
#2
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,718
|
Hi,
As stated in syslog.conf's manpage: An asterisk ("*'') can be used to specify all facilities or all levels.
Hope this helps.
|
|
|
|
02-04-2008, 09:02 AM
|
#3
|
|
LQ Newbie
Registered: Nov 2007
Posts: 3
Original Poster
Rep:
|
Quote:
Originally Posted by druuna
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.
|
|
|
|
02-04-2008, 09:14 AM
|
#4
|
|
Member
Registered: Jan 2008
Distribution: RHEL, CentOS
Posts: 370
Rep:
|
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 09:25 AM.
Reason: correction
|
|
|
|
02-04-2008, 09:21 AM
|
#5
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,718
|
Hi,
Quote:
Originally Posted by tommy_cs
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.
|
|
|
|
02-05-2008, 06:35 AM
|
#6
|
|
LQ Newbie
Registered: Nov 2007
Posts: 3
Original Poster
Rep:
|
Quote:
Originally Posted by druuna
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!!
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:40 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|