- The issue may be the difference in the /etc/rsyslog.conf file which can be seen in log /var/log/layer7-patchlog. Check the following file for the patch error -/var/log/layer7-patchlog
- The error says Fri Aug 25 18:16:10 2017: INFO : /tmp/patchertemp2300285132835263679.tmp/patch_sh_script1573696352081571235: doPostInstallScripts(507): Running post-install script postinstall_02_bash_logging_toggle.sh.
- Script output is appended to the log file:
+ RSYSLOG_CONF_FILE=/etc/rsyslog.conf
+ BASH_LOG_FILE=/var/log/bash_commands.log
++ date +%Y%m%d_%H%M%S
+ BK_TIME=20170825_181610
+ BK_DIR=/opt/SecureSpan/Appliance/config/bash_log/
+ LOG_FILE=/opt/SecureSpan/Appliance/config/bash_cl_audit_toggle.log
+ checkFileExists /etc/rsyslog.conf
+ local FILE=/etc/rsyslog.conf
+ '[' -e /etc/rsyslog.conf ']'
+ RETVAL=0
'[' 0 -eq 0 ']'
+ which rsyslogd
+ /sbin/rsyslogd -c3 -f /etc/rsyslog.conf -N 1
+ '[' 1 -ne 0 ']'
+ toLog 'ERROR - The rsyslog configuration file (/etc/rsyslog.conf) syntax is not valid. Exiting...'
++ which date
+ local DATE=/bin/date
+ '[' X0 == X0 ']'
++ date '+%a %b %e %H:%M:%S %Y'
+ LOG_TIME='Fri Aug 25 18:16:10 2017'
+ '[' -f /opt/SecureSpan/Appliance/config/bash_cl_audit_toggle.log ']'
+ echo -e Fri Aug 25 18:16:10 '2017: ERROR' - The rsyslog configuration file '(/etc/rsyslog.conf)' syntax is not valid. Exiting...
+ exit 1
- Run the following command to confirm that the issue is due to /etc/rsyslog.conf: /sbin/rsyslogd -c3 -f /etc/rsyslog.conf -N 1
- The output is (error snippet):
rsyslogd: CONFIG ERROR: could not interpret master config file '/home/ssgconfig/customer_rsyslog.conf'. [try http://www.rsyslog.com/e/2124 ]
... compared to when running again the default file:
rsyslogd: WARNING: rsyslogd is running in compatibility mode. Automatically generated config directives may interfer with your rsyslog.conf settings. We suggest upgrading your config and adding -c5 as the first rsyslogd option.
rsyslogd: End of config validation run. Bye.