LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-15-2015, 10:12 PM   #1
dcsst28
LQ Newbie
 
Registered: Mar 2012
Distribution: Slackware, Fedora
Posts: 18

Rep: Reputation: Disabled
CentOS 7 rsyslogd not accepting logs from client machines


Hello,

I am attempting to configure a CentOS 7 box to be a syslog server, however I have yet to see any logs from client machines. I will describe what I have done so far.

On the CentOS 7 box:

1.) Uncommented these lines:
# Provides UDP syslog reception
#$ModLoad imudp
#$UDPServerRun 514

# Provides TCP syslog reception
#$ModLoad imtcp
#$InputTCPServerRun 514

So that they now look like this:
# Provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514

# Provides TCP syslog reception
$ModLoad imtcp
$InputTCPServerRun 514

2.) I then restarted the service by typing the following:
[root@localhost ~]# systemctl restart rsyslog.service

3.) I finally verified that rsyslogd was running with a netstat -antup | grep 514, which produced the following results:
tcp 0 0 0.0.0.0:514 0.0.0.0:* LISTEN 4263/rsyslogd
tcp6 0 0 :::514 :::* LISTEN 4263/rsyslogd
udp 0 0 0.0.0.0:514 0.0.0.0:* 4263/rsyslogd
udp6 0 0 :::514 :::* 4263/rsyslogd

On each of the client machines (which are running Slackware 14.1 and FreeBSD 10.1-RELEASE):

1.) added this line to the syslog.conf files
*.* @10.0.0.2
(10.0.0.2 is indeed the IP address of the CentOS 7 box)

2.) On the FreeBSD box, I added these lines to the /etc/rc.conf file:
syslogd_enable="YES"
syslogd_flags="-s -vv"

and then restarted syslogd:
# /etc/rc.d/syslogd restart

3.) On the Slackware box, I restarted syslogd:
# kill -SIGHUP `cat /var/run/syslogd.pid`

I ran some tests with the logger command, and the logs I generated appeared in the clients' log files, but not in the CentOS 7 box's log files.

Would anyone have any idea what I am doing wrong?

Thank you.
 
Old 01-16-2015, 01:47 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,474

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Check any firewall / iptables rules and ensure you are allowing TCP/UDP traffic on port 514
 
1 members found this post helpful.
Old 01-16-2015, 10:48 PM   #3
dcsst28
LQ Newbie
 
Registered: Mar 2012
Distribution: Slackware, Fedora
Posts: 18

Original Poster
Rep: Reputation: Disabled
Thank you TenTenths. That was exactly the problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsyslogd crashes while running as rsyslogd(rsyslogd -M /lib/rsyslog running well) vipul prajapati Linux - Server 1 03-22-2014 03:02 AM
[SOLVED] Windows machines not accepting IP from DHCP server yogesh_attarde Linux - Software 7 12-15-2013 11:23 PM
rsyslogd imfile mod not working on centos Nemus Linux - Server 5 02-12-2012 09:37 AM
3 machines down- please peek at my logs LarryFrigginWachs Linux - Newbie 2 04-28-2006 07:40 AM
Accepting syslog from other machines. Jerre Cope Linux - Newbie 2 07-09-2004 02:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration