Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging and Log File #3102

Open
cohere-soc opened this issue Jan 19, 2021 · 0 comments
Open

Logging and Log File #3102

cohere-soc opened this issue Jan 19, 2021 · 0 comments

Comments

@cohere-soc
Copy link

cohere-soc commented Jan 19, 2021

Hi Experts,

I enabled the default logging within config.yaml, but I'm unable to find the output log file. Are there only specific rules or alerts that trigger logging?

Additionally, I'm looking to integrate the hive and Elastalert. My main reason is to get the hive alert logs in a log file. What is the best way to configure config.yaml to map to hive alerts logs? Looking to integrate something similar to /var/log/elastalert/Hive-Alerts.log as seen in https://securitynotsupported.com/wazuh-alerts-using-elastalert/.

Config File:
logging:
version: 1
incremental: false
disable_existing_loggers: false
formatters:
logline:
format: '%(asctime)s %(levelname)+8s %(name)+20s %(message)s'

handlers:
  console:
    class: logging.StreamHandler
    formatter: logline
    level: DEBUG
    stream: ext://sys.stderr

  file:
    class : logging.FileHandler
    formatter: logline
    level: DEBUG
    filename: elastalert.log

loggers:
  elastalert:
    level: DEBUG
    handlers: []
    propagate: true

  elasticsearch:
    level: WARN
    handlers: []
    propagate: true

  elasticsearch.trace:
    level: WARN
    handlers: []
    propagate: true

  '':  # root logger
    level: WARN
    handlers:
      - console
      - file
    propagate: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant