Getting Data In

How can I have the query show just Year-Month-Day and remove the rest of what is showing above?

queryboy
Explorer

I am creating a dashboard for reporting and one of the values of my search is called 'start date' when I check the column of 'start date' in the Search app it shows the date format like this 2022-07-10 which is what I want.

 

When I put the Query into a Splunk dashboard the field value shows like this for all values in the column.

2022-07-10t18:00:00-06:00

Question: How can I have the query show just Year-Month-Day and remove the rest of what is showing above?

 

Labels (1)
0 Karma

johnhuang
Motivator

Assuming the fieldname is "start date":

| eval "start date"=SUBSTR('start date', 0, 10)

 

Get Updates on the Splunk Community!

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

New Release | Splunk Cloud Platform 10.1.2507

Hello Splunk Community!We are thrilled to announce the General Availability of Splunk Cloud Platform 10.1.2507 ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

🗣 You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...