Splunk Search

Can I search IPs with no syntax?

kruane
Explorer

Can't I just search an IP within Splunk with no syntax, just 192.15.10.1 and if there is any data or this IP is simply being accessed by one of our users, then I should be able to see it.

Are there better ways to find it? 

Overall I want to see if two specific IPs are connecting to Splunk, if so, then broaden the search. 

Labels (1)
0 Karma

martinpu
Communicator

You can use quotation marks like so and use OR if you want to search for multiple IPs


index=yourindex  "192.15.10.1" OR "192.15.10.2"

Or extract all ips:

index=yourindex yourkeyword
|rex max_match=0 "(?<ip>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})"
|search ip="192.15.10.1"

 

Tags (1)
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...