- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
02-15-2022 11:07 PM - last edited on 04-20-2022 08:33 AM by RPrasadi
Hi guys,
So I know how to query EC2 instances for the private IP address, and that works fine.
I've come across a situation where I see an IP address in our AWS subnets doing something, but I can't track down what it is. It is not attached to an EC2 instance, it's something else. But I can't find any type of query that basically says: Give me any and all objects that contain IP 1.2.3.4.
How would I go about doing this?
Thank you much!
03-09-2022 07:25 AM
Hello @MHale4,
Is this query could help you ?
config from cloud.resource where cloud.type = 'AWS' AND json.rule = privateIpAddress exists AND privateIpAddress contains "X.X.X.X"
Replace "X.X.X.X" with your IP adsress.
JB
03-09-2022 07:25 AM
Hello @MHale4,
Is this query could help you ?
config from cloud.resource where cloud.type = 'AWS' AND json.rule = privateIpAddress exists AND privateIpAddress contains "X.X.X.X"
Replace "X.X.X.X" with your IP adsress.
JB
04-06-2022 11:19 PM
YOU ROCK. This was exactly the query that I needed.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!