<?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: Multiple time format in the same field in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Multiple-time-format-in-the-same-field/m-p/543413#M37262</link>
    <description>&lt;P&gt;Did you wanted Date field values in "&lt;SPAN&gt;%Y%m%d&lt;/SPAN&gt;" OR in epoch format?&lt;/P&gt;</description>
    <pubDate>Thu, 11 Mar 2021 15:42:17 GMT</pubDate>
    <dc:creator>manjunathmeti</dc:creator>
    <dc:date>2021-03-11T15:42:17Z</dc:date>
    <item>
      <title>Multiple time format in the same field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Multiple-time-format-in-the-same-field/m-p/543365#M37254</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a field which contains epoch date and date time like %Y%m%d :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mah_0-1615469377850.png" style="width: 200px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13268i090D8E64525E2DA3/image-size/small?v=v2&amp;amp;px=200" role="button" title="mah_0-1615469377850.png" alt="mah_0-1615469377850.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;mah_0-1615469377850.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want this format %Y%m%d for all values in "date" field.&lt;/P&gt;&lt;P&gt;How can I convert epoch to date like&amp;nbsp;%Y%m%d in this field ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 13:36:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Multiple-time-format-in-the-same-field/m-p/543365#M37254</guid>
      <dc:creator>mah</dc:creator>
      <dc:date>2021-03-11T13:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple time format in the same field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Multiple-time-format-in-the-same-field/m-p/543369#M37255</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222120"&gt;@mah&lt;/a&gt;,&lt;BR /&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval date=if(match(date, "\d{4}\-\d{2}\-\d{2}"), replace(date, "-", ""), strftime(date, "%Y%m%d"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this reply helps you, an upvote/like would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 14:11:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Multiple-time-format-in-the-same-field/m-p/543369#M37255</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-03-11T14:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple time format in the same field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Multiple-time-format-in-the-same-field/m-p/543408#M37261</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129090"&gt;@manjunathmeti&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried your solution and it gave me this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mah_0-1615476507681.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13274i85BA81B92AC69E93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mah_0-1615476507681.png" alt="mah_0-1615476507681.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;mah_0-1615476507681.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;20210201 = 22-08-1970 : there is a problem ...&lt;/P&gt;&lt;P&gt;I tried another command :&amp;nbsp;&lt;/P&gt;&lt;P&gt;| convert timeformat="%Y-%m-%d" mktime("date")&lt;/P&gt;&lt;P&gt;and thant's worked ! All values in %Y-%m-%d format are converted to epoch time !&lt;/P&gt;&lt;P&gt;Thanks for your help !&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 15:32:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Multiple-time-format-in-the-same-field/m-p/543408#M37261</guid>
      <dc:creator>mah</dc:creator>
      <dc:date>2021-03-11T15:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple time format in the same field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Multiple-time-format-in-the-same-field/m-p/543413#M37262</link>
      <description>&lt;P&gt;Did you wanted Date field values in "&lt;SPAN&gt;%Y%m%d&lt;/SPAN&gt;" OR in epoch format?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 15:42:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Multiple-time-format-in-the-same-field/m-p/543413#M37262</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-03-11T15:42:17Z</dc:date>
    </item>
  </channel>
</rss>

