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!

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What’s New & Next in Splunk SOAR

 Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us for an ...