{"action":"created","comment":{"url":"https://api.github.com/repos/foglamp/FogLAMP/pulls/comments/175349644","pull_request_review_id":104861398,"id":175349644,"diff_hunk":"@@ -89,6 +91,42 @@\n     return web.json_response({\"bundle created\": bundle_name})\n \n \n+async def get_syslog_entries(request):\n+    \"\"\" Returns a list of syslog trail entries sorted with most recent first and total count\n+        (including the criteria search if applied)\n+\n+    :Example:\n+        curl -X GET http://localhost:8081/foglamp/syslog\n+        curl -X GET \"http://localhost:8081/foglamp/syslog?limit=5\"\n+        curl -X GET \"http://localhost:8081/foglamp/syslog?source=Storage\"\n+        curl -X GET \"http://localhost:8081/foglamp/syslog?limit=5&source=Storage\"","path":"python/foglamp/services/core/api/support.py","position":null,"original_position":34,"commit_id":"af7df48686fa35ba4c5d76fa55d8e30fa6e01a9e","original_commit_id":"48699a8c670289d60afe715164e9bf453ec3ae6a","user":{"login":"amarendra-dianomic","id":27818158,"avatar_url":"https://avatars0.githubusercontent.com/u/27818158?v=4","gravatar_id":"","url":"https://api.github.com/users/amarendra-dianomic","html_url":"https://github.com/amarendra-dianomic","followers_url":"https://api.github.com/users/amarendra-dianomic/followers","following_url":"https://api.github.com/users/amarendra-dianomic/following{/other_user}","gists_url":"https://api.github.com/users/amarendra-dianomic/gists{/gist_id}","starred_url":"https://api.github.com/users/amarendra-dianomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amarendra-dianomic/subscriptions","organizations_url":"https://api.github.com/users/amarendra-dianomic/orgs","repos_url":"https://api.github.com/users/amarendra-dianomic/repos","events_url":"https://api.github.com/users/amarendra-dianomic/events{/privacy}","received_events_url":"https://api.github.com/users/amarendra-dianomic/received_events","type":"User","site_admin":false},"body":"done","created_at":"2018-03-19T07:41:31Z","updated_at":"2018-03-19T07:41:31Z","html_url":"https://github.com/foglamp/FogLAMP/pull/647#discussion_r175349644","pull_request_url":"https://api.github.com/repos/foglamp/FogLAMP/pulls/647","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/foglamp/FogLAMP/pulls/comments/175349644"},"html":{"href":"https://github.com/foglamp/FogLAMP/pull/647#discussion_r175349644"},"pull_request":{"href":"https://api.github.com/repos/foglamp/FogLAMP/pulls/647"}},"in_reply_to_id":175334849},"pull_request":{"url":"https://api.github.com/repos/foglamp/FogLAMP/pulls/647","id":175521578,"html_url":"https://github.com/foglamp/FogLAMP/pull/647","diff_url":"https://github.com/foglamp/FogLAMP/pull/647.diff","patch_url":"https://github.com/foglamp/FogLAMP/pull/647.patch","issue_url":"https://api.github.com/repos/foglamp/FogLAMP/issues/647","number":647,"state":"open","locked":false,"title":"FOGL-1180 -  add syslog reader endpoint to REST api","user":{"login":"amarendra-dianomic","id":27818158,"avatar_url":"https://avatars0.githubusercontent.com/u/27818158?v=4","gravatar_id":"","url":"https://api.github.com/users/amarendra-dianomic","html_url":"https://github.com/amarendra-dianomic","followers_url":"https://api.github.com/users/amarendra-dianomic/followers","following_url":"https://api.github.com/users/amarendra-dianomic/following{/other_user}","gists_url":"https://api.github.com/users/amarendra-dianomic/gists{/gist_id}","starred_url":"https://api.github.com/users/amarendra-dianomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amarendra-dianomic/subscriptions","organizations_url":"https://api.github.com/users/amarendra-dianomic/orgs","repos_url":"https://api.github.com/users/amarendra-dianomic/repos","events_url":"https://api.github.com/users/amarendra-dianomic/events{/privacy}","received_events_url":"https://api.github.com/users/amarendra-dianomic/received_events","type":"User","site_admin":false},"body":"Facilitate  to see syslog entries via REST api (as we do for audit logs)\r\n","created_at":"2018-03-16T12:39:17Z","updated_at":"2018-03-19T07:41:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c911438043f2f80884c1cf0bd87557fba80956c7","assignee":null,"assignees":[],"requested_reviewers":[{"login":"MarkRiddoch","id":6051869,"avatar_url":"https://avatars2.githubusercontent.com/u/6051869?v=4","gravatar_id":"","url":"https://api.github.com/users/MarkRiddoch","html_url":"https://github.com/MarkRiddoch","followers_url":"https://api.github.com/users/MarkRiddoch/followers","following_url":"https://api.github.com/users/MarkRiddoch/following{/other_user}","gists_url":"https://api.github.com/users/MarkRiddoch/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkRiddoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkRiddoch/subscriptions","organizations_url":"https://api.github.com/users/MarkRiddoch/orgs","repos_url":"https://api.github.com/users/MarkRiddoch/repos","events_url":"https://api.github.com/users/MarkRiddoch/events{/privacy}","received_events_url":"https://api.github.com/users/MarkRiddoch/received_events","type":"User","site_admin":false},{"login":"ashish-jabble","id":27723735,"avatar_url":"https://avatars0.githubusercontent.com/u/27723735?v=4","gravatar_id":"","url":"https://api.github.com/users/ashish-jabble","html_url":"https://github.com/ashish-jabble","followers_url":"https://api.github.com/users/ashish-jabble/followers","following_url":"https://api.github.com/users/ashish-jabble/following{/other_user}","gists_url":"https://api.github.com/users/ashish-jabble/gists{/gist_id}","starred_url":"https://api.github.com/users/ashish-jabble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashish-jabble/subscriptions","organizations_url":"https://api.github.com/users/ashish-jabble/orgs","repos_url":"https://api.github.com/users/ashish-jabble/repos","events_url":"https://api.github.com/users/ashish-jabble/events{/privacy}","received_events_url":"https://api.github.com/users/ashish-jabble/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":642390236,"url":"https://api.github.com/repos/foglamp/FogLAMP/labels/POC%20only","name":"POC only","color":"fef2c0","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/foglamp/FogLAMP/pulls/647/commits","review_comments_url":"https://api.github.com/repos/foglamp/FogLAMP/pulls/647/comments","review_comment_url":"https://api.github.com/repos/foglamp/FogLAMP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/foglamp/FogLAMP/issues/647/comments","statuses_url":"https://api.github.com/repos/foglamp/FogLAMP/statuses/af7df48686fa35ba4c5d76fa55d8e30fa6e01a9e","head":{"label":"foglamp:FOGL-1180","ref":"FOGL-1180","sha":"af7df48686fa35ba4c5d76fa55d8e30fa6e01a9e","user":{"login":"foglamp","id":27822234,"avatar_url":"https://avatars0.githubusercontent.com/u/27822234?v=4","gravatar_id":"","url":"https://api.github.com/users/foglamp","html_url":"https://github.com/foglamp","followers_url":"https://api.github.com/users/foglamp/followers","following_url":"https://api.github.com/users/foglamp/following{/other_user}","gists_url":"https://api.github.com/users/foglamp/gists{/gist_id}","starred_url":"https://api.github.com/users/foglamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foglamp/subscriptions","organizations_url":"https://api.github.com/users/foglamp/orgs","repos_url":"https://api.github.com/users/foglamp/repos","events_url":"https://api.github.com/users/foglamp/events{/privacy}","received_events_url":"https://api.github.com/users/foglamp/received_events","type":"Organization","site_admin":false},"repo":{"id":88887957,"name":"FogLAMP","full_name":"foglamp/FogLAMP","owner":{"login":"foglamp","id":27822234,"avatar_url":"https://avatars0.githubusercontent.com/u/27822234?v=4","gravatar_id":"","url":"https://api.github.com/users/foglamp","html_url":"https://github.com/foglamp","followers_url":"https://api.github.com/users/foglamp/followers","following_url":"https://api.github.com/users/foglamp/following{/other_user}","gists_url":"https://api.github.com/users/foglamp/gists{/gist_id}","starred_url":"https://api.github.com/users/foglamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foglamp/subscriptions","organizations_url":"https://api.github.com/users/foglamp/orgs","repos_url":"https://api.github.com/users/foglamp/repos","events_url":"https://api.github.com/users/foglamp/events{/privacy}","received_events_url":"https://api.github.com/users/foglamp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/foglamp/FogLAMP","description":"An open source platform for the Internet of Things, it acts as an edge gateway between sensor devices and cloud storage systems","fork":false,"url":"https://api.github.com/repos/foglamp/FogLAMP","forks_url":"https://api.github.com/repos/foglamp/FogLAMP/forks","keys_url":"https://api.github.com/repos/foglamp/FogLAMP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/foglamp/FogLAMP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/foglamp/FogLAMP/teams","hooks_url":"https://api.github.com/repos/foglamp/FogLAMP/hooks","issue_events_url":"https://api.github.com/repos/foglamp/FogLAMP/issues/events{/number}","events_url":"https://api.github.com/repos/foglamp/FogLAMP/events","assignees_url":"https://api.github.com/repos/foglamp/FogLAMP/assignees{/user}","branches_url":"https://api.github.com/repos/foglamp/FogLAMP/branches{/branch}","tags_url":"https://api.github.com/repos/foglamp/FogLAMP/tags","blobs_url":"https://api.github.com/repos/foglamp/FogLAMP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/foglamp/FogLAMP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/foglamp/FogLAMP/git/refs{/sha}","trees_url":"https://api.github.com/repos/foglamp/FogLAMP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/foglamp/FogLAMP/statuses/{sha}","languages_url":"https://api.github.com/repos/foglamp/FogLAMP/languages","stargazers_url":"https://api.github.com/repos/foglamp/FogLAMP/stargazers","contributors_url":"https://api.github.com/repos/foglamp/FogLAMP/contributors","subscribers_url":"https://api.github.com/repos/foglamp/FogLAMP/subscribers","subscription_url":"https://api.github.com/repos/foglamp/FogLAMP/subscription","commits_url":"https://api.github.com/repos/foglamp/FogLAMP/commits{/sha}","git_commits_url":"https://api.github.com/repos/foglamp/FogLAMP/git/commits{/sha}","comments_url":"https://api.github.com/repos/foglamp/FogLAMP/comments{/number}","issue_comment_url":"https://api.github.com/repos/foglamp/FogLAMP/issues/comments{/number}","contents_url":"https://api.github.com/repos/foglamp/FogLAMP/contents/{+path}","compare_url":"https://api.github.com/repos/foglamp/FogLAMP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/foglamp/FogLAMP/merges","archive_url":"https://api.github.com/repos/foglamp/FogLAMP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/foglamp/FogLAMP/downloads","issues_url":"https://api.github.com/repos/foglamp/FogLAMP/issues{/number}","pulls_url":"https://api.github.com/repos/foglamp/FogLAMP/pulls{/number}","milestones_url":"https://api.github.com/repos/foglamp/FogLAMP/milestones{/number}","notifications_url":"https://api.github.com/repos/foglamp/FogLAMP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/foglamp/FogLAMP/labels{/name}","releases_url":"https://api.github.com/repos/foglamp/FogLAMP/releases{/id}","deployments_url":"https://api.github.com/repos/foglamp/FogLAMP/deployments","created_at":"2017-04-20T16:35:27Z","updated_at":"2018-03-17T08:35:02Z","pushed_at":"2018-03-19T07:40:53Z","git_url":"git://github.com/foglamp/FogLAMP.git","ssh_url":"git@github.com:foglamp/FogLAMP.git","clone_url":"https://github.com/foglamp/FogLAMP.git","svn_url":"https://github.com/foglamp/FogLAMP","homepage":"http://foglamp.readthedocs.io/","size":12014,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":14,"open_issues":10,"watchers":13,"default_branch":"develop"}},"base":{"label":"foglamp:develop","ref":"develop","sha":"057528efb7d00197d8f5f459984376c6717006e6","user":{"login":"foglamp","id":27822234,"avatar_url":"https://avatars0.githubusercontent.com/u/27822234?v=4","gravatar_id":"","url":"https://api.github.com/users/foglamp","html_url":"https://github.com/foglamp","followers_url":"https://api.github.com/users/foglamp/followers","following_url":"https://api.github.com/users/foglamp/following{/other_user}","gists_url":"https://api.github.com/users/foglamp/gists{/gist_id}","starred_url":"https://api.github.com/users/foglamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foglamp/subscriptions","organizations_url":"https://api.github.com/users/foglamp/orgs","repos_url":"https://api.github.com/users/foglamp/repos","events_url":"https://api.github.com/users/foglamp/events{/privacy}","received_events_url":"https://api.github.com/users/foglamp/received_events","type":"Organization","site_admin":false},"repo":{"id":88887957,"name":"FogLAMP","full_name":"foglamp/FogLAMP","owner":{"login":"foglamp","id":27822234,"avatar_url":"https://avatars0.githubusercontent.com/u/27822234?v=4","gravatar_id":"","url":"https://api.github.com/users/foglamp","html_url":"https://github.com/foglamp","followers_url":"https://api.github.com/users/foglamp/followers","following_url":"https://api.github.com/users/foglamp/following{/other_user}","gists_url":"https://api.github.com/users/foglamp/gists{/gist_id}","starred_url":"https://api.github.com/users/foglamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foglamp/subscriptions","organizations_url":"https://api.github.com/users/foglamp/orgs","repos_url":"https://api.github.com/users/foglamp/repos","events_url":"https://api.github.com/users/foglamp/events{/privacy}","received_events_url":"https://api.github.com/users/foglamp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/foglamp/FogLAMP","description":"An open source platform for the Internet of Things, it acts as an edge gateway between sensor devices and cloud storage systems","fork":false,"url":"https://api.github.com/repos/foglamp/FogLAMP","forks_url":"https://api.github.com/repos/foglamp/FogLAMP/forks","keys_url":"https://api.github.com/repos/foglamp/FogLAMP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/foglamp/FogLAMP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/foglamp/FogLAMP/teams","hooks_url":"https://api.github.com/repos/foglamp/FogLAMP/hooks","issue_events_url":"https://api.github.com/repos/foglamp/FogLAMP/issues/events{/number}","events_url":"https://api.github.com/repos/foglamp/FogLAMP/events","assignees_url":"https://api.github.com/repos/foglamp/FogLAMP/assignees{/user}","branches_url":"https://api.github.com/repos/foglamp/FogLAMP/branches{/branch}","tags_url":"https://api.github.com/repos/foglamp/FogLAMP/tags","blobs_url":"https://api.github.com/repos/foglamp/FogLAMP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/foglamp/FogLAMP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/foglamp/FogLAMP/git/refs{/sha}","trees_url":"https://api.github.com/repos/foglamp/FogLAMP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/foglamp/FogLAMP/statuses/{sha}","languages_url":"https://api.github.com/repos/foglamp/FogLAMP/languages","stargazers_url":"https://api.github.com/repos/foglamp/FogLAMP/stargazers","contributors_url":"https://api.github.com/repos/foglamp/FogLAMP/contributors","subscribers_url":"https://api.github.com/repos/foglamp/FogLAMP/subscribers","subscription_url":"https://api.github.com/repos/foglamp/FogLAMP/subscription","commits_url":"https://api.github.com/repos/foglamp/FogLAMP/commits{/sha}","git_commits_url":"https://api.github.com/repos/foglamp/FogLAMP/git/commits{/sha}","comments_url":"https://api.github.com/repos/foglamp/FogLAMP/comments{/number}","issue_comment_url":"https://api.github.com/repos/foglamp/FogLAMP/issues/comments{/number}","contents_url":"https://api.github.com/repos/foglamp/FogLAMP/contents/{+path}","compare_url":"https://api.github.com/repos/foglamp/FogLAMP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/foglamp/FogLAMP/merges","archive_url":"https://api.github.com/repos/foglamp/FogLAMP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/foglamp/FogLAMP/downloads","issues_url":"https://api.github.com/repos/foglamp/FogLAMP/issues{/number}","pulls_url":"https://api.github.com/repos/foglamp/FogLAMP/pulls{/number}","milestones_url":"https://api.github.com/repos/foglamp/FogLAMP/milestones{/number}","notifications_url":"https://api.github.com/repos/foglamp/FogLAMP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/foglamp/FogLAMP/labels{/name}","releases_url":"https://api.github.com/repos/foglamp/FogLAMP/releases{/id}","deployments_url":"https://api.github.com/repos/foglamp/FogLAMP/deployments","created_at":"2017-04-20T16:35:27Z","updated_at":"2018-03-17T08:35:02Z","pushed_at":"2018-03-19T07:40:53Z","git_url":"git://github.com/foglamp/FogLAMP.git","ssh_url":"git@github.com:foglamp/FogLAMP.git","clone_url":"https://github.com/foglamp/FogLAMP.git","svn_url":"https://github.com/foglamp/FogLAMP","homepage":"http://foglamp.readthedocs.io/","size":12014,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":14,"open_issues":10,"watchers":13,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/foglamp/FogLAMP/pulls/647"},"html":{"href":"https://github.com/foglamp/FogLAMP/pull/647"},"issue":{"href":"https://api.github.com/repos/foglamp/FogLAMP/issues/647"},"comments":{"href":"https://api.github.com/repos/foglamp/FogLAMP/issues/647/comments"},"review_comments":{"href":"https://api.github.com/repos/foglamp/FogLAMP/pulls/647/comments"},"review_comment":{"href":"https://api.github.com/repos/foglamp/FogLAMP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/foglamp/FogLAMP/pulls/647/commits"},"statuses":{"href":"https://api.github.com/repos/foglamp/FogLAMP/statuses/af7df48686fa35ba4c5d76fa55d8e30fa6e01a9e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"amarendra-dianomic"}}