change log folder of bptm messages from /var/log/messages to different
Hello,
I would like to change log directory/file from /var/log/messages to different.
There are some bptm logs like these below, which I need to write somewehre else, not in to /var/log/messages:
Sep 20 03:49:53 MEDIASERVER bptm[36686]: TapeAlert Code: 0x0f, Type: Warning, Flag: MIC FAILURE, from drive IBMEQ2_F1_R02 (index 3), Media Id X00676
Sep 20 03:49:53 MEDIASERVER bptm[36686]: TapeAlert Code: 0x12, Type: Warning, Flag: DIRECTORY CORRUPTED ON LOAD, from drive IBMEQ2_F1_R02 (index 3), Media Id X00676
Sep 20 03:50:14 MEDIASERVER bptm[36686]: TapeAlert Code: 0x33, Type: Warning, Flag: DIRECTORY INVALID ON UNLOAD, from drive IBMEQ2_F1_R02 (index 3), Media Id X00676
Is it possible to change such logs in to different file, for example /var/log/netbackupmessages ?
How to change it?
Media server is running on Linux.
Thanks in advance.
You need to look at your systems syslog facility. There is no configurable options in Netbackup.
Some hints:
https://help.ubuntu.com/community/LinuxLogFiles#System_Logging_Daemon_.28syslogd.29
https://en.wikipedia.org/wiki/Syslog
Personally those kind of errors should be acted upon, and should not appear too often in the syslog.
TapeAlert Code: 0x0f, Type: Warning, Flag: MIC FAILURE, from drive IBMEQ2_F1_R02 (index 3), Media Id X00676
TapeAlert Code: 0x12, Type: Warning, Flag: DIRECTORY CORRUPTED ON LOAD, from drive IBMEQ2_F1_R02 (index 3), Media Id X00676
TapeAlert Code: 0x33, Type: Warning, Flag: DIRECTORY INVALID ON UNLOAD, from drive IBMEQ2_F1_R02 (index 3), Media Id X00676Please suspned media X00676. bpmedia -suspned -m X00676