{"action":"closed","issue":{"url":"https://api.github.com/repos/sematext/sematext-agent-docker/issues/20","repository_url":"https://api.github.com/repos/sematext/sematext-agent-docker","labels_url":"https://api.github.com/repos/sematext/sematext-agent-docker/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/sematext/sematext-agent-docker/issues/20/comments","events_url":"https://api.github.com/repos/sematext/sematext-agent-docker/issues/20/events","html_url":"https://github.com/sematext/sematext-agent-docker/issues/20","id":189837600,"number":20,"title":"Allow passing in event field name=value pairs via --env","user":{"login":"otisg","id":332580,"avatar_url":"https://avatars.githubusercontent.com/u/332580?v=3","gravatar_id":"","url":"https://api.github.com/users/otisg","html_url":"https://github.com/otisg","followers_url":"https://api.github.com/users/otisg/followers","following_url":"https://api.github.com/users/otisg/following{/other_user}","gists_url":"https://api.github.com/users/otisg/gists{/gist_id}","starred_url":"https://api.github.com/users/otisg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otisg/subscriptions","organizations_url":"https://api.github.com/users/otisg/orgs","repos_url":"https://api.github.com/users/otisg/repos","events_url":"https://api.github.com/users/otisg/events{/privacy}","received_events_url":"https://api.github.com/users/otisg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-11-16T20:41:02Z","updated_at":"2016-11-29T19:56:43Z","closed_at":"2016-11-29T19:56:43Z","body":"I'd like to run Sematext Docker Agent so that it always includes certain tags as fields in all logs it collects.  I'd like to be able to do something like this:\r\n\r\nDocker Daemon settings:\r\n```dockerd --label environment=PROD --log-driver=json-file --log-opt env=com.example.service,com.example.environment```\r\n\r\nExample service create:\r\n```docker service create --constraint engine.labels.environment==PROD --replicas 2 --name hw --env \"com.example.service=FOO\" --env \"com.example.environment=PROD\" alpine ping docker.com```\r\n\r\nThis would then create log entries with field com.example.service with a value of FOO and com.example.environment with a value of PROD."}}
{"actor":{"display_login":"megastef"}}