{"action":"created","issue":{"url":"https://api.github.com/repos/cyli/logstash-output-slack/issues/5","labels_url":"https://api.github.com/repos/cyli/logstash-output-slack/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/cyli/logstash-output-slack/issues/5/comments","events_url":"https://api.github.com/repos/cyli/logstash-output-slack/issues/5/events","html_url":"https://github.com/cyli/logstash-output-slack/issues/5","id":103932524,"number":5,"title":"Variable expansion inside \"username\"","user":{"login":"corradio","id":1655848,"avatar_url":"https://avatars.githubusercontent.com/u/1655848?v=3","gravatar_id":"","url":"https://api.github.com/users/corradio","html_url":"https://github.com/corradio","followers_url":"https://api.github.com/users/corradio/followers","following_url":"https://api.github.com/users/corradio/following{/other_user}","gists_url":"https://api.github.com/users/corradio/gists{/gist_id}","starred_url":"https://api.github.com/users/corradio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corradio/subscriptions","organizations_url":"https://api.github.com/users/corradio/orgs","repos_url":"https://api.github.com/users/corradio/repos","events_url":"https://api.github.com/users/corradio/events{/privacy}","received_events_url":"https://api.github.com/users/corradio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-30T16:15:15Z","updated_at":"2015-09-06T19:51:05Z","closed_at":null,"body":"I have the following configuration:\r\n\r\n```\r\n                slack {\r\n                    url => \"https://hooks.slack.com/services/xxx\"\r\n                    username => \"%{appname}\"\r\n                    format => \"[%{appname}] %{message}\"\r\n                }\r\n```\r\n\r\nIt seems that variable expansion does not work for username (which keeps showing `%{appname}`, whereas it works for the message itself (which expands `%{appname}` into the value of the `appname` variable)."},"comment":{"url":"https://api.github.com/repos/cyli/logstash-output-slack/issues/comments/138119090","html_url":"https://github.com/cyli/logstash-output-slack/issues/5#issuecomment-138119090","issue_url":"https://api.github.com/repos/cyli/logstash-output-slack/issues/5","id":138119090,"user":{"login":"corradio","id":1655848,"avatar_url":"https://avatars.githubusercontent.com/u/1655848?v=3","gravatar_id":"","url":"https://api.github.com/users/corradio","html_url":"https://github.com/corradio","followers_url":"https://api.github.com/users/corradio/followers","following_url":"https://api.github.com/users/corradio/following{/other_user}","gists_url":"https://api.github.com/users/corradio/gists{/gist_id}","starred_url":"https://api.github.com/users/corradio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corradio/subscriptions","organizations_url":"https://api.github.com/users/corradio/orgs","repos_url":"https://api.github.com/users/corradio/repos","events_url":"https://api.github.com/users/corradio/events{/privacy}","received_events_url":"https://api.github.com/users/corradio/received_events","type":"User","site_admin":false},"created_at":"2015-09-06T19:51:05Z","updated_at":"2015-09-06T19:51:05Z","body":"Double checked and it looks good. Did not test it though!\n\n--\n\nOlivier Corradi\n\nolivier.corradi@snips.net\n\nSkype: oliviercorradi\n\nTwitter: @corradio\n\nLinkedIn: linkedin.com/in/oliviercorradi\n\nVSRE compliant - vsre.info\n\nOn 6 September 2015 at 07:53, Ying Li <notifications@github.com> wrote:\n\n> @corradio <https://github.com/corradio> Would you mind double-checking #6\n> <https://github.com/cyli/logstash-output-slack/pull/6>? If it looks good,\n> I'll merge. Thanks!\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/cyli/logstash-output-slack/issues/5#issuecomment-138043688>\n> .\n>\n"}}