{"action":"opened","issue":{"url":"https://api.github.com/repos/ReactiveMarkets/NLog.Targets.ElasticSearch/issues/20","repository_url":"https://api.github.com/repos/ReactiveMarkets/NLog.Targets.ElasticSearch","labels_url":"https://api.github.com/repos/ReactiveMarkets/NLog.Targets.ElasticSearch/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveMarkets/NLog.Targets.ElasticSearch/issues/20/comments","events_url":"https://api.github.com/repos/ReactiveMarkets/NLog.Targets.ElasticSearch/issues/20/events","html_url":"https://github.com/ReactiveMarkets/NLog.Targets.ElasticSearch/issues/20","id":154520336,"number":20,"title":"Enhancement: Make Uri a Layout parameter","user":{"login":"Matthew-Davey","id":2029369,"avatar_url":"https://avatars.githubusercontent.com/u/2029369?v=3","gravatar_id":"","url":"https://api.github.com/users/Matthew-Davey","html_url":"https://github.com/Matthew-Davey","followers_url":"https://api.github.com/users/Matthew-Davey/followers","following_url":"https://api.github.com/users/Matthew-Davey/following{/other_user}","gists_url":"https://api.github.com/users/Matthew-Davey/gists{/gist_id}","starred_url":"https://api.github.com/users/Matthew-Davey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Matthew-Davey/subscriptions","organizations_url":"https://api.github.com/users/Matthew-Davey/orgs","repos_url":"https://api.github.com/users/Matthew-Davey/repos","events_url":"https://api.github.com/users/Matthew-Davey/events{/privacy}","received_events_url":"https://api.github.com/users/Matthew-Davey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-12T16:02:47Z","updated_at":"2016-05-12T16:02:47Z","closed_at":null,"body":"It would be great if uri was a Layout parameter such as Index, DocumentType etc.\r\n\r\nThis would allow us to construct the connection string from environment variables eg.\r\n```\r\n<target type=ElasticSearch\" uri=\"http://${environment:variable=ES_HOST}:9200\" ... />\r\n```\r\nBonus points if we can set connectionStringName and still have this functionality :smile: "}}