Tested 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 :)
Added ability to search graylog using the resolved IP we now store
Auto-Deploy finished, Test PR at http://3697.ci.librenms.org or https://3697.ci.librenms.org
Would it be worth adding a check that $ip != $device['ip'] before adding the additional parameter?
$ip != $device['ip']
It would be prettier, I agree
Updated if check for device ip