This post is more than 5 years old
2 Posts
0
1834
How to change auditing default location
Hi Everyone, Dear EMC Community.
So I would like to activate powermt set path_latency_threshold, in order to have a view on possible performances degradations.
I understand this is log the info in /var/log/messages (I got RHEL5 servers).
The thing is that I would like to change logging location and get this info logged in a separate logfile so I can manage logfile rotation independently from /var/log/messages.
I have been looking around and cannot see how to do that.
Any support would be really appreciated.
Thanks a lot in advance.
Best Regards.
pawelw1
306 Posts
1
December 28th, 2016 04:00
Hi titu,
As far as I know, you cannot change PP logging configuration - you can try to reconfigure your syslog to create a separate log file for all kern.notice and kern.info - which PP uses for path latency monitoring - and manage this log file separately. In RHEL 6, "rsyslogd" gives you possibility to use some filters and put only specific events into the log files of your choice, but RHEL 5 'syslogd' is much simpler, so you need to log all the events basing on facility/severity.
If you want to log only path latency messages, you can consider using syslog-ng or rsyslog - or you can use some log-browsing tools to check the latencies in the new log file.
Hope this helps!
Cheers,
Pawel
titu1
2 Posts
0
December 28th, 2016 07:00
Hi Pawel
This helped a lot, thanks to you.
So what I did was activate rsyslog on my RHEL5 ( package was installed but it was not the default syslog , so I stopped syslog first and start rsyslog ) .
In /etc/rsyslog.conf , I put the following lines:
:msg, startswith, "Info:Mpx:Latency " -/var/log/powermt.log
:msg, startswith, "Buffer I/O error " -/var/log/powermt.log
And then after rsyslog reload I had my stuff on /var/log/powermt.log
Dec 28 15:21:33 MYSERVERNAME kernel: Info:Mpx:Latency Threshold exceeded by Path Bus 1 Tgt 1 Lun 246 Vol 60001440000000106043263A7A05715B with a new high latency of 1 msec
Dec 28 15:22:16 MYSERVERNAME kernel: Info:Mpx:Latency Threshold exceeded by Path Bus 1 Tgt 1 Lun 9 Vol 60001440000000107043ABCEE0F2B570 with a new high latency of 237 msec
Dec 28 15:22:16 MYSERVERNAME kernel: Info:Mpx:Latency Threshold exceeded by Path Bus 1 Tgt 1 Lun 9 Vol 60001440000000107043ABCEE0F2B570 with a new high latency of 309 msec
Dec 28 15:23:38 MYSERVERNAME kernel: Info:Mpx:Latency Threshold exceeded by Path Bus 1 Tgt 1 Lun 9 Vol 60001440000000107043ABCEE0F2B570 with a new high latency of 500 msec
Dec 28 15:23:50 MYSERVERNAME kernel: Info:Mpx:Latency Threshold exceeded by Path Bus 1 Tgt 1 Lun 247 Vol 60001440000000106043263A7A05715A with a new high latency of 201 msec
So this is exactly what I wanted, and I can apply here now a specific retention and log rotation policy different from the one that applies to /var/log/messages.
Again, Pawel thanks a lot to you and your EMC community.
Best Regards
Titu.
pawelw1
306 Posts
0
December 28th, 2016 12:00
Nice one Titu, thank you for sharing Good luck!