{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/logstash/issues/4376","labels_url":"https://api.github.com/repos/elastic/logstash/issues/4376/labels{/name}","comments_url":"https://api.github.com/repos/elastic/logstash/issues/4376/comments","events_url":"https://api.github.com/repos/elastic/logstash/issues/4376/events","html_url":"https://github.com/elastic/logstash/issues/4376","id":123175993,"number":4376,"title":"Pass in configuration using environment variable","user":{"login":"xaka","id":504813,"avatar_url":"https://avatars.githubusercontent.com/u/504813?v=3","gravatar_id":"","url":"https://api.github.com/users/xaka","html_url":"https://github.com/xaka","followers_url":"https://api.github.com/users/xaka/followers","following_url":"https://api.github.com/users/xaka/following{/other_user}","gists_url":"https://api.github.com/users/xaka/gists{/gist_id}","starred_url":"https://api.github.com/users/xaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xaka/subscriptions","organizations_url":"https://api.github.com/users/xaka/orgs","repos_url":"https://api.github.com/users/xaka/repos","events_url":"https://api.github.com/users/xaka/events{/privacy}","received_events_url":"https://api.github.com/users/xaka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-20T18:25:41Z","updated_at":"2015-12-20T18:25:41Z","closed_at":null,"body":"As we live in era where containers taking over place, it would be nice to assign configuration to environment variable, may be `$LOGSTASH`, and make sure logstash consumes it when no configuration file (`-f`) or configuration string (`-e`) is provided. The reason is pretty simple - I don't want to build my own image from base one just to inject some file nor I want to mess around with volumes nor I'm happy with `-e` because you end up with a long unreadable line and at the same, when you use docker compose for instance, you can come up with (take a look at magical pipe `|` supported by YAML):\r\n\r\n```\r\nimage: logstash\r\nenvironment:\r\n  LOGSTASH: |\r\n    input {\r\n      ...\r\n    }\r\n```\r\n\r\nWhich is pretty readable and allows one to use existing official image."}}