From 5a141a79c98dde8c2e39ccd0502367b9963d1312 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Fri, 14 Aug 2020 16:53:43 +0200 Subject: [PATCH] syslog: interpretation difference between legacy (clog) and new style logging when send via syslog, clog files are not split into directories (module_mylog.log vs module/mylog_XXXXXX.log) --- src/opnsense/scripts/systemhealth/queryLog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/opnsense/scripts/systemhealth/queryLog.py b/src/opnsense/scripts/systemhealth/queryLog.py index 715aba4a5..f77444935 100755 --- a/src/opnsense/scripts/systemhealth/queryLog.py +++ b/src/opnsense/scripts/systemhealth/queryLog.py @@ -68,6 +68,8 @@ if __name__ == '__main__': log_filenames.append(filename) # legacy log output is always stiched last log_filenames.append("%s.log" % log_basename) + if inputargs.module != 'core': + log_filenames.append("/var/log/%s_%s.log" % (inputargs.module, os.path.basename(inputargs.filename))) limit = int(inputargs.limit) if inputargs.limit.isdigit() else 0 offset = int(inputargs.offset) if inputargs.offset.isdigit() else 0