Skip to content
Discussion options

You must be logged in to vote

Based on the details you shared, you’re trying to monitor .log files under /var/log/nginx/ using localfile monitoring, and you’ve tried different values under <log_format>.

The key point is: <log_format> must match the actual format of the log lines inside the file.

  • If the log lines are JSON - use json
  • If the log lines look like syslog-style text - use syslog
    You can refer to the Wazuh documentation for supported <log_format> values and examples.

First, check the log format inside the log file that you are trying to monitor and configure the <log_format> accordingly.
For example, if the log format inside all the log files in the /var/log/nginx/ directory is syslog, then your configurati…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bonyjohn05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants