Splunk Dev

How to create a display with two dates, one being today's date and the other being the previous working day?

jwilliams1
Engager

Hi there,

I'm currently building a dashboard and need to display two dates, one being today's date and the other being the previous working day.

I use the query below for today's date

 <query> index=main | head 1 | eval Date = strftime(_time,"%d/%m/%Y") | fields Date</query>


Could you help me with the query to display the previous working day.

Many thanks!

Janine

0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

could you describe your real issue why you try to get those two days? That way we could propose the whole solution to you.

r. Ismo

0 Karma

PaulPanther
Builder

Do you wanna use these both dates as a timepicker input or do you just wanna display both dates in one or two panels?

One way could be:

| makeresults count=1
| eval _time=(_time - 86400)
0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

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, ...