{"action":"created","comment":{"url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/pulls/comments/44085480","id":44085480,"diff_hunk":"@@ -0,0 +1,58 @@\n+# encoding: utf-8\n+require \"logstash/filters/base\"\n+require \"logstash/namespace\"\n+\n+# This filter _appears_ to rename fields by replacing `.` characters with a different\n+# separator.  In reality, it's a somewhat expensive filter that has to copy the\n+# source field contents to a new destination field (whose name no longer contains\n+# dots), and then remove the corresponding source field.\n+#\n+# It should only be used if no other options are available.\n+class LogStash::Filters::De_dot < LogStash::Filters::Base\n+\n+  config_name \"de_dot\"\n+\n+  # Replace dots with this value.\n+  config :separator, :validate => :string, :default => \"_\"\n+\n+  # If `nested` is _true_, then create sub-fields instead of replacing dots with\n+  # a different separator.\n+  config :nested, :validate => :boolean, :default => false\n+\n+  # The `fields` array should contain a list of known fields to act on.\n+  # If undefined, all top-level fields will be checked.  Sub-fields must be\n+  # manually specified in the array.  For example: `[\"field.suffix\",\"[foo][bar.suffix]\"]`\n+  # will result in \"field_suffix\" and nested or sub field [\"foo\"][\"bar_suffix\"]\n+  #\n+  # WARNING: This is an expensive operation.\n+  #\n+  config :fields, :validate => :array\n+\n+\n+  public\n+  def register\n+    # Add instance variables, if any\n+  end # def register\n+\n+  private\n+  def rename_field(event, fieldref)\n+    @logger.debug? and @logger.debug(\"preprocess\", :event => event.to_hash.to_s)\n+    @logger.debug? and @logger.debug(\"source field reference\", :fieldref => fieldref)\n+    newref = fieldref.gsub('.', @separator)\n+    @logger.debug? and @logger.debug(\"replacement field reference\", :newref => newref)","path":"lib/logstash/filters/de_dot.rb","position":42,"original_position":42,"commit_id":"4da9d4b53082248f464ed04ea79dceafc0794d4e","original_commit_id":"4da9d4b53082248f464ed04ea79dceafc0794d4e","user":{"login":"suyograo","id":1595958,"avatar_url":"https://avatars.githubusercontent.com/u/1595958?v=3","gravatar_id":"","url":"https://api.github.com/users/suyograo","html_url":"https://github.com/suyograo","followers_url":"https://api.github.com/users/suyograo/followers","following_url":"https://api.github.com/users/suyograo/following{/other_user}","gists_url":"https://api.github.com/users/suyograo/gists{/gist_id}","starred_url":"https://api.github.com/users/suyograo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suyograo/subscriptions","organizations_url":"https://api.github.com/users/suyograo/orgs","repos_url":"https://api.github.com/users/suyograo/repos","events_url":"https://api.github.com/users/suyograo/events{/privacy}","received_events_url":"https://api.github.com/users/suyograo/received_events","type":"User","site_admin":false},"body":"same as above","created_at":"2015-11-05T23:30:12Z","updated_at":"2015-11-05T23:30:12Z","html_url":"https://github.com/logstash-plugins/logstash-filter-de_dot/pull/1#discussion_r44085480","pull_request_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/pulls/comments/44085480"},"html":{"href":"https://github.com/logstash-plugins/logstash-filter-de_dot/pull/1#discussion_r44085480"},"pull_request":{"href":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/pulls/1","id":49896080,"html_url":"https://github.com/logstash-plugins/logstash-filter-de_dot/pull/1","diff_url":"https://github.com/logstash-plugins/logstash-filter-de_dot/pull/1.diff","patch_url":"https://github.com/logstash-plugins/logstash-filter-de_dot/pull/1.patch","issue_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/issues/1","number":1,"state":"open","locked":false,"title":"Initial commit","user":{"login":"untergeek","id":1020383,"avatar_url":"https://avatars.githubusercontent.com/u/1020383?v=3","gravatar_id":"","url":"https://api.github.com/users/untergeek","html_url":"https://github.com/untergeek","followers_url":"https://api.github.com/users/untergeek/followers","following_url":"https://api.github.com/users/untergeek/following{/other_user}","gists_url":"https://api.github.com/users/untergeek/gists{/gist_id}","starred_url":"https://api.github.com/users/untergeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/untergeek/subscriptions","organizations_url":"https://api.github.com/users/untergeek/orgs","repos_url":"https://api.github.com/users/untergeek/repos","events_url":"https://api.github.com/users/untergeek/events{/privacy}","received_events_url":"https://api.github.com/users/untergeek/received_events","type":"User","site_admin":false},"body":"This is the first commit, for review.","created_at":"2015-11-05T23:25:14Z","updated_at":"2015-11-05T23:30:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20c103d89f0906f5c88e56ae047c8404f791685e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/pulls/1/commits","review_comments_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/pulls/1/comments","review_comment_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/issues/1/comments","statuses_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/statuses/4da9d4b53082248f464ed04ea79dceafc0794d4e","head":{"label":"untergeek:master","ref":"master","sha":"4da9d4b53082248f464ed04ea79dceafc0794d4e","user":{"login":"untergeek","id":1020383,"avatar_url":"https://avatars.githubusercontent.com/u/1020383?v=3","gravatar_id":"","url":"https://api.github.com/users/untergeek","html_url":"https://github.com/untergeek","followers_url":"https://api.github.com/users/untergeek/followers","following_url":"https://api.github.com/users/untergeek/following{/other_user}","gists_url":"https://api.github.com/users/untergeek/gists{/gist_id}","starred_url":"https://api.github.com/users/untergeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/untergeek/subscriptions","organizations_url":"https://api.github.com/users/untergeek/orgs","repos_url":"https://api.github.com/users/untergeek/repos","events_url":"https://api.github.com/users/untergeek/events{/privacy}","received_events_url":"https://api.github.com/users/untergeek/received_events","type":"User","site_admin":false},"repo":{"id":45645665,"name":"logstash-filter-de_dot","full_name":"untergeek/logstash-filter-de_dot","owner":{"login":"untergeek","id":1020383,"avatar_url":"https://avatars.githubusercontent.com/u/1020383?v=3","gravatar_id":"","url":"https://api.github.com/users/untergeek","html_url":"https://github.com/untergeek","followers_url":"https://api.github.com/users/untergeek/followers","following_url":"https://api.github.com/users/untergeek/following{/other_user}","gists_url":"https://api.github.com/users/untergeek/gists{/gist_id}","starred_url":"https://api.github.com/users/untergeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/untergeek/subscriptions","organizations_url":"https://api.github.com/users/untergeek/orgs","repos_url":"https://api.github.com/users/untergeek/repos","events_url":"https://api.github.com/users/untergeek/events{/privacy}","received_events_url":"https://api.github.com/users/untergeek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/untergeek/logstash-filter-de_dot","description":"Rename fields with dots in the field name for Elasticsearch 2.0 compatibility","fork":true,"url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot","forks_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/forks","keys_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/teams","hooks_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/hooks","issue_events_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/issues/events{/number}","events_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/events","assignees_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/assignees{/user}","branches_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/branches{/branch}","tags_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/tags","blobs_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/git/refs{/sha}","trees_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/statuses/{sha}","languages_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/languages","stargazers_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/stargazers","contributors_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/contributors","subscribers_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/subscribers","subscription_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/subscription","commits_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/commits{/sha}","git_commits_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/git/commits{/sha}","comments_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/comments{/number}","issue_comment_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/issues/comments{/number}","contents_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/contents/{+path}","compare_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/merges","archive_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/downloads","issues_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/issues{/number}","pulls_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/pulls{/number}","milestones_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/milestones{/number}","notifications_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/labels{/name}","releases_url":"https://api.github.com/repos/untergeek/logstash-filter-de_dot/releases{/id}","created_at":"2015-11-05T23:19:48Z","updated_at":"2015-11-05T23:23:02Z","pushed_at":"2015-11-05T23:24:17Z","git_url":"git://github.com/untergeek/logstash-filter-de_dot.git","ssh_url":"git@github.com:untergeek/logstash-filter-de_dot.git","clone_url":"https://github.com/untergeek/logstash-filter-de_dot.git","svn_url":"https://github.com/untergeek/logstash-filter-de_dot","homepage":null,"size":0,"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":"a690a3b732a188a6de13e4823d8203562494152e","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":45645614,"name":"logstash-filter-de_dot","full_name":"logstash-plugins/logstash-filter-de_dot","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-filter-de_dot","description":"Rename fields with dots in the field name for Elasticsearch 2.0 compatibility","fork":false,"url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot","forks_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/forks","keys_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/teams","hooks_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/hooks","issue_events_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/issues/events{/number}","events_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/events","assignees_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/assignees{/user}","branches_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/branches{/branch}","tags_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/tags","blobs_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/git/refs{/sha}","trees_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/statuses/{sha}","languages_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/languages","stargazers_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/stargazers","contributors_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/contributors","subscribers_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/subscribers","subscription_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/subscription","commits_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/commits{/sha}","git_commits_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/git/commits{/sha}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/comments{/number}","issue_comment_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/issues/comments{/number}","contents_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/contents/{+path}","compare_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/merges","archive_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/downloads","issues_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/issues{/number}","pulls_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/pulls{/number}","milestones_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/milestones{/number}","notifications_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/labels{/name}","releases_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/releases{/id}","created_at":"2015-11-05T23:18:30Z","updated_at":"2015-11-05T23:18:30Z","pushed_at":"2015-11-05T23:25:15Z","git_url":"git://github.com/logstash-plugins/logstash-filter-de_dot.git","ssh_url":"git@github.com:logstash-plugins/logstash-filter-de_dot.git","clone_url":"https://github.com/logstash-plugins/logstash-filter-de_dot.git","svn_url":"https://github.com/logstash-plugins/logstash-filter-de_dot","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/pulls/1"},"html":{"href":"https://github.com/logstash-plugins/logstash-filter-de_dot/pull/1"},"issue":{"href":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/issues/1"},"comments":{"href":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/logstash-plugins/logstash-filter-de_dot/statuses/4da9d4b53082248f464ed04ea79dceafc0794d4e"}}}}