{"action":"created","issue":{"url":"https://api.github.com/repos/logstash-plugins/logstash-input-kinesis/issues/5","repository_url":"https://api.github.com/repos/logstash-plugins/logstash-input-kinesis","labels_url":"https://api.github.com/repos/logstash-plugins/logstash-input-kinesis/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-input-kinesis/issues/5/comments","events_url":"https://api.github.com/repos/logstash-plugins/logstash-input-kinesis/issues/5/events","html_url":"https://github.com/logstash-plugins/logstash-input-kinesis/issues/5","id":176919975,"number":5,"title":"kinesis_stream_name as token for config reference","user":{"login":"nickmaccarthy","id":1486274,"avatar_url":"https://avatars.githubusercontent.com/u/1486274?v=3","gravatar_id":"","url":"https://api.github.com/users/nickmaccarthy","html_url":"https://github.com/nickmaccarthy","followers_url":"https://api.github.com/users/nickmaccarthy/followers","following_url":"https://api.github.com/users/nickmaccarthy/following{/other_user}","gists_url":"https://api.github.com/users/nickmaccarthy/gists{/gist_id}","starred_url":"https://api.github.com/users/nickmaccarthy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickmaccarthy/subscriptions","organizations_url":"https://api.github.com/users/nickmaccarthy/orgs","repos_url":"https://api.github.com/users/nickmaccarthy/repos","events_url":"https://api.github.com/users/nickmaccarthy/events{/privacy}","received_events_url":"https://api.github.com/users/nickmaccarthy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/logstash-plugins/logstash-input-kinesis/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-14T14:18:57Z","updated_at":"2016-09-29T20:43:23Z","closed_at":null,"body":"Dont know if its possible or not, but it would be nice have the ``kinesis_stream_name`` as a token we can reference in the rest of the logstash config.  In my particular case, it would allow us to more easily specify which elasticsearch index this stream data should go to. \r\n\r\nFor example, assuming we are pulling from our stream name ``foobar`` we could add this in our logstash config to ensure it goes to the right index in elasticsearch:\r\n\r\n```\r\ninput {\r\n    kinesis {\r\n         kinesis_stream_name => \"foobar\"\r\n    }\r\n}\r\n\r\noutput {\r\n    if [kinesis_stream_name] == \"foobar\" {\r\n        elasticsearch {\r\n            hosts => ['esh.mycompany.com']\r\n            index => \"kinesis_foobar-%{+YYYY.MM.dd}\"\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nIn fact, it would be great if all of the input config options could be referenced."},"comment":{"url":"https://api.github.com/repos/logstash-plugins/logstash-input-kinesis/issues/comments/250585467","html_url":"https://github.com/logstash-plugins/logstash-input-kinesis/issues/5#issuecomment-250585467","issue_url":"https://api.github.com/repos/logstash-plugins/logstash-input-kinesis/issues/5","id":250585467,"user":{"login":"codekitchen","id":52172,"avatar_url":"https://avatars.githubusercontent.com/u/52172?v=3","gravatar_id":"","url":"https://api.github.com/users/codekitchen","html_url":"https://github.com/codekitchen","followers_url":"https://api.github.com/users/codekitchen/followers","following_url":"https://api.github.com/users/codekitchen/following{/other_user}","gists_url":"https://api.github.com/users/codekitchen/gists{/gist_id}","starred_url":"https://api.github.com/users/codekitchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codekitchen/subscriptions","organizations_url":"https://api.github.com/users/codekitchen/orgs","repos_url":"https://api.github.com/users/codekitchen/repos","events_url":"https://api.github.com/users/codekitchen/events{/privacy}","received_events_url":"https://api.github.com/users/codekitchen/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T20:43:23Z","updated_at":"2016-09-29T20:43:23Z","body":"@nickmaccarthy thinking about this some more, it seems like something that should probably be implemented in logstash itself, rather than in this plugin, so that all plugins get this enhancement. Would you mind moving this feature request over to https://github.com/elastic/logstash/issues ?"}}
{"actor":{"display_login":"codekitchen"}}