Skip to content

Instantly share code, notes, and snippets.

@Piumal1999
Created September 16, 2021 19:43
Show Gist options
  • Select an option

  • Save Piumal1999/4eb8a6d5941ff2f746ea0e07157fb6cc to your computer and use it in GitHub Desktop.

Select an option

Save Piumal1999/4eb8a6d5941ff2f746ea0e07157fb6cc to your computer and use it in GitHub Desktop.
NginX web server: /etc/filebeat/modules.d/nginx.yml
# Module: nginx
# Docs: https://www.elastic.co/guide/en/beats/filebeat/7.x/filebeat-module-nginx.html
- 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:
# 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