We're forwarding syslog data to a centralized rsyslog server and have done this using the standard commands;
isi_log_server add 10.1.10.20
isi_for_array -sq 'killall -HUP syslogd'
We're now getting data from the Isilon nodes into our central syslog server.
What I'm having trouble with is getting the data from two additional files into the central syslog server. In /etc/syslog.conf I see them managed like this;
!lsass
cifs.* /var/log/lsassd.log
!lwio
cifs.* /var/log/lwiod.log
!lwio
I would have expected that this would have worked;
Just a shot from left field; do all of the nodes have network connectivity and are able to reach the syslog server? I have seen problems when not all nodes are network attached... (NANON).
In order to add a construct like the one below, you will need to edit your custom syslog file by hand.
!lsass
cifs.* @10.1.10.20
The custom syslog config file is located in /etc/mcp/override/syslog.conf. You edit this file on any node in the cluster and the changes will be updated automatically on all nodes.
Once you've made this change, you can no longer use the 'isi_log_server' utility as it doesn't understand this construct.
I've had to use this in order to configure certain auditing events to reach an external syslog server:
2014-11-10T13:27:42-05:00 <30.3> yfvm-7111-2(id2) lsass[37482]: cifs_err_test_A Mon Nov 10 13:27:41 EST 2014
However it's not showing up in my syslog remote server but I do see the message being sent when I run tcpdump so it's a config issue on my remote syslog server. tcpdump output from my remote syslog server:
13:27:42.013914 IP 192.168.32.222.57835 > yfvm-deb1.yf-isilab.local.syslog: SYSLOG unknown (30).error, length: 89
My last updates to those files are prior to my syslog changes and subsequent. I tried to send a logger message like this;
logger -i -p cifs.err "cifs_err_test_A"
...but it's not showing up in the local files or in the downstream rsyslogd log. I'm wondering if there's an error in my logger syntax or if maybe just the hamhanded approach of appending text to one of those two files are a practical test.
IMPORTANT: I've just stumbled on something today related to this config that might cause certain messages to be ignored by syslog.
If you are using a custom syslog configuration on the cluster with a '!progname' construct, you will probably need to update your custom config. The custom syslog configuration will be in file /etc/mcp/override/syslog.conf, an example that uses !progname is pasted below:
!audit_protocol
*.* @192.168.5.10
!lsass
cifs.* @192.168.5.10
Such a custom config that has '!progname' must be updated to add a '!*' on a line by itself.
So the updated config looks like this:
!audit_protocol
*.* @192.168.5.10
!lsass
cifs.* @192.168.5.10
!*
What this extra line does is reset the progname so that the rest of the standard syslog config gets properly applied. From the syslog.conf man page:
A program or hostname specification may be reset by giving the program or hostname as `*'.
mattashton1
93 Posts
1380
0
Posted November 9th, 2014 17:00
Hi willir9.1
Just a shot from left field; do all of the nodes have network connectivity and are able to reach the syslog server? I have seen problems when not all nodes are network attached... (NANON).
Cheers,
Matt