Skip to content

Instantly share code, notes, and snippets.

@karthiks
Created July 21, 2021 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karthiks/e4d98c872a8e67fc0b26d03ff3839649 to your computer and use it in GitHub Desktop.
Save karthiks/e4d98c872a8e67fc0b26d03ff3839649 to your computer and use it in GitHub Desktop.
Ops Agent configuration to send the Apache2 webserver logs as well apart from the syslogs to Google Cloud Monitoring
logging:
receivers:
mywebserver:
type: files
include_paths:
- /var/log/apache*/access.log
- /var/log/apache*/error.log
- /var/www/logs/any-other-custom-logs-of-your-app-*.log
service:
pipelines:
default_pipeline:
receivers:
- mywebserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment