Storware Backup & Recovery uses log4j2 for logging both in the Node and Server. This module allows writing to external log targets. All supported appenders are described here: https://logging.apache.org/log4j/2.x/manual/appenders.html.
Below, you can find information on how to set Syslog as a target for Storware Backup & Recovery Server and Node.
To support Syslogs, make sure you have rsyslog a package - if not you can install it like this:
sudo yum -y install rsyslog
In /etc/rsyslog.conf file:
uncomment these lines to enable UDP socket transport:
#module(load="imudp") # needs to be done just once
#input(type="imudp" port="514")
add this line under #### GLOBAL DIRECTIVES #### section to support newline characters:
in Loggers add reference to Syslog appender in Root section:
<AppenderRef ref="Syslog"/>
Restart Storware Backup & Recovery Server service:
systemctl restart vprotect-server
Example of log4j2-server.xml after modifications:
To use Syslog's with Storware Backup & Recovery Node add in log4j2-node.xml file:
in Appenders section add Syslog appender:
in Loggers add reference to Syslog appender in Root section:
Restart Storware Backup & Recovery Node service:
Example of log4j2-node.xml after modifications:
Note: If you want to use Syslogs in both Storware Backup & Recovery Server and Node you need to use two different udp ports and specify them in /etc/rsyslog.conf