rsyslog logging is missing
Posted: Thu Nov 10, 2016 2:15 am
I have configured the cisco device xx.xx.67.254 to send syslog data to a centralised server xx.xx.83.94 so as to keep track of the logs and search for the required
data using keywords. These are the steps i followed to setup xx.xx.83.94(RHEL) as a centralised server
1.Installed rsyslog service - yum install rsyslog
2.Made sure the syslog service is stopped and started again
3. Enabled syslog traffic on port 514- semanage -a -t syslogd_port_t -p udp 514
4.Setup log file location in the rsyslog.conf file
$template TmplAuth, "/var/log/%HOSTNAME%/%PROGRAMNAME%.log" //Create log file based on the hostname
authpriv.* ?TmplAuth
*.info,mail.none,authpriv.none,cron.none ?TmplMsg
5.Enabled module and UDP protocol
$ModLoad imudp
$UDPServerRun 514
6.Open access in firewall-Added this rule to open port
iptables -A INPUT -m state --state NEW -m udp -p udp --dport 514 -j ACCEPT
7.Restarted syslog service
service rsyslog restart
I have also enabled syslogging on the cisco device.
USCHSRST01#show logging
Syslog logging: enabled (0 messages dropped, 17 messages rate-limited, 0 flushes
, 0 overruns, xml disabled, filtering disabled)
No Active Message Discriminator.
No Inactive Message Discriminator.
Console logging: level debugging, 321 messages logged, xml disabled,
filtering disabled
Monitor logging: level debugging, 0 messages logged, xml disabled,
filtering disabled
Buffer logging: level debugging, 336 messages logged, xml disabled,
filtering disabled
Exception Logging: size (4096 bytes)
Count and timestamp logging messages: disabled
Persistent logging: disabled
Trap logging: level debugging, 340 message lines logged
Logging to xx.xx.83.94 (udp port 514, audit disabled,
link up),
340 message lines logged,
0 message lines rate-limited,
0 message lines dropped-by-MD,
xml disabled, sequence number disabled
filtering disabled
Logging Source-Interface: VRF Name
This is the rsyslog.conf file.Do I have to add the remote server ip xx.xx.67.254 in the file? If so what is the format However, i havent received any syslog data from the cisco device on the centralised server.I am able to ping to the cisco device and port 514 is also in LISTEN state.
Is there any other config that i am missing on any of the servers? Can you please help me fix this. Thanks
data using keywords. These are the steps i followed to setup xx.xx.83.94(RHEL) as a centralised server
1.Installed rsyslog service - yum install rsyslog
2.Made sure the syslog service is stopped and started again
3. Enabled syslog traffic on port 514- semanage -a -t syslogd_port_t -p udp 514
4.Setup log file location in the rsyslog.conf file
$template TmplAuth, "/var/log/%HOSTNAME%/%PROGRAMNAME%.log" //Create log file based on the hostname
authpriv.* ?TmplAuth
*.info,mail.none,authpriv.none,cron.none ?TmplMsg
5.Enabled module and UDP protocol
$ModLoad imudp
$UDPServerRun 514
6.Open access in firewall-Added this rule to open port
iptables -A INPUT -m state --state NEW -m udp -p udp --dport 514 -j ACCEPT
7.Restarted syslog service
service rsyslog restart
I have also enabled syslogging on the cisco device.
USCHSRST01#show logging
Syslog logging: enabled (0 messages dropped, 17 messages rate-limited, 0 flushes
, 0 overruns, xml disabled, filtering disabled)
No Active Message Discriminator.
No Inactive Message Discriminator.
Console logging: level debugging, 321 messages logged, xml disabled,
filtering disabled
Monitor logging: level debugging, 0 messages logged, xml disabled,
filtering disabled
Buffer logging: level debugging, 336 messages logged, xml disabled,
filtering disabled
Exception Logging: size (4096 bytes)
Count and timestamp logging messages: disabled
Persistent logging: disabled
Trap logging: level debugging, 340 message lines logged
Logging to xx.xx.83.94 (udp port 514, audit disabled,
link up),
340 message lines logged,
0 message lines rate-limited,
0 message lines dropped-by-MD,
xml disabled, sequence number disabled
filtering disabled
Logging Source-Interface: VRF Name
This is the rsyslog.conf file.Do I have to add the remote server ip xx.xx.67.254 in the file? If so what is the format However, i havent received any syslog data from the cisco device on the centralised server.I am able to ping to the cisco device and port 514 is also in LISTEN state.
Is there any other config that i am missing on any of the servers? Can you please help me fix this. Thanks