Splunk Search

How to report for 2 fields?

weing
New Member

I have a field containing host IP and another field containing subnet IP. I want to report for each host IP, which are the subnet IPs being denied. How do I do this?

4 3/15/11 9:13:34.000 AM Mar 15 09:13:34 10.172.131.51 /opt/qip/usr/bin/dhcpd[6684]: No DHCP lease available to offer from subnet 10.173.130.0. host=10.172.131.51 Options| sourcetype=cisco_syslog Options| source=/opt/syslog-ng/log/dnslog Options| subnet=subnet 10.173.130.0. Options

5 3/15/11 9:13:34.000 AM Mar 15 09:13:34 10.172.131.51 /opt/qip/usr/bin/dhcpd[6684]: No DHCP lease available to offer from subnet 10.173.130.0. host=10.172.131.51 Options| sourcetype=cisco_syslog Options| source=/opt/syslog-ng/log/dnslog Options| subnet=subnet 10.173.130.0. Options

6 3/15/11 9:13:33.000 AM Mar 15 09:13:33 10.172.131.51 /opt/qip/usr/bin/dhcpd[6682]: BOOTP Request failed: No IP available from subnet 10.172.30.0. host=10.172.131.51 Options| sourcetype=cisco_syslog Options| source=/opt/syslog-ng/log/dnslog Options| subnet=subnet 10.172.30.0. Options

Tags (3)
0 Karma

Stephen_Sorkin
Splunk Employee
Splunk Employee

I'd suggest using stats:

... | stats values(subnet) by host

ftk
Motivator

If your fields are already being extracted, you could do one of the following:

your search terms | fields host, subnet

or

your search terms | table host, subnet
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...