<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: In dashboard studio, how do I change time format? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-change-time-format-in-dashboard/m-p/622853#M216550</link>
    <description>&lt;P&gt;I have the same issue as well. If I ever figure it out I will post. It is a real pain!&lt;/P&gt;&lt;P&gt;Here is on post I found, but the search uses a real string:&lt;/P&gt;&lt;P&gt;| makeresults | eval field1=&lt;STRONG&gt;"2017-10-05T16:00:00Z"&lt;/STRONG&gt;&lt;BR /&gt;| eval new_field=strftime(strptime(field1,"%Y-%m-%dT%H:%M:%SZ")+28800,"%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| table new_field&lt;/P&gt;&lt;P&gt;I have yet to figure out how to apply this to something like this:&lt;/P&gt;&lt;P&gt;| eval Date = strftime(_time, "%Y-%m-%d %H:%M:%S")&lt;/P&gt;&lt;P&gt;the eval above works fine in a SimpleXML dashboard but NOT dashboard studio!&lt;/P&gt;&lt;P&gt;eholz1&lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2022 18:03:51 GMT</pubDate>
    <dc:creator>eholz1</dc:creator>
    <dc:date>2022-12-01T18:03:51Z</dc:date>
    <item>
      <title>How do I change time format in dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-change-time-format-in-dashboard/m-p/613916#M213337</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I would like to display dates in a dashboard studio table,&lt;BR /&gt;i want the format to be "%Y-%m-%d" but it is not displayed as such.&lt;BR /&gt;&lt;BR /&gt;Here is the spl excerpt:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| eval vuln_publication_date_string = strftime(normalized_publication_time,"%Y-%m-%d")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Here is the result of the search associated with the table. The type of the field is a string&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joseph_mbimbi_1-1663762858215.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21587i1CB759E31BE7E057/image-size/medium?v=v2&amp;amp;px=400" role="button" title="joseph_mbimbi_1-1663762858215.png" alt="joseph_mbimbi_1-1663762858215.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;And here the table itself. I guess it is due to the format, but i cannot change it&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joseph_mbimbi_2-1663763068899.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21588i79A9CDA2C0FE788C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="joseph_mbimbi_2-1663763068899.png" alt="joseph_mbimbi_2-1663763068899.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Does anybody have an idea how to force the format in the table ?&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 17:11:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-change-time-format-in-dashboard/m-p/613916#M213337</guid>
      <dc:creator>joseph_mbimbi</dc:creator>
      <dc:date>2023-01-18T17:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: In dashboard studio, how do I change time format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-change-time-format-in-dashboard/m-p/622853#M216550</link>
      <description>&lt;P&gt;I have the same issue as well. If I ever figure it out I will post. It is a real pain!&lt;/P&gt;&lt;P&gt;Here is on post I found, but the search uses a real string:&lt;/P&gt;&lt;P&gt;| makeresults | eval field1=&lt;STRONG&gt;"2017-10-05T16:00:00Z"&lt;/STRONG&gt;&lt;BR /&gt;| eval new_field=strftime(strptime(field1,"%Y-%m-%dT%H:%M:%SZ")+28800,"%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| table new_field&lt;/P&gt;&lt;P&gt;I have yet to figure out how to apply this to something like this:&lt;/P&gt;&lt;P&gt;| eval Date = strftime(_time, "%Y-%m-%d %H:%M:%S")&lt;/P&gt;&lt;P&gt;the eval above works fine in a SimpleXML dashboard but NOT dashboard studio!&lt;/P&gt;&lt;P&gt;eholz1&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 18:03:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-change-time-format-in-dashboard/m-p/622853#M216550</guid>
      <dc:creator>eholz1</dc:creator>
      <dc:date>2022-12-01T18:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: In dashboard studio, how do I change time format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-change-time-format-in-dashboard/m-p/622894#M216554</link>
      <description>&lt;P&gt;Finally figured it out.&lt;/P&gt;&lt;P&gt;1. select the table/fied you want to format&lt;/P&gt;&lt;P&gt;Then get in the edit mode: look for "Column Formatting", select the field you want to format,&lt;/P&gt;&lt;P&gt;and click the tip icon -&lt;/P&gt;&lt;P&gt;Display the field enter formatting:&lt;/P&gt;&lt;P&gt;Success!&lt;/P&gt;&lt;P&gt;eholz1&lt;/P&gt;&lt;P&gt;here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eholz1_0-1669924992152.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22785i039D6C3829D7A3FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="eholz1_0-1669924992152.png" alt="eholz1_0-1669924992152.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="date_format.JPG" style="width: 772px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22784iEF7C3370A5AC5FF2/image-size/large?v=v2&amp;amp;px=999" role="button" title="date_format.JPG" alt="date_format.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 20:03:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-change-time-format-in-dashboard/m-p/622894#M216554</guid>
      <dc:creator>eholz1</dc:creator>
      <dc:date>2022-12-01T20:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: In dashboard studio, how do I change time format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-change-time-format-in-dashboard/m-p/627383#M218011</link>
      <description>&lt;P&gt;I'd like to add one tip to the advice given above: Dashboard Studio will not recognize that a column is a "time" unless it's already in ISO 8601 format or some subset thereof.&amp;nbsp; It's much more strict than Splunk's forwarders and indexers! You need to use strptime()/strftime() to reformat if necessary. Then, according to the not-so-easy-to-find &lt;A href="https://splunkui.splunk.com/Packages/visualizations/?path=%2FFormatByType" target="_self"&gt;Splunk UI docs&lt;/A&gt;&amp;nbsp;you can use&amp;nbsp;&lt;A href="https://momentjs.com/docs/#/displaying/" target="_self"&gt;MomentJS formatting strings&lt;/A&gt;&amp;nbsp; as shown above.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 18:34:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-change-time-format-in-dashboard/m-p/627383#M218011</guid>
      <dc:creator>sbarnes_nj</dc:creator>
      <dc:date>2023-01-17T18:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: In dashboard studio, how do I change time format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-change-time-format-in-dashboard/m-p/627488#M218044</link>
      <description>&lt;P&gt;The links you provided in your "tip" are excellent!!&lt;/P&gt;&lt;P&gt;Thanks!! And it is really easy to format dates in a DB Studio table using the "format column" feature.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the tip,&lt;/P&gt;&lt;P&gt;eholz1&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 16:18:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-change-time-format-in-dashboard/m-p/627488#M218044</guid>
      <dc:creator>eholz1</dc:creator>
      <dc:date>2023-01-18T16:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: In dashboard studio, how do I change time format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-change-time-format-in-dashboard/m-p/691199#M235386</link>
      <description>&lt;P&gt;Using YYYY-MM-DD HH:MM:SS will yield incorrect results with the current dashboard studio version due to the overlap of Month and Minute.&lt;/P&gt;&lt;P&gt;The correct way would be to use: YYYY-MM-DD HH:mm:ss&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/111692"&gt;@sbarnes_nj&lt;/a&gt;&amp;nbsp;was correct in stating the format reference here:&amp;nbsp;&lt;A href="https://momentjs.com/docs/#/displaying/" target="_blank"&gt;https://momentjs.com/docs/#/displaying/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 18:21:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-change-time-format-in-dashboard/m-p/691199#M235386</guid>
      <dc:creator>jowenssi</dc:creator>
      <dc:date>2024-06-20T18:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change time format in dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-change-time-format-in-dashboard/m-p/710952#M240080</link>
      <description>&lt;P&gt;I signed in just to say I had this exact problem, and your question was exactly what I was looking for. Thank you. This forum post helped answer my issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="" href="https://community.splunk.com/t5/user/viewprofilepage/user-id/53924" target="_self"&gt;&lt;SPAN class=""&gt;jowenssi&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;Reply was what I was looking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 17:07:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-change-time-format-in-dashboard/m-p/710952#M240080</guid>
      <dc:creator>Abass42</dc:creator>
      <dc:date>2025-02-07T17:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: In dashboard studio, how do I change time format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-change-time-format-in-dashboard/m-p/710954#M240081</link>
      <description>&lt;P&gt;This is exactly what I was looking for. Really nice doc linked. Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 17:09:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-change-time-format-in-dashboard/m-p/710954#M240081</guid>
      <dc:creator>Abass42</dc:creator>
      <dc:date>2025-02-07T17:09:08Z</dc:date>
    </item>
  </channel>
</rss>

