Skip to content

Instantly share code, notes, and snippets.

@poolski
Created March 27, 2014 12:01
Show Gist options
  • Save poolski/9806049 to your computer and use it in GitHub Desktop.
Save poolski/9806049 to your computer and use it in GitHub Desktop.
Logstash-forwarder simple config
{
"network": {
"servers": [ "10.0.0.10:5043" ],
"ssl certificate": "/etc/logstashforwarder/ssl/logstashforwarder.crt",
"ssl ca": "/etc/logstashforwarder/ssl/ca.crt",
"ssl key": "/etc/logstashforwarder/ssl/logstashforwarder.key",
"timeout": 15
},
"files": [
{
"paths": [ "/var/log/messages", "/var/log/syslog" ],
"fields": { "type": "syslog" }
},
{
"paths": [ "/var/log/nginx/*.access", "/var/log/nginx/*.error" ],
"fields": { "type": "nginx" }
},
{
"paths": [ "/var/log/uwsgi/*.log" ],
"fields": { "type": "uwsgi" }
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment