Splunk Search

Stuck in writing complex query

Pathik
Path Finder

I want to get below in single query

1. dc of field1 overall

2. dc of field2 by field1

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust
| eventstats dc(field1) as dc_field1
| stats dc(field2) as dc_field2, max(dc_field1) by field1
---
If this reply helps you, Karma would be appreciated.

Pathik
Path Finder

exactly the way I wanted... thanks a ton

richgalloway
SplunkTrust
SplunkTrust

If your problem is resolved, then please click the "Accept as Solution" button to help future readers.

---
If this reply helps you, Karma would be appreciated.
0 Karma

Pathik
Path Finder

I want to get below in single query

1. dc of field1 overall

2. dc of field2 by field1

0 Karma
Get Updates on the Splunk Community!

AppDynamics Summer Webinars

This summer, our mighty AppDynamics team is cooking up some delicious content on YouTube Live to satiate your ...

SOCin’ it to you at Splunk University

Splunk University is expanding its instructor-led learning portfolio with dedicated Security tracks at .conf25 ...

Credit Card Data Protection & PCI Compliance with Splunk Edge Processor

Organizations handling credit card transactions know that PCI DSS compliance is both critical and complex. The ...