Splunk Search

timechart of 2 ranges doesn't show old time when hovering over line

nirt
Path Finder

Hi,
I have created a timechart of 2 time ranges:

index="XXXX" host="XXXX" earliest=-0w@w latest=+1w@w XXXX | eval ReportKey="XXX today" | append maxtime=100 [ search index="XXXX" host="XXX" XXXX earliest=-1w@w latest=-0w@w | eval ReportKey="XXX last week" | eval new_time=_time+86400*7+1800] | eval _time=if(isnotnull(new_time), new_time, _time) | timechart span=1h max(number) by ReportKey

The graph is created properly however when I hover over the last week line, it says the date of today and not the date of last week
Is there any way to fix this? is my syntax is not correct?

Thanks

Tags (1)
0 Karma
1 Solution

johandk
Path Finder

It will always show the date/time of your primary search. Not the subsearch. Splunk has no built in support for plotting against multiple axis.

View solution in original post

0 Karma

johandk
Path Finder

It will always show the date/time of your primary search. Not the subsearch. Splunk has no built in support for plotting against multiple axis.

0 Karma

johandk
Path Finder

Always a pleasure. Btw. if you need more advanced charting and graphing features the only viable option is to extract data via the REST API and build it yourself. Exactly what I'm doing.

0 Karma

nirt
Path Finder

Thanks for the quick info

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...