Splunk Search

Top 1 for already selected values using query

Digvijay
Path Finder

Digvijay_0-1626335823022.png

 

Current query :

index=salcus sourcetype= ticket_mgmt_rest source= http:ticket_mgmt_rest |rename "properties.o2-TroubleTicket-ReqId" as REQID | transaction REQID keepevicted=true | search eventcount=2 |table REQID duration |sort -duration

 

Now I want only top 1 record which has maximum duration , so how can I modify above query

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| sort 1 -duration

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
| sort 1 -duration

Digvijay
Path Finder

thanks @ITWhisperer   for the quick and perfect reply

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...