Splunk Cookie Policy

We use our own and third-party cookies to provide you with a great online experience. We
also use these cookies to improve our products and services, support our marketing
campaigns, and advertise to you on our website and other websites. Some cookies may continue
to collect information after you have left our website.
Learn more (including
how to update your settings) here.

Accept License Agreements

This app is provided by a third party and your right to use the app is in accordance with the
license provided by that third-party licensor. Splunk is not responsible for any third-party
apps and does not provide any warranty or support. If you have any questions, complaints or
claims with respect to this app, please contact the licensor directly.

To install your download

For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

Timewrap

Overview

Details

This small app gives you a new, convenient search command called "timewrap" that does it all, for arbitrary time periods. Compare week-over-week, day-over-day, month-over-month, quarter-over-quarter, year-over-year, or any multiple (e.g. two week periods over two week periods).

FAQ

A: This is not an error. Timewap relies on the timeframe of the search. You are searching for a 7 day window FROM sunday. That's mon,tues,wed,thurs,fri,sat,sun. If you want to start on Sunday, end your search on Saturday @w-1.

Q: I searched for day over day for a week, but I get 8 lines charted. Why not 7?

A: If you are searching last seven 24 hour periods, which will occur on 8 days, unless you start at midnight. If snap to the start of a day, this will go away.

Q: How can I compare Wednesdays to Wednesdays?

A: Do your search as usual, and filter at the end (filtering up-front will confuse timechart):

Basically, we're using timewrap over the last 7 days, and then using addtotals and eval to calculate the average over those 7 days. We then rename fields and cut out days 3-7, because we only wanted today, yesterday, and the weekly average.

Q: What is this 'drilldown' command you threw in for nothing?

Currently in Splunk you cannot drilldown into "other" values from a "top" command. For example, if you searched for "* | top 10 host useother=t", clicking on the "other" value will try to search for "host=other"(!), which is wrong.

I added a little search command that adds a _drilldown field that does the right thing -- it will search for "host=* NOT host=VAL1 NOT host=VAL2 ... NOT host=VAL3". It works with 'top' output.

In your simplexml, you'd then say drilldown on

$row._drilldown$

This will drilldown on the _drilldown field value.

Release Notes

Version 2.4

July 23, 2014

added support for year, fixing bug.

Version 2.3

July 21, 2014

Added support for "y" year. Assumes 365 days, ignoring leap days.

Version 2.2

April 11, 2014

Added support for s (seconds). For example, an argument of "600s" will timewrap on 10minutes.

Version 2.1

Version 1.9

Dec. 24, 2013

Version 1.8

Dec. 12, 2013

Added series option to determines the naming convention of the series names: "relative" gives values like "latest_week", "1week_ago", "2weeks_ago", etc.; "short" gives short span names like "s0", "s1", "s2", etc., which are useful if you need to modify the values with further search commands; and "exact" gives convenient values like "week_of_dec01", "week_of_nov24", etc. "relative" is the default SERIES value.

Version 1.7

Dec. 10, 2013

Fixed bug where latesttime was being included, when it should have been excluded.Improved the name of the series to be more correct and clear, and convenient (no whitespace).

AppInspect Tooling

Are you a developer?

As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 50GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps and add-ons from Splunk, our partners and our community. Find an app or add-on for most any data source and user need, or simply create your own with help from our developer portal.

Splunk®, Splunk>®, Listen to Your Data®, The Engine for Machine Data®, Hunk®, Splunk Cloud™, Splunk Light™, SPL™ and Splunk MINT™ are trademarks and registered trademarks of Splunk Inc. in the United States and other countries. All other brand names, product names, or trademarks belong to their respective owners.