I have an integration agent service that is receiving http post requests, but I want to inspect the remote IP address. How can I get this?
2 comments
-
Mark Keisling I don't know the answer, but if you figure out the remote IP variable please share.
Also, I'm intrigued, what's the use case for this?
-
Travis DePuy See this post:
https://support.xmatters.com/hc/en-us/articles/202355185-Getting-the-Remote-IP-address-in-IA-scriptsWe were looking at doing some whitelisting based on IP address so we could only allow certain IPs to submit events to the IA. This code ended up in the New Relic integration found here:
https://support.xmatters.com/hc/en-us/articles/201486319-xMatters-New-Relic-integration-v1-1