Avatar of jaja2005
jaja2005
Flag for Norway asked on

Forward syslog from RedHAT Enterprise 3.5 and CentOS

Hi there.
How I can forward all syslog entries to a syslog server from RedHAT Enterprise 3.5 an CentOS?
What conf files should be changed?

thx
Linux Distributions

Avatar of undefined
Last Comment
jaja2005

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
medvedd

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
jaja2005

ASKER
just this? On freebsd had to check many other things like host.conf, ecc

medvedd

If your syslog server is ready to accept messages from clients, you don't need anything else.
jaja2005

ASKER
ok will test Asap
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Julian Parker

syslog on the receiving server does need to be configured to listen, note the -r option in the syslog file.


# more /etc/sysconfig/syslog 
# Options to syslogd
# -m 0 disables 'MARK' messages.
# -r enables logging from remote machines
# -x disables DNS lookups on messages recieved with -r
# See syslogd(8) for more details
SYSLOGD_OPTIONS="-m 0 -r"
# Options to klogd
# -2 prints all kernel oops messages twice; once for klogd to decode, and
#    once for processing with 'ksymoops'
# -x disables all klogd processing of oops messages entirely
# See klogd(8) for more details
KLOGD_OPTIONS="-x"
#
SYSLOG_UMASK=077
# set this to a umask value to use for all log files as in umask(1).
# By default, all permissions are removed for "group" and "other". 

Open in new window

jaja2005

ASKER
Hi. As syslog server i use a commercial solution thus want only to be sure that clients linux machine are configured proprely. thx for you help.
jaja2005

ASKER
can you show me a how the files shoud be configured on the CEntos? What if this is a virtual machine on ESX server?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.