1835259 Members
2414 Online
110078 Solutions
New Discussion

syslog.conf

 
Joaquín_2
Advisor

syslog.conf

i want config a remote syslog and i modify the syslog.conf for send the all messages to my server syslog.
my syslog.conf in the hp9000 is this

/etc-> cat syslog.conf
# @(#)B.11.11_LR
#
# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug /var/adm/syslog/mail.log
*.info;mail.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root
*.emerg *
*.* @ajusa-servicios

the host ajusa-servicios is defined in the file hosts, but i don't see nothing in my server log.

thans and sorry by my english.

sistemas@ajusa.es
9 REPLIES 9
Robert-Jan Goossens
Honored Contributor

Re: syslog.conf

Hi Joaquín,

1)
Could you check if there is a space or a tab between *.* and @ ( should be a tab ).

*.* @ajusa-servicios

2)
ajusa-servicios is a server ? can you ping the host ?

Kind regards
Robert-Jan

Ps Nothing wrong with your English :
Joaquín_2
Advisor

Re: syslog.conf

there are many spaces between *.* and @ajusa-servicios, and i can do ping to
ajusa-servicios.

i think that if this line is not operate, would be appears in some file log, but ' search it, but i don't find it.
Robert-Jan Goossens
Honored Contributor

Re: syslog.conf

Can you replace the "space characters" with a "tab" and restart the inet daemon.

# inetd -c
Kiyoshi Miyake
Frequent Advisor

Re: syslog.conf

maybe you should specify level "debug" or "info".

*.debug @ajusa-servicios

thx.
Bharat Katkar
Honored Contributor

Re: syslog.conf

For making your syslogd daemon to re read the configuration file use this :

kill -HUP `cat /var/run/syslog.pid`

When you do this check for syslog.log file if you receive any error message.



You need to know a lot to actually know how little you know
Joaquín_2
Advisor

Re: syslog.conf

i have proved this but i don't run.
I have append one line to syslog.conf :

*.* /var/adm/syslog/mylog.log

and after the restart the syslogd and inetd, the file mylog.log has empty and don't receive any message from syslog.
Joaquín_2
Advisor

Re: syslog.conf

i write *.debug and then it's run, but i don't understand because don't work with *.*.I use it in linux and works.

thanks
Bernhard Mueller
Honored Contributor

Re: syslog.conf

Joaquin,

what you want is to be set by:
*.info@remote-host

(*.info not *.*)

Regards,
Bernhard
RAC_1
Honored Contributor

Re: syslog.conf

Do you have port 514(udp) open? This is the port used for remote logging.

Check /etc/services file.
Then do inetd -c

Anil
There is no substitute to HARDWORK