Point 1- BY default pbs.conf does not have PBS_SYSLOG & PBS_LOCALLOG what will be behavior of get_log_config_values()
Ans: In this case we will set default values to PBS_SYSLOG & PBS_LOCALLOG.
a) First check if the PBS_SYSLOG & PBS_LOCALLOG are set in the pbs.conf file
b) If PBS_SYSLOG is not set, we will set locally in code variable PBS_SYSLOG=0
c) If PBS_LOCALLOG is not set, we will set locally in code variable PBS_LOCALLOG=1
Therefore this will check into the local logs only if the values are not set, which is default for PBS
I have updated the EDD accordingly
Point 2- I have set PBS_SYSLOG=0 where it was unset. The rest is shown as set because the values can be between 0 to 9
Point 3- This will help us run existing tests against syslog functionality without any changes to the tests, we will have to manually set the values in pbs.conf before starting tests.
Point 4- Output of get_rsyslog_priorites() would be something like- [’*.info’, ‘local7.debug’]
This list is a combination of facility.severity. In PBS we can set facility as- LOG_DAEMON and LOG_LOCAL0 to LOG_LOCAL7.
PS- I have changed the description of get_log_syslog_lines() point 2, this notes where we get the severity value.
Here is an example of rsyslog.conf where the info and debug messages file path is set-
On basis of returned list we will then get the of files where the log messages may be logged. The messages can be logged between multiple files. For eg- in the above setup info messages will go to /var/log/messages and debug messages to /var/log/debug
I have removed syslog-ng functions as we will not be adding support for it currently. This is also mention in the EDD. We will add it later once rsyslogd support is completed.