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!

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...