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 (2)
0 Karma

johnhuang
Motivator

Assuming the fieldname is "start date":

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

 

Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...