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
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...