Dashboards & Visualizations

compare two weeks data by using timechart

Allampally
Path Finder

Hi Experts,

I want to compare two weeks data by keeping week1 count in row1 and week2 count in row2.
Eg. index=* vip="abc.com:9001" | timechart span=1w count by user
My desired output should be

**_time             user1            user2             user3**   
**07/11/2018           10               20                30
  07/18/2018           50               60                70**
Tags (1)
0 Karma

woodcock
Esteemed Legend

Like this:

index=* vip="abc.com:9001" earliest=-2w@d latest=@d | timechart span=1w count BY user
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Open the time range picker, go to advanced, use -2w@d and @d to search the past two weeks, snapped to midnight. Adjust if you want whole weeks, e.g. snapped to start of Monday: -2w@w1 and @w1.

0 Karma

janispelss
Path Finder

If you select the right time range, your query should work. Is it not giving you the correct output?

0 Karma

Allampally
Path Finder

I can select time range only either first week or second week but not combinely both. I want the results for 1st week and 2nd week in two different rows

0 Karma
Get Updates on the Splunk Community!

Splunk Enterprise Security(ES) 7.3 is approaching the end of support. Get ready for ...

Hi friends!    At Splunk, your product success is our top priority. With Enterprise Security (ES), we're here ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...