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!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...