Adding site error logs to elastic stack

Hi,
New user here.
My installation is properly pulling error logs from: /var/log/nginx/error.log*

But how do I make it so it also pulls the individual error log data from the sites as in this pattern:
/var/log/nginx/*.error.log

Thanks

You can go into the modules.d/nginx.yml and set the paths

- module: nginx
  # Access logs
  access:
    enabled: true

    # Set custom paths for the log files. If left empty,
    # Filebeat will choose the paths depending on your OS.
    #var.paths:

  # Error logs
  error:
    enabled: true

    # Set custom paths for the log files. If left empty,
    # Filebeat will choose the paths depending on your OS.
    var.paths: ["/path/to/log/nginx/error.log*", "/var/log/nginx/*.error.log"]

Thank you. What's the full path? Sorry - the last time I used Elastic you had separate filebeat and metricbeat configs.

Sorry, I'm confused Are you using Elastic Agent? Or Filebeat

What version are you on of the stack?

If you are using elastic Agent it would look like this..

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.