{"action":"created","comment":{"url":"https://api.github.com/repos/librenms/librenms/pulls/comments/68011691","id":68011691,"diff_hunk":"@@ -36,7 +36,11 @@\n         $query .= ' && ';\n     }\n     $ip = gethostbyname($filter_hostname);\n+    $device = device_by_name($filter_hostname);\n     $query .= 'source:\"'.$filter_hostname.'\" || source:\"'.$ip.'\"';\n+    if (isset($device['ip'])) {","path":"html/includes/table/graylog.inc.php","position":6,"original_position":6,"commit_id":"744e3d5d6ff752cb5aca12f68eeb33f33901dcfc","original_commit_id":"744e3d5d6ff752cb5aca12f68eeb33f33901dcfc","user":{"login":"f0o","id":1656377,"avatar_url":"https://avatars.githubusercontent.com/u/1656377?v=3","gravatar_id":"","url":"https://api.github.com/users/f0o","html_url":"https://github.com/f0o","followers_url":"https://api.github.com/users/f0o/followers","following_url":"https://api.github.com/users/f0o/following{/other_user}","gists_url":"https://api.github.com/users/f0o/gists{/gist_id}","starred_url":"https://api.github.com/users/f0o/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f0o/subscriptions","organizations_url":"https://api.github.com/users/f0o/orgs","repos_url":"https://api.github.com/users/f0o/repos","events_url":"https://api.github.com/users/f0o/events{/privacy}","received_events_url":"https://api.github.com/users/f0o/received_events","type":"User","site_admin":false},"body":"It would be prettier, I agree","created_at":"2016-06-22T08:17:36Z","updated_at":"2016-06-22T08:17:36Z","html_url":"https://github.com/librenms/librenms/pull/3697#discussion_r68011691","pull_request_url":"https://api.github.com/repos/librenms/librenms/pulls/3697","_links":{"self":{"href":"https://api.github.com/repos/librenms/librenms/pulls/comments/68011691"},"html":{"href":"https://github.com/librenms/librenms/pull/3697#discussion_r68011691"},"pull_request":{"href":"https://api.github.com/repos/librenms/librenms/pulls/3697"}}},"pull_request":{"url":"https://api.github.com/repos/librenms/librenms/pulls/3697","id":74673368,"html_url":"https://github.com/librenms/librenms/pull/3697","diff_url":"https://github.com/librenms/librenms/pull/3697.diff","patch_url":"https://github.com/librenms/librenms/pull/3697.patch","issue_url":"https://api.github.com/repos/librenms/librenms/issues/3697","number":3697,"state":"open","locked":false,"title":"Added ability to search graylog using the resolved IP we now store","user":{"login":"laf","id":3941142,"avatar_url":"https://avatars.githubusercontent.com/u/3941142?v=3","gravatar_id":"","url":"https://api.github.com/users/laf","html_url":"https://github.com/laf","followers_url":"https://api.github.com/users/laf/followers","following_url":"https://api.github.com/users/laf/following{/other_user}","gists_url":"https://api.github.com/users/laf/gists{/gist_id}","starred_url":"https://api.github.com/users/laf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laf/subscriptions","organizations_url":"https://api.github.com/users/laf/orgs","repos_url":"https://api.github.com/users/laf/repos","events_url":"https://api.github.com/users/laf/events{/privacy}","received_events_url":"https://api.github.com/users/laf/received_events","type":"User","site_admin":false},"body":"Fix #1911 \r\n\r\nTested on my install (I don't need the IP query to look up my devices) and it doesn't break but I can't guarantee that it does actually work :)","created_at":"2016-06-21T19:46:07Z","updated_at":"2016-06-22T08:17:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"687e896267c0fcad68ee9a7d235b7635daf722ba","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/librenms/librenms/pulls/3697/commits","review_comments_url":"https://api.github.com/repos/librenms/librenms/pulls/3697/comments","review_comment_url":"https://api.github.com/repos/librenms/librenms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/librenms/librenms/issues/3697/comments","statuses_url":"https://api.github.com/repos/librenms/librenms/statuses/744e3d5d6ff752cb5aca12f68eeb33f33901dcfc","head":{"label":"laf:issue-1911","ref":"issue-1911","sha":"744e3d5d6ff752cb5aca12f68eeb33f33901dcfc","user":{"login":"laf","id":3941142,"avatar_url":"https://avatars.githubusercontent.com/u/3941142?v=3","gravatar_id":"","url":"https://api.github.com/users/laf","html_url":"https://github.com/laf","followers_url":"https://api.github.com/users/laf/followers","following_url":"https://api.github.com/users/laf/following{/other_user}","gists_url":"https://api.github.com/users/laf/gists{/gist_id}","starred_url":"https://api.github.com/users/laf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laf/subscriptions","organizations_url":"https://api.github.com/users/laf/orgs","repos_url":"https://api.github.com/users/laf/repos","events_url":"https://api.github.com/users/laf/events{/privacy}","received_events_url":"https://api.github.com/users/laf/received_events","type":"User","site_admin":false},"repo":{"id":39854429,"name":"librenms","full_name":"laf/librenms","owner":{"login":"laf","id":3941142,"avatar_url":"https://avatars.githubusercontent.com/u/3941142?v=3","gravatar_id":"","url":"https://api.github.com/users/laf","html_url":"https://github.com/laf","followers_url":"https://api.github.com/users/laf/followers","following_url":"https://api.github.com/users/laf/following{/other_user}","gists_url":"https://api.github.com/users/laf/gists{/gist_id}","starred_url":"https://api.github.com/users/laf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laf/subscriptions","organizations_url":"https://api.github.com/users/laf/orgs","repos_url":"https://api.github.com/users/laf/repos","events_url":"https://api.github.com/users/laf/events{/privacy}","received_events_url":"https://api.github.com/users/laf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/laf/librenms","description":"Community-based GPL-licensed network monitoring system","fork":true,"url":"https://api.github.com/repos/laf/librenms","forks_url":"https://api.github.com/repos/laf/librenms/forks","keys_url":"https://api.github.com/repos/laf/librenms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laf/librenms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laf/librenms/teams","hooks_url":"https://api.github.com/repos/laf/librenms/hooks","issue_events_url":"https://api.github.com/repos/laf/librenms/issues/events{/number}","events_url":"https://api.github.com/repos/laf/librenms/events","assignees_url":"https://api.github.com/repos/laf/librenms/assignees{/user}","branches_url":"https://api.github.com/repos/laf/librenms/branches{/branch}","tags_url":"https://api.github.com/repos/laf/librenms/tags","blobs_url":"https://api.github.com/repos/laf/librenms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laf/librenms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laf/librenms/git/refs{/sha}","trees_url":"https://api.github.com/repos/laf/librenms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laf/librenms/statuses/{sha}","languages_url":"https://api.github.com/repos/laf/librenms/languages","stargazers_url":"https://api.github.com/repos/laf/librenms/stargazers","contributors_url":"https://api.github.com/repos/laf/librenms/contributors","subscribers_url":"https://api.github.com/repos/laf/librenms/subscribers","subscription_url":"https://api.github.com/repos/laf/librenms/subscription","commits_url":"https://api.github.com/repos/laf/librenms/commits{/sha}","git_commits_url":"https://api.github.com/repos/laf/librenms/git/commits{/sha}","comments_url":"https://api.github.com/repos/laf/librenms/comments{/number}","issue_comment_url":"https://api.github.com/repos/laf/librenms/issues/comments{/number}","contents_url":"https://api.github.com/repos/laf/librenms/contents/{+path}","compare_url":"https://api.github.com/repos/laf/librenms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laf/librenms/merges","archive_url":"https://api.github.com/repos/laf/librenms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laf/librenms/downloads","issues_url":"https://api.github.com/repos/laf/librenms/issues{/number}","pulls_url":"https://api.github.com/repos/laf/librenms/pulls{/number}","milestones_url":"https://api.github.com/repos/laf/librenms/milestones{/number}","notifications_url":"https://api.github.com/repos/laf/librenms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laf/librenms/labels{/name}","releases_url":"https://api.github.com/repos/laf/librenms/releases{/id}","deployments_url":"https://api.github.com/repos/laf/librenms/deployments","created_at":"2015-07-28T19:47:06Z","updated_at":"2016-01-12T16:25:48Z","pushed_at":"2016-06-21T19:45:11Z","git_url":"git://github.com/laf/librenms.git","ssh_url":"git@github.com:laf/librenms.git","clone_url":"https://github.com/laf/librenms.git","svn_url":"https://github.com/laf/librenms","homepage":"http://www.librenms.org/","size":70908,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"librenms:master","ref":"master","sha":"9d62339044ef66cca975fa29ab99eb30149256f2","user":{"login":"librenms","id":5791783,"avatar_url":"https://avatars.githubusercontent.com/u/5791783?v=3","gravatar_id":"","url":"https://api.github.com/users/librenms","html_url":"https://github.com/librenms","followers_url":"https://api.github.com/users/librenms/followers","following_url":"https://api.github.com/users/librenms/following{/other_user}","gists_url":"https://api.github.com/users/librenms/gists{/gist_id}","starred_url":"https://api.github.com/users/librenms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/librenms/subscriptions","organizations_url":"https://api.github.com/users/librenms/orgs","repos_url":"https://api.github.com/users/librenms/repos","events_url":"https://api.github.com/users/librenms/events{/privacy}","received_events_url":"https://api.github.com/users/librenms/received_events","type":"Organization","site_admin":false},"repo":{"id":13914116,"name":"librenms","full_name":"librenms/librenms","owner":{"login":"librenms","id":5791783,"avatar_url":"https://avatars.githubusercontent.com/u/5791783?v=3","gravatar_id":"","url":"https://api.github.com/users/librenms","html_url":"https://github.com/librenms","followers_url":"https://api.github.com/users/librenms/followers","following_url":"https://api.github.com/users/librenms/following{/other_user}","gists_url":"https://api.github.com/users/librenms/gists{/gist_id}","starred_url":"https://api.github.com/users/librenms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/librenms/subscriptions","organizations_url":"https://api.github.com/users/librenms/orgs","repos_url":"https://api.github.com/users/librenms/repos","events_url":"https://api.github.com/users/librenms/events{/privacy}","received_events_url":"https://api.github.com/users/librenms/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/librenms/librenms","description":"Community-based GPL-licensed network monitoring system","fork":false,"url":"https://api.github.com/repos/librenms/librenms","forks_url":"https://api.github.com/repos/librenms/librenms/forks","keys_url":"https://api.github.com/repos/librenms/librenms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/librenms/librenms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/librenms/librenms/teams","hooks_url":"https://api.github.com/repos/librenms/librenms/hooks","issue_events_url":"https://api.github.com/repos/librenms/librenms/issues/events{/number}","events_url":"https://api.github.com/repos/librenms/librenms/events","assignees_url":"https://api.github.com/repos/librenms/librenms/assignees{/user}","branches_url":"https://api.github.com/repos/librenms/librenms/branches{/branch}","tags_url":"https://api.github.com/repos/librenms/librenms/tags","blobs_url":"https://api.github.com/repos/librenms/librenms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/librenms/librenms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/librenms/librenms/git/refs{/sha}","trees_url":"https://api.github.com/repos/librenms/librenms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/librenms/librenms/statuses/{sha}","languages_url":"https://api.github.com/repos/librenms/librenms/languages","stargazers_url":"https://api.github.com/repos/librenms/librenms/stargazers","contributors_url":"https://api.github.com/repos/librenms/librenms/contributors","subscribers_url":"https://api.github.com/repos/librenms/librenms/subscribers","subscription_url":"https://api.github.com/repos/librenms/librenms/subscription","commits_url":"https://api.github.com/repos/librenms/librenms/commits{/sha}","git_commits_url":"https://api.github.com/repos/librenms/librenms/git/commits{/sha}","comments_url":"https://api.github.com/repos/librenms/librenms/comments{/number}","issue_comment_url":"https://api.github.com/repos/librenms/librenms/issues/comments{/number}","contents_url":"https://api.github.com/repos/librenms/librenms/contents/{+path}","compare_url":"https://api.github.com/repos/librenms/librenms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/librenms/librenms/merges","archive_url":"https://api.github.com/repos/librenms/librenms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/librenms/librenms/downloads","issues_url":"https://api.github.com/repos/librenms/librenms/issues{/number}","pulls_url":"https://api.github.com/repos/librenms/librenms/pulls{/number}","milestones_url":"https://api.github.com/repos/librenms/librenms/milestones{/number}","notifications_url":"https://api.github.com/repos/librenms/librenms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/librenms/librenms/labels{/name}","releases_url":"https://api.github.com/repos/librenms/librenms/releases{/id}","deployments_url":"https://api.github.com/repos/librenms/librenms/deployments","created_at":"2013-10-28T01:37:13Z","updated_at":"2016-06-22T08:13:09Z","pushed_at":"2016-06-22T05:42:04Z","git_url":"git://github.com/librenms/librenms.git","ssh_url":"git@github.com:librenms/librenms.git","clone_url":"https://github.com/librenms/librenms.git","svn_url":"https://github.com/librenms/librenms","homepage":"http://www.librenms.org/","size":97259,"stargazers_count":424,"watchers_count":424,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":274,"mirror_url":null,"open_issues_count":325,"forks":274,"open_issues":325,"watchers":424,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/librenms/librenms/pulls/3697"},"html":{"href":"https://github.com/librenms/librenms/pull/3697"},"issue":{"href":"https://api.github.com/repos/librenms/librenms/issues/3697"},"comments":{"href":"https://api.github.com/repos/librenms/librenms/issues/3697/comments"},"review_comments":{"href":"https://api.github.com/repos/librenms/librenms/pulls/3697/comments"},"review_comment":{"href":"https://api.github.com/repos/librenms/librenms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/librenms/librenms/pulls/3697/commits"},"statuses":{"href":"https://api.github.com/repos/librenms/librenms/statuses/744e3d5d6ff752cb5aca12f68eeb33f33901dcfc"}}}}
{"actor":{"display_login":"f0o"}}