Splunk Search

Is there a way to reverse comparison order of week over week results using timewrap?

DaveAsh
Engager

I am using timewrap to return week over week results. I need to be able to change the order of comparison from week1, week2, week3 to show as week3, week2, week1. Is there a way to change the comparison order with timewrap?
Thanks.

0 Karma

ppablo
Retired

Hi @DaveAsh

Would you be able to use the reverse command to get what you need? You can try adding it to the end of your search like so:

... | reverse

Here's the documentation on the reverse command:
http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Reverse

0 Karma

ppablo
Retired

Ahh I see what you mean. I'm not very familiar with the Timewrap app as I haven't used it myself, but from looking at the images of the app on apps.splunk.com, you want to change the order of the legend on the right side?

0 Karma

DaveAsh
Engager

Thank you ppablo, While I tried reverse it doesn't do what I need. It does reverse the week, but the lay out is still the same. Lets say the colors returned from timewrap are blue-this week, yellow-last week, red-2 weeks ago, purple-3 weeks ago. I would like the results to be purple-3 weeks ago, red-2 weeks ago, yellow- last week, and blue- this week. Just changing the order of the weeks.

Does that make any better sense? Thanks.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...