- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Splunk query for getting logs in descending order based on API execution time
athul_r_m
New Member
01-29-2024
10:19 PM
Can some one help me with query for getting logs in descending order based on API execution time which printed on logs.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

gcusello

SplunkTrust
01-29-2024
10:39 PM
Hi @athul_r_m,
your request is just a little too vague!
could you better describe your data?
e.g. fields to display, API execution time fieldname, etc...
Anyway, to sort in descrnding order you have to see the options of the sort command (https://docs.splunk.com/Documentation/SCS/current/SearchReference/SortCommandOverview😞
index=your_index
| sort -API_execution_time
| table API_execution_time field1 field2 field3
Ciao.
Giuseppe
