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!

Introducing the Splunk Community Dashboard Challenge!

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

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...