Sponsored Content
Full Discussion: syslog
Operating Systems Solaris syslog Post 302087126 by BOFH on Tuesday 29th of August 2006 08:13:55 PM
Old 08-29-2006
Quote:
Originally Posted by csaunders
So i beleive if i take the loghost entry out of /etc/hosts and then alter the mail line in syslog.conf to look like this... i should be ok

mail.debug /var/log/syslog

anyone think this is a bad idea?
I know that on some syslog implementations you can use spaces to separate the facility from the log. On Solaris (at least Solaris 6, which was the last time I worked with a syslog dedicated server), you must have only tabs between the facility and the log file name.

I just checked OS X, Mandrake Linux and OpenBSD and all use tabs.

Make sure the file exists before you restart syslog (yea I saw your earlier post that said it was zero bytes, just a note for the folks at home Smilie ).

Again, you might try using logger:

logger -p mail.debug -t testing "Testing to see if syslog is really working."

If you have an existing entry, you can replace mail.debug with one of those facilities and check that log. Basically make sure syslog itself is working so you know what you're trying to fix. Perhaps your mail program isn't configured to log to mail.debug (need to increase a debug level for example).

Carl
 

2 More Discussions You Might Find Interesting

1. Solaris

Which are the available entries to forward syslog in syslog.conf?

Hi Community Which are the available entries to forward syslog in syslog.conf i have put *.err;kern.debug;daemon.notice;mail.crit;user.alert;user.emerg;kern.notice;auth.notice;kern.warning @172.16.200.50 and it's not going through.giving error message like below: syslogd:... (2 Replies)
Discussion started by: bentech4u
2 Replies

2. AIX

Cannot send syslog event from AIX 6.1 to RHEL Syslog server

Hi everyone, I am trying to configure AIX 6.1 using syslogd to send syslog event to syslog server configured on RHEL. However, RHEL never receives the events. I have tried to redirect the syslog event on AIX to a local file and successful. Only forwarding to remote server fails. Firewall... (10 Replies)
Discussion started by: michael_hoang
10 Replies
syslog_evm.conf(4)					     Kernel Interfaces Manual						syslog_evm.conf(4)

NAME
syslog_evm.conf - EVM syslog subscription configuration file SYNOPSIS
facility.priority DESCRIPTION
The syslog_evm.conf file is a text file that specifies what syslog messages will be forwarded from the syslog daemon to the Event Manager, EVM,in the form of EVM events. Those syslog messages are posted to the EVM daemon evmd by syslogd if the syslogd forwarding function is turned on with the -e flag. Events are posted with the EVM name of sys.unix.syslog.facility-name. This configuration file is read every time syslogd starts, or is restarted by a SIGHUP signal. If the file does not exist, or if it exists but contains no subscription lines, no syslog messages will be posted to EVM. Each line in the file controls the forwarding of one syslog event. Lines beginning with the # character are considered comments and are ignored. Only one subscription per line is permitted. Mixing a subscription and a comment on the same line is not allowed. Each line has the format facility.priority[+]. Specifies the part of the system that generated the message. Legal values are the follow- ing: All messages. Messages generated by the kernel. Messages generated by user processes. Messages generated by the mail system. Mes- sages generated by system daemons. Messages generated by the authorization system. Messages generated internal to the syslog system. Messages generated by the line printer spooling system. Messages generated by the system news command. Messages generated by the UNIX to UNIX copy system. Messages generated by the system clock daemon. Messages generated by remote file systems. Available for local use. Indicates the priority of the message. If the priority is followed by a + character, events which are of the specified priority or higher are forwarded; otherwise only events which exactly match the priority are forwarded. The priority level must be one of the following: Forward messages of any priority. Forward messages of emergency priority. Forward messages of alert priority. Forward messages of critical priority. Forward messages of error priority. Forward messages of warn- ing priority. Forward messages of notice priority. Forward messages of information priority. Forward messages of debug priority. EXAMPLES
This example causes syslogd to forward events to EVM as follows: All messages of emergency priority are forwarded. All messages generated in the kernel which have a priority of info or greater are forwarded. All messages generated by users, by the mail subsystem or by the system daemons which have a priority of info or greater are forwarded. *.emerg kern.info+ user.notice+ mail.notice+ daemon.notice+ FILES
Location of the system logger configuration file. Location of the EVM syslog subscription configuration file. Location of the EVM logger configuration file. SEE ALSO
Commands: evmd(8), evmlogger(8), syslog(1), syslogd(8) Routines: syslog(3) Event Management: EVM(5) delim off syslog_evm.conf(4)
All times are GMT -4. The time now is 02:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy