{"action":"opened","number":59,"pull_request":{"url":"https://api.github.com/repos/Financial-Times/lantern-logstash/pulls/59","id":56457071,"html_url":"https://github.com/Financial-Times/lantern-logstash/pull/59","diff_url":"https://github.com/Financial-Times/lantern-logstash/pull/59.diff","patch_url":"https://github.com/Financial-Times/lantern-logstash/pull/59.patch","issue_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/issues/59","number":59,"state":"open","locked":false,"title":"Add last publish date","user":{"login":"ookejimift","id":2796534,"avatar_url":"https://avatars.githubusercontent.com/u/2796534?v=3","gravatar_id":"","url":"https://api.github.com/users/ookejimift","html_url":"https://github.com/ookejimift","followers_url":"https://api.github.com/users/ookejimift/followers","following_url":"https://api.github.com/users/ookejimift/following{/other_user}","gists_url":"https://api.github.com/users/ookejimift/gists{/gist_id}","starred_url":"https://api.github.com/users/ookejimift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ookejimift/subscriptions","organizations_url":"https://api.github.com/users/ookejimift/orgs","repos_url":"https://api.github.com/users/ookejimift/repos","events_url":"https://api.github.com/users/ookejimift/events{/privacy}","received_events_url":"https://api.github.com/users/ookejimift/received_events","type":"User","site_admin":false},"body":"Sample elastic search query against [realtime index](https://search-editorial-lantern-hjxj7io5fcw4k4rx7uxm6s3paq.eu-west-1.es.amazonaws.com/realtime*/_search?)  \r\n```json\r\n{\r\n\"size\": 0,\r\n\"query\": {\r\n      \"match\": { \"article_uuid\": \"d008dd3c-be9e-11e5-9fdb-87b8d15baec2\" }\r\n    },\r\n\"aggs\" : {\r\n    \"last_publish_date\" : {\r\n        \"terms\" : { \"field\" : \"last_publish_date\" }\r\n    }\r\n}}\r\n```","created_at":"2016-01-19T12:05:06Z","updated_at":"2016-01-19T12:05:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/pulls/59/commits","review_comments_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/pulls/59/comments","review_comment_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/issues/59/comments","statuses_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/statuses/47fd0c2a8f7cddd4a910fe53ebfce366a0dffb4d","head":{"label":"Financial-Times:RTinitial-publish-date","ref":"RTinitial-publish-date","sha":"47fd0c2a8f7cddd4a910fe53ebfce366a0dffb4d","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":41313738,"name":"lantern-logstash","full_name":"Financial-Times/lantern-logstash","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/lantern-logstash","description":"ETL process from S3 to ES via logstash","fork":false,"url":"https://api.github.com/repos/Financial-Times/lantern-logstash","forks_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/forks","keys_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/teams","hooks_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/events","assignees_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/tags","blobs_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/subscription","commits_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/merges","archive_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/downloads","issues_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/releases{/id}","created_at":"2015-08-24T16:15:20Z","updated_at":"2016-01-14T10:17:36Z","pushed_at":"2016-01-19T11:48:52Z","git_url":"git://github.com/Financial-Times/lantern-logstash.git","ssh_url":"git@github.com:Financial-Times/lantern-logstash.git","clone_url":"https://github.com/Financial-Times/lantern-logstash.git","svn_url":"https://github.com/Financial-Times/lantern-logstash","homepage":"","size":212,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"Financial-Times:master","ref":"master","sha":"cac9d52de90a9a3d338b7ff3f6126fa69e320292","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":41313738,"name":"lantern-logstash","full_name":"Financial-Times/lantern-logstash","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/lantern-logstash","description":"ETL process from S3 to ES via logstash","fork":false,"url":"https://api.github.com/repos/Financial-Times/lantern-logstash","forks_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/forks","keys_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/teams","hooks_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/events","assignees_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/tags","blobs_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/subscription","commits_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/merges","archive_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/downloads","issues_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/lantern-logstash/releases{/id}","created_at":"2015-08-24T16:15:20Z","updated_at":"2016-01-14T10:17:36Z","pushed_at":"2016-01-19T11:48:52Z","git_url":"git://github.com/Financial-Times/lantern-logstash.git","ssh_url":"git@github.com:Financial-Times/lantern-logstash.git","clone_url":"https://github.com/Financial-Times/lantern-logstash.git","svn_url":"https://github.com/Financial-Times/lantern-logstash","homepage":"","size":212,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/lantern-logstash/pulls/59"},"html":{"href":"https://github.com/Financial-Times/lantern-logstash/pull/59"},"issue":{"href":"https://api.github.com/repos/Financial-Times/lantern-logstash/issues/59"},"comments":{"href":"https://api.github.com/repos/Financial-Times/lantern-logstash/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/Financial-Times/lantern-logstash/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/Financial-Times/lantern-logstash/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Financial-Times/lantern-logstash/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/Financial-Times/lantern-logstash/statuses/47fd0c2a8f7cddd4a910fe53ebfce366a0dffb4d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":17,"deletions":6,"changed_files":5}}