mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
change log levels
This commit is contained in:
@@ -5,7 +5,7 @@ def status():
|
||||
|
||||
cmd = "runuser -l zeek -c '/opt/zeek/bin/zeekctl status'"
|
||||
retval = __salt__['docker.run']('so-zeek', cmd)
|
||||
logging.debug('zeekctl_module: zeekctl.status retval: %s' % retval)
|
||||
logging.info('zeekctl_module: zeekctl.status retval: %s' % retval)
|
||||
|
||||
return retval
|
||||
|
||||
@@ -15,11 +15,11 @@ def beacon(config):
|
||||
retval = []
|
||||
|
||||
is_enabled = __salt__['healthcheck.is_enabled']()
|
||||
logging.debug('zeek_beacon: healthcheck_is_enabled: %s' % is_enabled)
|
||||
logging.info('zeek_beacon: healthcheck_is_enabled: %s' % is_enabled)
|
||||
|
||||
if is_enabled:
|
||||
zeekstatus = status().lower().split(' ')
|
||||
logging.debug('zeek_beacon: zeekctl.status: %s' % str(zeekstatus))
|
||||
logging.info('zeek_beacon: zeekctl.status: %s' % str(zeekstatus))
|
||||
if 'stopped' in zeekstatus or 'crashed' in zeekstatus or 'error' in zeekstatus or 'error:' in zeekstatus:
|
||||
zeek_restart = True
|
||||
else:
|
||||
|
||||
@@ -142,7 +142,7 @@ def status(verbose=True):
|
||||
retval = __salt__['docker.run']('so-zeek', cmd)
|
||||
if not verbose:
|
||||
retval = __context__['retcode']
|
||||
logging.info('zeekctl_module: zeekctl.status_NOTVERBOSE retval: %s' % retval)
|
||||
logging.info('zeekctl_module: zeekctl.status retval: %s' % retval)
|
||||
return retval
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user