This repository contains a boilerplate for deploying logstash on Scalingo.
You have three different configuration available:
logstash.conf: this configuration will listen for http request authenticated by the authentication information passed in theUSERandPASSWORDenvironment variables and send it to and elasticsearch database. This will also parse url defined variables.logstash-json.confthis configuration is based on the previous one but if the content is a valid json it will parse itlogstash-kv.confthis configuration is based onlogstash.confbut it will also parse the content to search and parse patterns likekey=value
By default we are using the logstash.conf configuration, but you can use
another one by changing the web process of the Procfile from: web: bin/logstash -f logstash.conf
To:
web: bin/logstash -f logstash-json.conf
To:
web: bin/logstash -f logstash-kv.conf
You will need to configure the following environment variables:
USERthe username that you will use to authenticate against your logstash instancePASSWORDthe password that you will use to authenticate against your logstash instanceELASTICSEARCH_URLthe URL of your elasticsearch instance. (If you use our Elasticsearch addon, this will be automatically added)
You will also change the change-me index name in the output section of your
logstash configuration.
To update your application with a more recent version of version of Logstash,
the most straightforward method is to deploy your application. The
used buildpack is defining the
used version,
which can be overrided with the environment variable LOGSTASH_VERSION.
To trigger the new deployment, either use:
- The Manual Deployment feature of our GitHub or Gitlab
git pushdeployment after adding an empty commit to your projectgit commit --allow-empty -m "New deployment to update logstash"