Skip to content

Instantly share code, notes, and snippets.

@ljay79
Last active June 14, 2017 11:15
Show Gist options
  • Save ljay79/b735b65fc3328aa2a10ce440b407507e to your computer and use it in GitHub Desktop.
Save ljay79/b735b65fc3328aa2a10ce440b407507e to your computer and use it in GitHub Desktop.
filebeat.yml config for apache log shipping to logz.io
############################# Filebeat #####################################
filebeat:
prospectors:
-
paths:
- /var/log/httpd/access_log
fields:
logzio_codec: plain
token: LOGZIO-TOKEN
fields_under_root: true
ignore_older: 3h
document_type: apache_access
-
paths:
- /var/log/httpd/error_log
fields:
logzio_codec: plain
token: LOGZIO-TOKEN
fields_under_root: true
ignore_older: 3h
document_type: apache_error
registry_file: /var/lib/filebeat/registry
############################# Output ##########################################
output:
logstash:
hosts: ["listener.logz.io:5015"]
ssl:
certificate_authorities: ['/etc/pki/tls/certs/COMODORSADomainValidationSecureServerCA.crt']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment