'hostname-path': '/etc/hostname',
'parsers': '',
'ignore-parsers': '',
- 'period': '1 minute'
+ 'period': '1 week',
+ 'datetime-format': "%%b %%d %%H:%%M:%%S",
+ 'journald': True
},
'html': {
'header': '/etc/logparse/header.html',
'httpd-error': '/var/log/apache2/error.log'
},
'cron': {
- 'period': ''
+ 'summary': False,
+ 'list-users': True,
+ 'period': '',
+ 'datetime-format': '',
+ 'truncate-commands': True,
+ 'users': '.*',
+ 'commands': '.*'
},
'mail': {
'to': '',
},
'httpd': {
'httpd-resolve-domains': '',
- 'period': ''
+ 'datetime-format': "%%d/%%b/%%Y:%%H:%%M:%%S %%z",
+ 'period': '',
+ 'clients': '.*',
+ 'files': '.*',
+ 'referrers': '.*',
+ 'access-format': "%%h %%l %%u %%t \"%%r\" %%>s %%O \"%%{Referer}i\" \"%%{User-Agent}i\""
},
'du': {
'paths': ['/', '/etc', '/home'],
'period': ''
},
'sudo': {
+ 'journald': '',
+ 'datetime-format': '',
'period': '',
'list-users': True,
'summary': True,
- 'truncate-commands': True
+ 'truncate-commands': True,
+ 'init-users': '.*',
+ 'superusers': '.*',
+ 'commands': '.*',
+ 'directories': '.*'
+
},
- 'systemctl': {
+ 'systemd': {
'period': '',
'show-all': True
}
prefs.read_dict(defaults)
try:
success = prefs.read(configpaths)
- logger.debug("Loaded {0} config file(s): {1}".format(str(len(success)), str(success)))
+ logger.debug("Loaded {0} config file(s): {1}".format(
+ str(len(success)), str(success)))
except Exception as e:
logger.warning("Error processing config: " + str(e))
return prefs