Skip to content

Instantly share code, notes, and snippets.

@bvader
Last active December 28, 2023 02:17
Show Gist options
  • Save bvader/421ed0e907897f0bb9a57afaec00b3dc to your computer and use it in GitHub Desktop.
Save bvader/421ed0e907897f0bb9a57afaec00b3dc to your computer and use it in GitHub Desktop.
# Module: nginx
# Docs: https://www.elastic.co/guide/en/beats/filebeat/main/filebeat-module-nginx.html
- module: nginx
# Access logs
access:
enabled: true
# Set the custom pipeline
input.pipeline: filebeat-8.11.3-nginx-access-pipeline-custom
# Set custom paths for the log files. If left empty,
# Filebeat will choose the paths depending on your OS.
var.paths: ["/Users/sbrown/workspace/sample-data/discuss/discuss-custom-nginx.log"]
# Error logs
error:
enabled: false
# Set custom paths for the log files. If left empty,
# Filebeat will choose the paths depending on your OS.
#var.paths:
# Ingress-nginx controller logs. This is disabled by default. It could be used in Kubernetes environments to parse ingress-nginx logs
ingress_controller:
enabled: false
# Set custom paths for the log files. If left empty,
# Filebeat will choose the paths depending on your OS.
#var.paths:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment