Splunk Search

Comparing Today's & Yesterday's data, why is it showing the same date for both sets of data when we hover over the graph?

harish_ka
Communicator

I have tried to show the data comparison of yesterday with today. It shows correctly, but the date it shows when we hover on the graph is wrong.
It shows the same date for both today & yesterday graph.
alt text
Is there any way to fix this or to ignore the Date when we hover??
Please help me to fix this.

I have used eval new_time=_time+86400 to match today's time...

0 Karma

jeffland
SplunkTrust
SplunkTrust

Because you asked "Is there any way to ignore the Date when we hover": yes, there is. Place a .css file in

your_app_name/appserver/static

and give it this content

div > span > table > tbody > tr:nth-child(1) > td {
    display: none;
}

Restart splunk, and include the .css file in your dashboard (add stylesheet="your_css.css" to the first tag). That should take care of your dates, but it might also remove labels from other charts. If you find it doesn't work as expected, you might need to change the way this element is addressed to be more specific to the chart you want this to work on.

0 Karma

lguinn2
Legend

The only way to get today and yesterday to overlap on the same timeline is to adjust the time. Once you have done that, yesterday's data will have the same date.

There isn't any easy way around this that I know of. You might try the timewrap app; it's free and makes these kinds of graphs very simple.

0 Karma

harish_ka
Communicator

Thanks for your comments @lguinn.
But i cant use any apps.
So we dont have a solution for this rather than using timewrap app??

0 Karma

lguinn2
Legend

The "problem" is that there is only 1 X-axis on the chart - there can't be two timelines at once. I don't believe that there is any way to have multiples - so that is correct.

And the timewrap app just makes these kinds of comparisons easier; I don't think that it creates more than one X-axis either.

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...