Skip to content

Instantly share code, notes, and snippets.

@griggheo
Created August 3, 2015 22:31
Show Gist options
  • Save griggheo/eeb43c49040ff178f75d to your computer and use it in GitHub Desktop.
Save griggheo/eeb43c49040ff178f75d to your computer and use it in GitHub Desktop.
{
"network": {
"servers": [ "{{logstash_elasticsearch_host }}:{{ logstash_listen_port_tcp }}" ],
"ssl ca": "{{ logstash_forwarder_etc_dir }}/{{ ssl_cert }}", "timeout": 15
},
"files": [
{
"paths": [
"/var/log/syslog",
"/var/log/*.log"
],
"fields": { "type": "syslog" }
},
{
"paths": [
"/var/log/apache2/*.log"
],
"fields": { "type": "apache" }
},
{
"paths": [
"/var/log/nginx/*access.log"
],
"fields": { "type": "nginx-access" }
},
{
"paths": [
"/opt/app/logs/nginx*access.log"
],
"fields": { "type": "nginx-access" }
},
{
"paths": [
"/opt/boom/logs/app-core.log"
],
"fields": { "type": "app-core" }
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment