Splunk Dev

How to reverse the order of displayed events using custom command?

carmenho92
New Member

possible to give me some python codes to refer to?

Tags (3)
0 Karma

ravi_shah01
Engager

Hi,

Can you please elaborate on your requirement here?
I generally use existing command |reverse to reverse the events.

0 Karma

Ayn
Legend

It is I guess, but it would be inefficent compared to the command that already exists for this which is why people are commending you to use that instead.

0 Karma

carmenho92
New Member

i want to try doing in custom command? its possible right?

0 Karma

Ayn
Legend

Why would you need a custom command?

0 Karma

carmenho92
New Member

i was thinking of my search command be for eg 404| den e result will display a reversed order of e events.

0 Karma
Get Updates on the Splunk Community!

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

Splunk Up Your Game: Why It's Time to Embrace Python 3.9+ and OpenSSL 3.0

Did you know that for Splunk Enterprise 9.4, Python 3.9 is the default interpreter? This shift is not just a ...