I need to know more about Syslog


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users I need to know more about Syslog
# 1  
Old 11-16-2009
I need to know more about Syslog

I'll be writing a program that makes use of Syslog. From what I've read, you can send Syslog messages from 1 computer to another. How is this done? I know it makes use of UDP and uses port 514. Does anyone know of an example command to send from Computer A to Computer B?


A little bit more info about the project. It will be done in C++. If you know of any libraries to make use of, please let me know.
# 2  
Old 11-16-2009
You need to configure the file /etc/syslog.conf to send all or certain types of messages to another system. For example to send all warning and higher priority messages to 192.168.0.118, you would add the following entry
Code:
*.warn   @192.168.0.118

Note that the syslog facility on 192.168.0.118 must also be configured to receive these messages (typically with the -r command line option to syslogd).

Read the syslog.conf(5) and syslogd man pages for detailed information.
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. 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

2. 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
Login or Register to Ask a Question