06-18-2015
Oh...ok. I only supossed that the correct way is use syslog , cause is a daemon built for that.
Thank you for all.
10 More Discussions You Might Find Interesting
1. Programming
Hi,
I was trying to cat some files but not all of them exist.
I would get some messages like below:
cat: cannot open /mil2_usr1/time_logs/investigator/6334
cat: cannot open /mil3_usr1/time_logs/investigator/6334
cat: cannot open /mil3_usr1/time_logs/investigator/6352
I don't want to see... (1 Reply)
Discussion started by: whatisthis
1 Replies
2. Solaris
I got my system sun fire 6800 hung later reboot after generating these message can any one help me on this to review these message..!!
nfssrv: WARNING: nfsauth upcall failed: RPC: Operation in progress
mountd: cannot accept connection: 19: error unknown (current state -1)
KAVE00166-W The... (13 Replies)
Discussion started by: nicknihal
13 Replies
3. HP-UX
Hello,
I am New to Unix.
I am Using HP-UX 9000 Series for my Application.
I am Currently Facing an Issue that the error messages are being written in the syslog file instead of the Application Log File. The Codes for that Syslog.h is written in Pro*C.
I want to know how to Redirect these... (3 Replies)
Discussion started by: balasubramaniam
3 Replies
4. Programming
I read Unix network programming by richard,in chap12.3,it say if call syslog() by using parameter LOG_USER,it should write a message in /var/adm/messages in Solaris,such as "connected from 10.1.1.2",example file inet/daytimetcpsrv2.c.I want to know which syslog file in FreeBSD7.0?I look for... (1 Reply)
Discussion started by: konvalo
1 Replies
5. AIX
I am not a Unix / AIX admin, but am working with one that doesn't seem to know how to set up syslog to forward messages to me the way I need them. Every message they send me has "Message forwarded from <insert host name here>:" but I need it to only have the host name.
In the examples below,... (2 Replies)
Discussion started by: mlbillow
2 Replies
6. UNIX for Advanced & Expert Users
Generally(at least on AIX5.3, Solaris9, OS X)'logger' command would create syslog messages which carry <login name> . On Solaris9, I have experienced two circumstances in which 'logname' command fails. In this circumstance I saw the 'logger' command generated syslog messages which carry... (0 Replies)
Discussion started by: masaki
0 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
I need your help with syslog columns.
Currently I have a script as follows: (extract)
for messages in `cat syslog_message_list.txt`; \
do \
grep $messages syslog.`date +%d%m%y`.log | \
tr -s " " | \
cut -d" " -f4,9- | \
sort -k3.2,3 -k2,2 -k1nr,1 | \
uniq -c | \
sort -k3.2,3... (6 Replies)
Discussion started by: wthomas
6 Replies
8. Red Hat
All thanks for the help in advance. I'm current have my syslog server built on RHEL5.7. I'm wondering how to I have the syslog messages categorized by hostname? Is that an option I can add to the syslog.conf? (1 Reply)
Discussion started by: aojmoj
1 Replies
9. AIX
Hi. recently in many of our lpars we are getting a message in errpt as "C6ACA566 0315094014 U S dtc MESSAGE REDIRECTED FROM SYSLOG".
I have also checked the /etc/syslog.conf file. It doesn't point to error log.
Can someone please advise about how to fix this error ?
pmut3:/> errpt -aj... (4 Replies)
Discussion started by: newtoaixos
4 Replies
10. HP-UX
Dear Concern,
Is there any command to generate message in /var/adm/syslog/syslog.log file in HP-UX.
With Best Regards,
Kauser (2 Replies)
Discussion started by: makauser
2 Replies
LEARN ABOUT OPENSOLARIS
syslog
syslog.h(3HEAD) Headers syslog.h(3HEAD)
NAME
syslog.h, syslog - definitions for system error logging
SYNOPSIS
#include <syslog.h>
DESCRIPTION
The <syslog.h> header defines the following symbolic constants, zero or more of which can be OR'ed together to form the logopt option of
openlog():
LOG_PID Log the process ID with each message.
LOG_CONS Log to the system console on error.
LOG_NDELAY Connect to syslog daemon immediately.
LOG_ODELAY Delay open until syslog() is called.
LOG_NOWAIT Do not wait for child processes.
The following symbolic constants are defined as possible values of the facility argument to openlog():
LOG_KERN reserved for message generated by the system
LOG_USER message generated by a process
LOG_MAIL reserved for message generated by mail system
LOG_NEWS reserved for message generated by news system
LOG_UUCP reserved for message generated by UUCP system
LOG_DAEMON reserved for message generated by system daemon
LOG_AUTH reserved for message generated by authorization daemon
LOG_CRON reserved for message generated by clock daemon
LOG_LPR reserved for message generated by printer system
LOG_LOCAL0 reserved for local use
LOG_LOCAL1 reserved for local use
LOG_LOCAL2 reserved for local use
LOG_LOCAL3 reserved for local use
LOG_LOCAL4 reserved for local use
LOG_LOCAL5 reserved for local use
LOG_LOCAL6 reserved for local use
LOG_LOCAL7 reserved for local use
The following is declared as a macro for constructing the maskpri argument to setlogmask(). The following macro expands to an expression of
type int when the argument pri is an expre ssion of type int:
LOG_MASK(pri) a mask for priority pri
The following constants are defined as possible values for the priority argument of syslog():
LOG_EMERG A panic condition was reported to all processes.
LOG_ALERT A condition that should be corrected immediately.
LOG_CRIT A critical condition.
LOG_ERR An error message.
LOG_WARNING A warning message.
LOG_NOTICE A condition requiring special handling.
LOG_INFO A general information message.
LOG_DEBUG A message useful for debugging programs.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO
syslog(3C), attributes(5), standards(5)
SunOS 5.11 10 Sep 2003 syslog.h(3HEAD)