Would love some filter help for IP Address

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Would love some filter help for IP Address

L0 Member

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!

1 accepted solution

Accepted Solutions

L2 Linker

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

JB

View solution in original post

2 REPLIES 2

L2 Linker

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

JB

YOU ROCK.  This was exactly the query that I needed.  

  • 1 accepted solution
  • 2889 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!