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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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