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!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...