Splunk Search

How do i search for IPv6 addresses from my src_ip field.

cesaccenturefed
Path Finder

I'm trying to do a search that finds IPv6 addresses. Currently our field src_ip has both IPv4 and IPv6 in it. How can i search so only events with IPv6 addresses are returned?

Tags (2)
1 Solution

lloydd518
Path Finder

This is a bit quick and dirty but...

sourcetype=your_sourcetype src_ip=":"

View solution in original post

0 Karma

bigll
Path Finder

One that works for me 

src_ip="*:*"

0 Karma

diablojohn
Engager

This is the simplest way i could come up with.

| regex src_ip!="(^[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$)"

This will remove all IPv4 addresses from your search. don't forget to switch "src_ip" to what field you are searching. (e,g, dest_ip, rx_hosts, tx_hosts)

0 Karma

diablojohn
Engager

this is the most simplest way i came up with.

| regex src_ip!="(^[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$)"

this will remove all IPv4 addresses from your search.

0 Karma

lloydd518
Path Finder

This is a bit quick and dirty but...

sourcetype=your_sourcetype src_ip=":"

0 Karma

cesaccenturefed
Path Finder

I feel as though I should slap myself in the face for not figuring this out on my own! just tried it and it worked. did this src_ip=":"

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...