<?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: how to convert UTC time into mmddyy format in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-convert-UTC-time-into-mmddyy-format/m-p/689867#M235028</link>
    <description>&lt;P&gt;Unsure what format "time" is in for you.&lt;/P&gt;&lt;P&gt;You could try converting "time" into unix time (assuming it is populating differently from "_time"), and then converting it back into readable_time:&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;| eval time=&lt;/SPAN&gt;&lt;SPAN&gt;(time, "%H:%M") (this may vary on its current format)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;| eval readable_time = strftime(_time, "%m/%d/%Y")&lt;BR /&gt;&lt;BR /&gt;be sure not&amp;nbsp; to confuse "time" and "_time"&lt;BR /&gt;_time is by default in unix time.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/SCS/current/SearchReference/DateandTimeFunctions" target="_blank"&gt;https://docs.splunk.com/Documentation/SCS/current/SearchReference/DateandTimeFunctions&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If this helped, karma is appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2024 18:48:53 GMT</pubDate>
    <dc:creator>antoniolamonica</dc:creator>
    <dc:date>2024-06-06T18:48:53Z</dc:date>
    <item>
      <title>how to convert UTC time into mmddyy format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-convert-UTC-time-into-mmddyy-format/m-p/689860#M235026</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to convert UTC time into mmddyy format.&lt;/P&gt;&lt;P&gt;I tried this query for search&lt;/P&gt;&lt;P&gt;| makeresults&lt;BR /&gt;| eval time&lt;BR /&gt;| eval readable_time = strftime(strptime(tostring(time/1000), "%s"), "%m%d%y")&lt;BR /&gt;| table time, readable_time&lt;/P&gt;&lt;P&gt;The time format is&amp;nbsp;&lt;SPAN class=""&gt;time&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;1717690912746&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 17:04:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-convert-UTC-time-into-mmddyy-format/m-p/689860#M235026</guid>
      <dc:creator>mtidke</dc:creator>
      <dc:date>2024-06-06T17:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert UTC time into mmddyy format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-convert-UTC-time-into-mmddyy-format/m-p/689861#M235027</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults
| eval time=1717690912746
| eval readable_time = strftime(time,"%m/%d/%y %H:%M:%S")
| table time, readable_time&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Jun 2024 17:30:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-convert-UTC-time-into-mmddyy-format/m-p/689861#M235027</guid>
      <dc:creator>deepakc</dc:creator>
      <dc:date>2024-06-06T17:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert UTC time into mmddyy format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-convert-UTC-time-into-mmddyy-format/m-p/689867#M235028</link>
      <description>&lt;P&gt;Unsure what format "time" is in for you.&lt;/P&gt;&lt;P&gt;You could try converting "time" into unix time (assuming it is populating differently from "_time"), and then converting it back into readable_time:&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;| eval time=&lt;/SPAN&gt;&lt;SPAN&gt;(time, "%H:%M") (this may vary on its current format)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;| eval readable_time = strftime(_time, "%m/%d/%Y")&lt;BR /&gt;&lt;BR /&gt;be sure not&amp;nbsp; to confuse "time" and "_time"&lt;BR /&gt;_time is by default in unix time.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/SCS/current/SearchReference/DateandTimeFunctions" target="_blank"&gt;https://docs.splunk.com/Documentation/SCS/current/SearchReference/DateandTimeFunctions&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If this helped, karma is appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 18:48:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-convert-UTC-time-into-mmddyy-format/m-p/689867#M235028</guid>
      <dc:creator>antoniolamonica</dc:creator>
      <dc:date>2024-06-06T18:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert UTC time into mmddyy format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-convert-UTC-time-into-mmddyy-format/m-p/689903#M235037</link>
      <description>&lt;P&gt;I do not get the question. &amp;nbsp;Except that you need to put that value into eval, the search does give you 060624. &amp;nbsp;Isn't this what you are looking for? &amp;nbsp;What is the question?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval time=1717690912746
| eval readable_time = strftime(strptime(tostring(time/1000), "%s"), "%m%d%y")
| table time, readable_time&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I get&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;time&lt;/TD&gt;&lt;TD&gt;readable_time&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1717690912746&lt;/TD&gt;&lt;TD&gt;060624&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2024-06-06 at 10.04.06 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31201i021886C6332729D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2024-06-06 at 10.04.06 PM.png" alt="Screen Shot 2024-06-06 at 10.04.06 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 05:09:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-convert-UTC-time-into-mmddyy-format/m-p/689903#M235037</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-06-07T05:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert UTC time into mmddyy format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-convert-UTC-time-into-mmddyy-format/m-p/689960#M235049</link>
      <description>&lt;P&gt;I tried this but got an error&lt;/P&gt;&lt;P&gt;Error in 'EvalCommand': Failed to parse the provided arguments. Usage: eval dest_key = expression.&lt;BR /&gt;The search job has failed due to an error. You may be able view the job in the&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 11:29:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-convert-UTC-time-into-mmddyy-format/m-p/689960#M235049</guid>
      <dc:creator>mtidke</dc:creator>
      <dc:date>2024-06-07T11:29:15Z</dc:date>
    </item>
  </channel>
</rss>

