{"action":"created","comment":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/comments/42918778","id":42918778,"diff_hunk":"@@ -425,6 +414,18 @@ def generate_jks cert_path\n   def receive(event)\n     return unless output?(event)\n \n+    if @manage_template","path":"lib/logstash/outputs/elasticsearch.rb","position":50,"original_position":50,"commit_id":"e3d7f3027b1b21682e89f223bec2d203e6a4ba32","original_commit_id":"e3d7f3027b1b21682e89f223bec2d203e6a4ba32","user":{"login":"andrewvc","id":131427,"avatar_url":"https://avatars.githubusercontent.com/u/131427?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewvc","html_url":"https://github.com/andrewvc","followers_url":"https://api.github.com/users/andrewvc/followers","following_url":"https://api.github.com/users/andrewvc/following{/other_user}","gists_url":"https://api.github.com/users/andrewvc/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewvc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewvc/subscriptions","organizations_url":"https://api.github.com/users/andrewvc/orgs","repos_url":"https://api.github.com/users/andrewvc/repos","events_url":"https://api.github.com/users/andrewvc/events{/privacy}","received_events_url":"https://api.github.com/users/andrewvc/received_events","type":"User","site_admin":false},"body":"Since there's been no activity here I'm going to close this issue. Thanks for he patch @Bradox , if you'd like to try to revive this idea I'd recommend opening an issue as a design discussion to suss out the pitfalls here!","created_at":"2015-10-23T21:56:17Z","updated_at":"2015-10-23T21:56:17Z","html_url":"https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/25#discussion_r42918778","pull_request_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/comments/42918778"},"html":{"href":"https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/25#discussion_r42918778"},"pull_request":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/25","id":25176161,"html_url":"https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/25","diff_url":"https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/25.diff","patch_url":"https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/25.patch","issue_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues/25","number":25,"state":"open","locked":false,"title":"dynamic templates","user":{"login":"Bradox","id":475535,"avatar_url":"https://avatars.githubusercontent.com/u/475535?v=3","gravatar_id":"","url":"https://api.github.com/users/Bradox","html_url":"https://github.com/Bradox","followers_url":"https://api.github.com/users/Bradox/followers","following_url":"https://api.github.com/users/Bradox/following{/other_user}","gists_url":"https://api.github.com/users/Bradox/gists{/gist_id}","starred_url":"https://api.github.com/users/Bradox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bradox/subscriptions","organizations_url":"https://api.github.com/users/Bradox/orgs","repos_url":"https://api.github.com/users/Bradox/repos","events_url":"https://api.github.com/users/Bradox/events{/privacy}","received_events_url":"https://api.github.com/users/Bradox/received_events","type":"User","site_admin":false},"body":"Added the possiblity to use dinamyc templates. For example:\r\n    \r\n        elasticsearch {\r\n                            cluster => \"logstash\"\r\n                            index => \"%{type}-logstash-%{+YYYY.MM.dd}\"\r\n                            template => \"/etc/logstash/conf.d/%{type}-template.json\"\r\n                            template_name => \"%{type}\"\r\n            }\r\n    \r\nIt will also allow to parametrize the template. For example:\r\n    \r\n    {\r\n        \"template\": \"%{type}-\",\r\n        \"settings\": {\r\n          \"number_of_shards\"            : 5,\r\n          \"index.cache.field.type\"      : \"soft\",\r\n          \"index.refresh_interval\"      : \"2s\",\r\n          \"index.store.compress.stored\" : true,\r\n          \"index.query.default_field\"   : \"@message\"\r\n        },\r\n        .......\r\n    }\r\n","created_at":"2014-11-28T03:32:59Z","updated_at":"2015-10-23T21:56:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1e445120b44afdb6d76760b484135d779d7c4a24","assignee":{"login":"talevy","id":388837,"avatar_url":"https://avatars.githubusercontent.com/u/388837?v=3","gravatar_id":"","url":"https://api.github.com/users/talevy","html_url":"https://github.com/talevy","followers_url":"https://api.github.com/users/talevy/followers","following_url":"https://api.github.com/users/talevy/following{/other_user}","gists_url":"https://api.github.com/users/talevy/gists{/gist_id}","starred_url":"https://api.github.com/users/talevy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talevy/subscriptions","organizations_url":"https://api.github.com/users/talevy/orgs","repos_url":"https://api.github.com/users/talevy/repos","events_url":"https://api.github.com/users/talevy/events{/privacy}","received_events_url":"https://api.github.com/users/talevy/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/milestones/1","html_url":"https://github.com/logstash-plugins/logstash-output-elasticsearch/milestones/triage","labels_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/milestones/1/labels","id":896553,"number":1,"title":"triage","description":null,"creator":{"login":"jordansissel","id":131818,"avatar_url":"https://avatars.githubusercontent.com/u/131818?v=3","gravatar_id":"","url":"https://api.github.com/users/jordansissel","html_url":"https://github.com/jordansissel","followers_url":"https://api.github.com/users/jordansissel/followers","following_url":"https://api.github.com/users/jordansissel/following{/other_user}","gists_url":"https://api.github.com/users/jordansissel/gists{/gist_id}","starred_url":"https://api.github.com/users/jordansissel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordansissel/subscriptions","organizations_url":"https://api.github.com/users/jordansissel/orgs","repos_url":"https://api.github.com/users/jordansissel/repos","events_url":"https://api.github.com/users/jordansissel/events{/privacy}","received_events_url":"https://api.github.com/users/jordansissel/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2014-12-08T23:25:30Z","updated_at":"2014-12-08T23:25:30Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/25/commits","review_comments_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/25/comments","review_comment_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues/25/comments","statuses_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/statuses/e3d7f3027b1b21682e89f223bec2d203e6a4ba32","head":{"label":"Bradox:master","ref":"master","sha":"e3d7f3027b1b21682e89f223bec2d203e6a4ba32","user":{"login":"Bradox","id":475535,"avatar_url":"https://avatars.githubusercontent.com/u/475535?v=3","gravatar_id":"","url":"https://api.github.com/users/Bradox","html_url":"https://github.com/Bradox","followers_url":"https://api.github.com/users/Bradox/followers","following_url":"https://api.github.com/users/Bradox/following{/other_user}","gists_url":"https://api.github.com/users/Bradox/gists{/gist_id}","starred_url":"https://api.github.com/users/Bradox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bradox/subscriptions","organizations_url":"https://api.github.com/users/Bradox/orgs","repos_url":"https://api.github.com/users/Bradox/repos","events_url":"https://api.github.com/users/Bradox/events{/privacy}","received_events_url":"https://api.github.com/users/Bradox/received_events","type":"User","site_admin":false},"repo":{"id":27243026,"name":"logstash-output-elasticsearch","full_name":"Bradox/logstash-output-elasticsearch","owner":{"login":"Bradox","id":475535,"avatar_url":"https://avatars.githubusercontent.com/u/475535?v=3","gravatar_id":"","url":"https://api.github.com/users/Bradox","html_url":"https://github.com/Bradox","followers_url":"https://api.github.com/users/Bradox/followers","following_url":"https://api.github.com/users/Bradox/following{/other_user}","gists_url":"https://api.github.com/users/Bradox/gists{/gist_id}","starred_url":"https://api.github.com/users/Bradox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bradox/subscriptions","organizations_url":"https://api.github.com/users/Bradox/orgs","repos_url":"https://api.github.com/users/Bradox/repos","events_url":"https://api.github.com/users/Bradox/events{/privacy}","received_events_url":"https://api.github.com/users/Bradox/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Bradox/logstash-output-elasticsearch","description":null,"fork":true,"url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch","forks_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/forks","keys_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/teams","hooks_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/events","assignees_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/tags","blobs_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/languages","stargazers_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/subscription","commits_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/merges","archive_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/downloads","issues_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/Bradox/logstash-output-elasticsearch/releases{/id}","created_at":"2014-11-27T22:12:10Z","updated_at":"2014-11-28T03:25:58Z","pushed_at":"2014-12-21T23:48:08Z","git_url":"git://github.com/Bradox/logstash-output-elasticsearch.git","ssh_url":"git@github.com:Bradox/logstash-output-elasticsearch.git","clone_url":"https://github.com/Bradox/logstash-output-elasticsearch.git","svn_url":"https://github.com/Bradox/logstash-output-elasticsearch","homepage":null,"size":193,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"logstash-plugins:master","ref":"master","sha":"05a873a6866235c4b4a20c01dee1db956e07f5a5","user":{"login":"logstash-plugins","id":8961934,"avatar_url":"https://avatars.githubusercontent.com/u/8961934?v=3","gravatar_id":"","url":"https://api.github.com/users/logstash-plugins","html_url":"https://github.com/logstash-plugins","followers_url":"https://api.github.com/users/logstash-plugins/followers","following_url":"https://api.github.com/users/logstash-plugins/following{/other_user}","gists_url":"https://api.github.com/users/logstash-plugins/gists{/gist_id}","starred_url":"https://api.github.com/users/logstash-plugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logstash-plugins/subscriptions","organizations_url":"https://api.github.com/users/logstash-plugins/orgs","repos_url":"https://api.github.com/users/logstash-plugins/repos","events_url":"https://api.github.com/users/logstash-plugins/events{/privacy}","received_events_url":"https://api.github.com/users/logstash-plugins/received_events","type":"Organization","site_admin":false},"repo":{"id":25476601,"name":"logstash-output-elasticsearch","full_name":"logstash-plugins/logstash-output-elasticsearch","owner":{"login":"logstash-plugins","id":8961934,"avatar_url":"https://avatars.githubusercontent.com/u/8961934?v=3","gravatar_id":"","url":"https://api.github.com/users/logstash-plugins","html_url":"https://github.com/logstash-plugins","followers_url":"https://api.github.com/users/logstash-plugins/followers","following_url":"https://api.github.com/users/logstash-plugins/following{/other_user}","gists_url":"https://api.github.com/users/logstash-plugins/gists{/gist_id}","starred_url":"https://api.github.com/users/logstash-plugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logstash-plugins/subscriptions","organizations_url":"https://api.github.com/users/logstash-plugins/orgs","repos_url":"https://api.github.com/users/logstash-plugins/repos","events_url":"https://api.github.com/users/logstash-plugins/events{/privacy}","received_events_url":"https://api.github.com/users/logstash-plugins/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/logstash-plugins/logstash-output-elasticsearch","description":"","fork":false,"url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch","forks_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/forks","keys_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/teams","hooks_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/events","assignees_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/tags","blobs_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/languages","stargazers_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/subscription","commits_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/merges","archive_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/downloads","issues_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/releases{/id}","created_at":"2014-10-20T16:56:37Z","updated_at":"2015-10-21T17:43:15Z","pushed_at":"2015-10-23T21:08:24Z","git_url":"git://github.com/logstash-plugins/logstash-output-elasticsearch.git","ssh_url":"git@github.com:logstash-plugins/logstash-output-elasticsearch.git","clone_url":"https://github.com/logstash-plugins/logstash-output-elasticsearch.git","svn_url":"https://github.com/logstash-plugins/logstash-output-elasticsearch","homepage":"https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html","size":61413,"stargazers_count":29,"watchers_count":29,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":56,"mirror_url":null,"open_issues_count":94,"forks":56,"open_issues":94,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/25"},"html":{"href":"https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/25"},"issue":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues/25"},"comments":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/statuses/e3d7f3027b1b21682e89f223bec2d203e6a4ba32"}}}}