{"action":"created","comment":{"url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/pulls/comments/61535861","id":61535861,"diff_hunk":"@@ -1,73 +1,27 @@\n-{%- set filebeat = salt['pillar.get']('filebeat', {}) %}\n+# Example configuration file\n filebeat:\n+  # List of prospectors to fetch data.\n   prospectors:\n-{%- set log_paths = filebeat.get('log_paths', ['/var/log/auth.log', '/var/log/syslog']) %}\n-{%- for log_path in log_paths %}\n+    # Each - is a prospector. Below are the prospector specific configurations\n     -\n+      # Paths that should be crawled and fetched. Glob based paths.\n+      # For each file found under this path, a harvester is started.\n       paths:\n-{%- for path in log_path.paths %}\n-        - {{ path }}\n-{%- endfor %}\n-      input_type: {{ log_path.get('input_type', 'log') }}\n-      document_type: {{ log_path.get('document_type', 'syslog') }}\n-      ignore_older: {{ log_path.get('ignore_older', '24h') }}\n-      scan_frequency: {{ log_path.get('scan_frequency', '10s') }}\n-      backoff: {{ log_path.get('backoff', '1s') }}\n-      max_backoff: {{ log_path.get('max_backoff', '10s') }}\n-      backoff_factor: {{ log_path.get('backoff_factor', '2') }}\n-      force_close_files: {{ log_path.get('force_close_files', 'false') }}\n-      fields_under_root: {{ log_path.get('fields_under_root', 'false') }}\n-      close_older: {{ log_path.get('close_older', '1h') }}\n-{%- if 'multiline' in log_path %}\n-      multiline:\n-        pattern: \"{{ log_path.multiline.get('pattern', '') }}\"\n-        negate: {{ log_path.multiline.get('negate', 'false') }}\n-        match: {{ log_path.multiline.get('match', 'after') }}\n-{%- if 'include_lines' in log_path %}\n-      include_lines: [\"{{ log_path.include_lines|join('\", \"') }}\"]\n-{%- endif %}\n-{%- if 'exclude_lines' in log_path %}\n-      exclude_lines: [\"{{ log_path.exclude_lines|join('\", \"') }}\"]\n-{%- endif %}\n-{%- endif %}\n-{%- if 'fields' in log_path %}\n-      fields:\n-{%- for field in log_path.fields %}\n-{%- for key, value in field.items() %}\n-        {{ key }}: {{ value }}\n-{%- endfor %}\n-{%- endfor %}\n-{%- endif %}\n-{%- endfor %}\n+        - \"/var/log/*.log\"","path":"filebeat/files/filebeat.jinja","position":47,"original_position":47,"commit_id":"76174d24cfe60312c8e0020dc5e78590da672780","original_commit_id":"76174d24cfe60312c8e0020dc5e78590da672780","user":{"login":"cybacolt","id":730769,"avatar_url":"https://avatars.githubusercontent.com/u/730769?v=3","gravatar_id":"","url":"https://api.github.com/users/cybacolt","html_url":"https://github.com/cybacolt","followers_url":"https://api.github.com/users/cybacolt/followers","following_url":"https://api.github.com/users/cybacolt/following{/other_user}","gists_url":"https://api.github.com/users/cybacolt/gists{/gist_id}","starred_url":"https://api.github.com/users/cybacolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cybacolt/subscriptions","organizations_url":"https://api.github.com/users/cybacolt/orgs","repos_url":"https://api.github.com/users/cybacolt/repos","events_url":"https://api.github.com/users/cybacolt/events{/privacy}","received_events_url":"https://api.github.com/users/cybacolt/received_events","type":"User","site_admin":false},"body":"this should not be default.","created_at":"2016-04-29T05:35:25Z","updated_at":"2016-04-29T05:35:25Z","html_url":"https://github.com/saltstack-formulas/filebeat-formula/pull/10#discussion_r61535861","pull_request_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/pulls/comments/61535861"},"html":{"href":"https://github.com/saltstack-formulas/filebeat-formula/pull/10#discussion_r61535861"},"pull_request":{"href":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/pulls/10","id":68313565,"html_url":"https://github.com/saltstack-formulas/filebeat-formula/pull/10","diff_url":"https://github.com/saltstack-formulas/filebeat-formula/pull/10.diff","patch_url":"https://github.com/saltstack-formulas/filebeat-formula/pull/10.patch","issue_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/issues/10","number":10,"state":"open","locked":false,"title":"Update to new style (saltstack-template based) formula","user":{"login":"johnkeates","id":5306980,"avatar_url":"https://avatars.githubusercontent.com/u/5306980?v=3","gravatar_id":"","url":"https://api.github.com/users/johnkeates","html_url":"https://github.com/johnkeates","followers_url":"https://api.github.com/users/johnkeates/followers","following_url":"https://api.github.com/users/johnkeates/following{/other_user}","gists_url":"https://api.github.com/users/johnkeates/gists{/gist_id}","starred_url":"https://api.github.com/users/johnkeates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnkeates/subscriptions","organizations_url":"https://api.github.com/users/johnkeates/orgs","repos_url":"https://api.github.com/users/johnkeates/repos","events_url":"https://api.github.com/users/johnkeates/events{/privacy}","received_events_url":"https://api.github.com/users/johnkeates/received_events","type":"User","site_admin":false},"body":"Here is the diff","created_at":"2016-04-29T01:05:05Z","updated_at":"2016-04-29T05:35:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3f29d6ead6443c4afed421de65d04b4be3b99096","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/pulls/10/commits","review_comments_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/pulls/10/comments","review_comment_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/pulls/comments{/number}","comments_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/issues/10/comments","statuses_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/statuses/76174d24cfe60312c8e0020dc5e78590da672780","head":{"label":"johnkeates:master","ref":"master","sha":"76174d24cfe60312c8e0020dc5e78590da672780","user":{"login":"johnkeates","id":5306980,"avatar_url":"https://avatars.githubusercontent.com/u/5306980?v=3","gravatar_id":"","url":"https://api.github.com/users/johnkeates","html_url":"https://github.com/johnkeates","followers_url":"https://api.github.com/users/johnkeates/followers","following_url":"https://api.github.com/users/johnkeates/following{/other_user}","gists_url":"https://api.github.com/users/johnkeates/gists{/gist_id}","starred_url":"https://api.github.com/users/johnkeates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnkeates/subscriptions","organizations_url":"https://api.github.com/users/johnkeates/orgs","repos_url":"https://api.github.com/users/johnkeates/repos","events_url":"https://api.github.com/users/johnkeates/events{/privacy}","received_events_url":"https://api.github.com/users/johnkeates/received_events","type":"User","site_admin":false},"repo":{"id":57344135,"name":"filebeat-formula-1","full_name":"johnkeates/filebeat-formula-1","owner":{"login":"johnkeates","id":5306980,"avatar_url":"https://avatars.githubusercontent.com/u/5306980?v=3","gravatar_id":"","url":"https://api.github.com/users/johnkeates","html_url":"https://github.com/johnkeates","followers_url":"https://api.github.com/users/johnkeates/followers","following_url":"https://api.github.com/users/johnkeates/following{/other_user}","gists_url":"https://api.github.com/users/johnkeates/gists{/gist_id}","starred_url":"https://api.github.com/users/johnkeates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnkeates/subscriptions","organizations_url":"https://api.github.com/users/johnkeates/orgs","repos_url":"https://api.github.com/users/johnkeates/repos","events_url":"https://api.github.com/users/johnkeates/events{/privacy}","received_events_url":"https://api.github.com/users/johnkeates/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/johnkeates/filebeat-formula-1","description":"a formula to install and configure filebeat, a new alternative for logstash forwarder.","fork":true,"url":"https://api.github.com/repos/johnkeates/filebeat-formula-1","forks_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/forks","keys_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/teams","hooks_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/hooks","issue_events_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/issues/events{/number}","events_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/events","assignees_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/assignees{/user}","branches_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/branches{/branch}","tags_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/tags","blobs_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/statuses/{sha}","languages_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/languages","stargazers_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/stargazers","contributors_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/contributors","subscribers_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/subscribers","subscription_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/subscription","commits_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/contents/{+path}","compare_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/merges","archive_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/downloads","issues_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/issues{/number}","pulls_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/pulls{/number}","milestones_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/milestones{/number}","notifications_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/labels{/name}","releases_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/releases{/id}","deployments_url":"https://api.github.com/repos/johnkeates/filebeat-formula-1/deployments","created_at":"2016-04-29T01:02:33Z","updated_at":"2016-04-29T01:02:34Z","pushed_at":"2016-04-29T01:04:50Z","git_url":"git://github.com/johnkeates/filebeat-formula-1.git","ssh_url":"git@github.com:johnkeates/filebeat-formula-1.git","clone_url":"https://github.com/johnkeates/filebeat-formula-1.git","svn_url":"https://github.com/johnkeates/filebeat-formula-1","homepage":"http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html","size":21,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"saltstack-formulas:master","ref":"master","sha":"091a2f6069d7f2acf9bc0430fa5ff582fc1a3e62","user":{"login":"saltstack-formulas","id":4683350,"avatar_url":"https://avatars.githubusercontent.com/u/4683350?v=3","gravatar_id":"","url":"https://api.github.com/users/saltstack-formulas","html_url":"https://github.com/saltstack-formulas","followers_url":"https://api.github.com/users/saltstack-formulas/followers","following_url":"https://api.github.com/users/saltstack-formulas/following{/other_user}","gists_url":"https://api.github.com/users/saltstack-formulas/gists{/gist_id}","starred_url":"https://api.github.com/users/saltstack-formulas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saltstack-formulas/subscriptions","organizations_url":"https://api.github.com/users/saltstack-formulas/orgs","repos_url":"https://api.github.com/users/saltstack-formulas/repos","events_url":"https://api.github.com/users/saltstack-formulas/events{/privacy}","received_events_url":"https://api.github.com/users/saltstack-formulas/received_events","type":"Organization","site_admin":false},"repo":{"id":47837071,"name":"filebeat-formula","full_name":"saltstack-formulas/filebeat-formula","owner":{"login":"saltstack-formulas","id":4683350,"avatar_url":"https://avatars.githubusercontent.com/u/4683350?v=3","gravatar_id":"","url":"https://api.github.com/users/saltstack-formulas","html_url":"https://github.com/saltstack-formulas","followers_url":"https://api.github.com/users/saltstack-formulas/followers","following_url":"https://api.github.com/users/saltstack-formulas/following{/other_user}","gists_url":"https://api.github.com/users/saltstack-formulas/gists{/gist_id}","starred_url":"https://api.github.com/users/saltstack-formulas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saltstack-formulas/subscriptions","organizations_url":"https://api.github.com/users/saltstack-formulas/orgs","repos_url":"https://api.github.com/users/saltstack-formulas/repos","events_url":"https://api.github.com/users/saltstack-formulas/events{/privacy}","received_events_url":"https://api.github.com/users/saltstack-formulas/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/saltstack-formulas/filebeat-formula","description":"a formula to install and configure filebeat, a new alternative for logstash forwarder.","fork":true,"url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula","forks_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/forks","keys_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/keys{/key_id}","collaborators_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/teams","hooks_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/hooks","issue_events_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/issues/events{/number}","events_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/events","assignees_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/assignees{/user}","branches_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/branches{/branch}","tags_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/tags","blobs_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/git/refs{/sha}","trees_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/git/trees{/sha}","statuses_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/statuses/{sha}","languages_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/languages","stargazers_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/stargazers","contributors_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/contributors","subscribers_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/subscribers","subscription_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/subscription","commits_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/commits{/sha}","git_commits_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/git/commits{/sha}","comments_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/comments{/number}","issue_comment_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/issues/comments{/number}","contents_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/contents/{+path}","compare_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/compare/{base}...{head}","merges_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/merges","archive_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/downloads","issues_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/issues{/number}","pulls_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/pulls{/number}","milestones_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/milestones{/number}","notifications_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/labels{/name}","releases_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/releases{/id}","deployments_url":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/deployments","created_at":"2015-12-11T16:17:59Z","updated_at":"2016-02-24T00:30:51Z","pushed_at":"2016-04-29T01:05:06Z","git_url":"git://github.com/saltstack-formulas/filebeat-formula.git","ssh_url":"git@github.com:saltstack-formulas/filebeat-formula.git","clone_url":"https://github.com/saltstack-formulas/filebeat-formula.git","svn_url":"https://github.com/saltstack-formulas/filebeat-formula","homepage":"http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html","size":12,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":3,"forks":10,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/pulls/10"},"html":{"href":"https://github.com/saltstack-formulas/filebeat-formula/pull/10"},"issue":{"href":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/issues/10"},"comments":{"href":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/saltstack-formulas/filebeat-formula/statuses/76174d24cfe60312c8e0020dc5e78590da672780"}}}}