{"action":"created","comment":{"url":"https://api.github.com/repos/elastic/filebeat/pulls/comments/41932833","id":41932833,"diff_hunk":"@@ -257,3 +258,81 @@ def test_file_disappear_appear(self):\n         # from scratch\n         output = self.read_output()\n         assert len(output) == 5 + 6\n+\n+    def test_new_line_on_existing_file(self):\n+        \"\"\"\n+        Checks that filebeat follows future writes to the same\n+        file.\n+        \"\"\"\n+\n+        self.render_config_template(\n+            path=os.path.abspath(self.working_dir) + \"/log/*\"\n+        )\n+        os.mkdir(self.working_dir + \"/log/\")\n+\n+        testfile = self.working_dir + \"/log/test.log\"\n+        with open(testfile, 'w') as f:\n+            f.write(\"hello world\\n\")\n+\n+        filebeat = self.start_filebeat()\n+\n+        self.wait_until(\n+            lambda: self.log_contains(\n+                \"Registrar: processing 1 events\"),\n+            max_timeout=15)","path":"tests/system/test_crawler.py","position":35,"original_position":35,"commit_id":"24e00ef6b7f829918424049528925fe5c3ed59d4","original_commit_id":"24e00ef6b7f829918424049528925fe5c3ed59d4","user":{"login":"urso","id":75886,"avatar_url":"https://avatars.githubusercontent.com/u/75886?v=3","gravatar_id":"","url":"https://api.github.com/users/urso","html_url":"https://github.com/urso","followers_url":"https://api.github.com/users/urso/followers","following_url":"https://api.github.com/users/urso/following{/other_user}","gists_url":"https://api.github.com/users/urso/gists{/gist_id}","starred_url":"https://api.github.com/users/urso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urso/subscriptions","organizations_url":"https://api.github.com/users/urso/orgs","repos_url":"https://api.github.com/users/urso/repos","events_url":"https://api.github.com/users/urso/events{/privacy}","received_events_url":"https://api.github.com/users/urso/received_events","type":"User","site_admin":false},"body":"can we check the filebeat output file instead of the log? Relying on filebeat debug output doesn't feel nice.","created_at":"2015-10-13T22:08:48Z","updated_at":"2015-10-13T22:08:48Z","html_url":"https://github.com/elastic/filebeat/pull/83#discussion_r41932833","pull_request_url":"https://api.github.com/repos/elastic/filebeat/pulls/83","_links":{"self":{"href":"https://api.github.com/repos/elastic/filebeat/pulls/comments/41932833"},"html":{"href":"https://github.com/elastic/filebeat/pull/83#discussion_r41932833"},"pull_request":{"href":"https://api.github.com/repos/elastic/filebeat/pulls/83"}}},"pull_request":{"url":"https://api.github.com/repos/elastic/filebeat/pulls/83","id":47511429,"html_url":"https://github.com/elastic/filebeat/pull/83","diff_url":"https://github.com/elastic/filebeat/pull/83.diff","patch_url":"https://github.com/elastic/filebeat/pull/83.patch","issue_url":"https://api.github.com/repos/elastic/filebeat/issues/83","number":83,"state":"open","locked":false,"title":"Add a system test for tailing a file","user":{"login":"tsg","id":101817,"avatar_url":"https://avatars.githubusercontent.com/u/101817?v=3","gravatar_id":"","url":"https://api.github.com/users/tsg","html_url":"https://github.com/tsg","followers_url":"https://api.github.com/users/tsg/followers","following_url":"https://api.github.com/users/tsg/following{/other_user}","gists_url":"https://api.github.com/users/tsg/gists{/gist_id}","starred_url":"https://api.github.com/users/tsg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsg/subscriptions","organizations_url":"https://api.github.com/users/tsg/orgs","repos_url":"https://api.github.com/users/tsg/repos","events_url":"https://api.github.com/users/tsg/events{/privacy}","received_events_url":"https://api.github.com/users/tsg/received_events","type":"User","site_admin":false},"body":"I have a suspicion this will fail on Windows, so it's mostly a test.","created_at":"2015-10-13T09:46:33Z","updated_at":"2015-10-13T22:08:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"86022b395ca7b9ecf7569717d5a2fe6d0d873b35","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elastic/filebeat/pulls/83/commits","review_comments_url":"https://api.github.com/repos/elastic/filebeat/pulls/83/comments","review_comment_url":"https://api.github.com/repos/elastic/filebeat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elastic/filebeat/issues/83/comments","statuses_url":"https://api.github.com/repos/elastic/filebeat/statuses/24e00ef6b7f829918424049528925fe5c3ed59d4","head":{"label":"tsg:system_test_win_harvester","ref":"system_test_win_harvester","sha":"24e00ef6b7f829918424049528925fe5c3ed59d4","user":{"login":"tsg","id":101817,"avatar_url":"https://avatars.githubusercontent.com/u/101817?v=3","gravatar_id":"","url":"https://api.github.com/users/tsg","html_url":"https://github.com/tsg","followers_url":"https://api.github.com/users/tsg/followers","following_url":"https://api.github.com/users/tsg/following{/other_user}","gists_url":"https://api.github.com/users/tsg/gists{/gist_id}","starred_url":"https://api.github.com/users/tsg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsg/subscriptions","organizations_url":"https://api.github.com/users/tsg/orgs","repos_url":"https://api.github.com/users/tsg/repos","events_url":"https://api.github.com/users/tsg/events{/privacy}","received_events_url":"https://api.github.com/users/tsg/received_events","type":"User","site_admin":false},"repo":{"id":42273399,"name":"filebeat","full_name":"tsg/filebeat","owner":{"login":"tsg","id":101817,"avatar_url":"https://avatars.githubusercontent.com/u/101817?v=3","gravatar_id":"","url":"https://api.github.com/users/tsg","html_url":"https://github.com/tsg","followers_url":"https://api.github.com/users/tsg/followers","following_url":"https://api.github.com/users/tsg/following{/other_user}","gists_url":"https://api.github.com/users/tsg/gists{/gist_id}","starred_url":"https://api.github.com/users/tsg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsg/subscriptions","organizations_url":"https://api.github.com/users/tsg/orgs","repos_url":"https://api.github.com/users/tsg/repos","events_url":"https://api.github.com/users/tsg/events{/privacy}","received_events_url":"https://api.github.com/users/tsg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tsg/filebeat","description":"Open Source File Harvester","fork":true,"url":"https://api.github.com/repos/tsg/filebeat","forks_url":"https://api.github.com/repos/tsg/filebeat/forks","keys_url":"https://api.github.com/repos/tsg/filebeat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tsg/filebeat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tsg/filebeat/teams","hooks_url":"https://api.github.com/repos/tsg/filebeat/hooks","issue_events_url":"https://api.github.com/repos/tsg/filebeat/issues/events{/number}","events_url":"https://api.github.com/repos/tsg/filebeat/events","assignees_url":"https://api.github.com/repos/tsg/filebeat/assignees{/user}","branches_url":"https://api.github.com/repos/tsg/filebeat/branches{/branch}","tags_url":"https://api.github.com/repos/tsg/filebeat/tags","blobs_url":"https://api.github.com/repos/tsg/filebeat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tsg/filebeat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tsg/filebeat/git/refs{/sha}","trees_url":"https://api.github.com/repos/tsg/filebeat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tsg/filebeat/statuses/{sha}","languages_url":"https://api.github.com/repos/tsg/filebeat/languages","stargazers_url":"https://api.github.com/repos/tsg/filebeat/stargazers","contributors_url":"https://api.github.com/repos/tsg/filebeat/contributors","subscribers_url":"https://api.github.com/repos/tsg/filebeat/subscribers","subscription_url":"https://api.github.com/repos/tsg/filebeat/subscription","commits_url":"https://api.github.com/repos/tsg/filebeat/commits{/sha}","git_commits_url":"https://api.github.com/repos/tsg/filebeat/git/commits{/sha}","comments_url":"https://api.github.com/repos/tsg/filebeat/comments{/number}","issue_comment_url":"https://api.github.com/repos/tsg/filebeat/issues/comments{/number}","contents_url":"https://api.github.com/repos/tsg/filebeat/contents/{+path}","compare_url":"https://api.github.com/repos/tsg/filebeat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tsg/filebeat/merges","archive_url":"https://api.github.com/repos/tsg/filebeat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tsg/filebeat/downloads","issues_url":"https://api.github.com/repos/tsg/filebeat/issues{/number}","pulls_url":"https://api.github.com/repos/tsg/filebeat/pulls{/number}","milestones_url":"https://api.github.com/repos/tsg/filebeat/milestones{/number}","notifications_url":"https://api.github.com/repos/tsg/filebeat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tsg/filebeat/labels{/name}","releases_url":"https://api.github.com/repos/tsg/filebeat/releases{/id}","created_at":"2015-09-10T22:11:41Z","updated_at":"2015-09-10T22:11:42Z","pushed_at":"2015-10-13T20:43:16Z","git_url":"git://github.com/tsg/filebeat.git","ssh_url":"git@github.com:tsg/filebeat.git","clone_url":"https://github.com/tsg/filebeat.git","svn_url":"https://github.com/tsg/filebeat","homepage":null,"size":666,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"elastic:master","ref":"master","sha":"2948eff80eca9bf22a78854659e095b30639ef29","user":{"login":"elastic","id":6764390,"avatar_url":"https://avatars.githubusercontent.com/u/6764390?v=3","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"repo":{"id":42054649,"name":"filebeat","full_name":"elastic/filebeat","owner":{"login":"elastic","id":6764390,"avatar_url":"https://avatars.githubusercontent.com/u/6764390?v=3","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elastic/filebeat","description":"Open Source Shipper for Log Files","fork":false,"url":"https://api.github.com/repos/elastic/filebeat","forks_url":"https://api.github.com/repos/elastic/filebeat/forks","keys_url":"https://api.github.com/repos/elastic/filebeat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elastic/filebeat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elastic/filebeat/teams","hooks_url":"https://api.github.com/repos/elastic/filebeat/hooks","issue_events_url":"https://api.github.com/repos/elastic/filebeat/issues/events{/number}","events_url":"https://api.github.com/repos/elastic/filebeat/events","assignees_url":"https://api.github.com/repos/elastic/filebeat/assignees{/user}","branches_url":"https://api.github.com/repos/elastic/filebeat/branches{/branch}","tags_url":"https://api.github.com/repos/elastic/filebeat/tags","blobs_url":"https://api.github.com/repos/elastic/filebeat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elastic/filebeat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elastic/filebeat/git/refs{/sha}","trees_url":"https://api.github.com/repos/elastic/filebeat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elastic/filebeat/statuses/{sha}","languages_url":"https://api.github.com/repos/elastic/filebeat/languages","stargazers_url":"https://api.github.com/repos/elastic/filebeat/stargazers","contributors_url":"https://api.github.com/repos/elastic/filebeat/contributors","subscribers_url":"https://api.github.com/repos/elastic/filebeat/subscribers","subscription_url":"https://api.github.com/repos/elastic/filebeat/subscription","commits_url":"https://api.github.com/repos/elastic/filebeat/commits{/sha}","git_commits_url":"https://api.github.com/repos/elastic/filebeat/git/commits{/sha}","comments_url":"https://api.github.com/repos/elastic/filebeat/comments{/number}","issue_comment_url":"https://api.github.com/repos/elastic/filebeat/issues/comments{/number}","contents_url":"https://api.github.com/repos/elastic/filebeat/contents/{+path}","compare_url":"https://api.github.com/repos/elastic/filebeat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elastic/filebeat/merges","archive_url":"https://api.github.com/repos/elastic/filebeat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elastic/filebeat/downloads","issues_url":"https://api.github.com/repos/elastic/filebeat/issues{/number}","pulls_url":"https://api.github.com/repos/elastic/filebeat/pulls{/number}","milestones_url":"https://api.github.com/repos/elastic/filebeat/milestones{/number}","notifications_url":"https://api.github.com/repos/elastic/filebeat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elastic/filebeat/labels{/name}","releases_url":"https://api.github.com/repos/elastic/filebeat/releases{/id}","created_at":"2015-09-07T13:32:44Z","updated_at":"2015-10-13T21:41:04Z","pushed_at":"2015-10-13T20:21:45Z","git_url":"git://github.com/elastic/filebeat.git","ssh_url":"git@github.com:elastic/filebeat.git","clone_url":"https://github.com/elastic/filebeat.git","svn_url":"https://github.com/elastic/filebeat","homepage":"","size":1152,"stargazers_count":30,"watchers_count":30,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":13,"forks":12,"open_issues":13,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elastic/filebeat/pulls/83"},"html":{"href":"https://github.com/elastic/filebeat/pull/83"},"issue":{"href":"https://api.github.com/repos/elastic/filebeat/issues/83"},"comments":{"href":"https://api.github.com/repos/elastic/filebeat/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/elastic/filebeat/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/elastic/filebeat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elastic/filebeat/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/elastic/filebeat/statuses/24e00ef6b7f829918424049528925fe5c3ed59d4"}}}}