Splunk Search

Need to find the Top transaction's response ti,e

RashmiGowda
Explorer

I need to find the response time for most occuring / most frequest Transaction

So M trying the following query:

index="abc" source="xyz.log" | timechart max(TransRespTime) by TransName | top 5 TransName.

but this query is not showing the result as expected.

I need to display the result in the form of chart / graph.

Anyone can please suggest me the solution.

Thanks in advance..!!

Tags (2)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

Without knowing your data I'm guessing you're looking for something like this:

index="abc" source="xyz.log" [search index="abc" source="xyz.log" | top 5 TransName | fields TransName] | timechart max(TransRespTime) by TransName

Or this:

index="abc" source="xyz.log" | timechart limit=5 useother=f max(TransRespTime) by TransName

View solution in original post

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Without knowing your data I'm guessing you're looking for something like this:

index="abc" source="xyz.log" [search index="abc" source="xyz.log" | top 5 TransName | fields TransName] | timechart max(TransRespTime) by TransName

Or this:

index="abc" source="xyz.log" | timechart limit=5 useother=f max(TransRespTime) by TransName
0 Karma

RashmiGowda
Explorer

Sorry.. Its working.. I just missed to add sub search thing.. @martin_muller

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

The search looks correct to me... beyond that, I can't magically look into your system, data, or Splunk logs. You'll have to provide some relevant info to find any issue.

0 Karma

RashmiGowda
Explorer

@martin_muller, The first query suggested is not displaying the results.. 😞 could u ple suggest

0 Karma
Get Updates on the Splunk Community!

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...

Join Us at the Builder Bar at .conf24 – Empowering Innovation and Collaboration

What is the Builder Bar? The Builder Bar is more than just a place; it's a hub of creativity, collaboration, ...

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...