Skip to content

Instantly share code, notes, and snippets.

@mmaloney
Created August 3, 2014 04:44
Show Gist options
  • Save mmaloney/1392be0332e3e8089adf to your computer and use it in GitHub Desktop.
Save mmaloney/1392be0332e3e8089adf to your computer and use it in GitHub Desktop.
logstash service template
{
"Command": "/opt/logstash/bin/logstash agent -f /etc/logstash/conf.d/",
"Endpoints": [
{
"Name": "http",
"Application": "http",
"PortNumber": 9200,
"Protocol": "tcp",
"Purpose": "import"
},
{ "Name": "syslogd",
"Application": "syslog",
"PortNumber": 5514,
"Protocol": "tcp",
"Purpose": "export",
"AddressConfig": {
"Port": 5514,
"Protocol": "tcp"
}
},
{
"Name": "transport",
"Application": "transport",
"PortNumber": 9300,
"Protocol": "tcp",
"Purpose": "import"
}
],
"ImageID": "qnib/elk:latest",
"Instances": {
"min": 1
},
"RAMCommitment": 536870912,
"Launch": "auto",
"ConfigFiles": {
"/etc/logstash/conf.d/syslog.conf": {
"Filename": "/etc/logstash/conf.d/syslog.conf",
"Owner": "",
"Permissions": ""}
},
"LogConfigs": [
{
"path": "/var/log/logstash/*",
"type": "logstash"
}],
"Name": "logstash",
"Services": [],
"Tags": [
"logstash"
],
"HealthChecks": {
"running": {
"Script": "echo $?",
"Interval": 20
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment