Last active
June 14, 2017 11:15
-
-
Save ljay79/b735b65fc3328aa2a10ce440b407507e to your computer and use it in GitHub Desktop.
filebeat.yml config for apache log shipping to logz.io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################# 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