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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

A Four-Part Event Series: Full Stack Observability For the AI Era

As AI reshapes applications, infrastructure, and the way teams operate, the traditional boundaries of ...

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...