<?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: Converting Epoch Time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Convert-Epoch-Time/m-p/636044#M220942</link>
    <description>&lt;P&gt;This works for me:&amp;nbsp;&lt;SPAN&gt;| eval time = strftime(time, "%c")&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 26 Mar 2023 11:39:55 GMT</pubDate>
    <dc:creator>sxpati2</dc:creator>
    <dc:date>2023-03-26T11:39:55Z</dc:date>
    <item>
      <title>How to Convert Epoch Time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Convert-Epoch-Time/m-p/468711#M131967</link>
      <description>&lt;P&gt;I'm running the below query to find out when was the last time an index checked in. However, in using this query the output reflects a time format that is in EPOC format. I'd like to convert it to a standard month/day/year format. Any help is appreciated. Thank you.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| tstats latest(_time) WHERE index=* BY index&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 27 Mar 2023 03:08:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Convert-Epoch-Time/m-p/468711#M131967</guid>
      <dc:creator>itsmevic</dc:creator>
      <dc:date>2023-03-27T03:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Epoch Time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Convert-Epoch-Time/m-p/468712#M131968</link>
      <description>&lt;P&gt;There are several ways to do that.&lt;/P&gt;

&lt;P&gt;Start with &lt;CODE&gt;| tstats latest(_time) as time WHERE index=* BY index&lt;/CODE&gt; then add your choice of&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| eval time = strftime(time, "%c")&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| convert ctime(time)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| fieldformat time = strftime(time, "%c")&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 00:09:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Convert-Epoch-Time/m-p/468712#M131968</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-06T00:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Epoch Time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Convert-Epoch-Time/m-p/468713#M131969</link>
      <description>&lt;P&gt;see &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Commontimeformatvariables"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Commontimeformatvariables&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;month/day/year&lt;/EM&gt; format is &lt;CODE&gt;%x&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;but &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats latest(_time) as _time WHERE index=* BY index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is enough.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 00:18:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Convert-Epoch-Time/m-p/468713#M131969</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-06T00:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Epoch Time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Convert-Epoch-Time/m-p/468714#M131970</link>
      <description>&lt;P&gt;Using the following worked:&lt;/P&gt;

&lt;P&gt;| tstats latest(_time) as time WHERE index=* BY index&lt;BR /&gt;
| eval time=strftime(time, "%c")&lt;/P&gt;

&lt;P&gt;Thank you! &lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 00:27:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Convert-Epoch-Time/m-p/468714#M131970</guid>
      <dc:creator>itsmevic</dc:creator>
      <dc:date>2020-04-06T00:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Epoch Time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Convert-Epoch-Time/m-p/636044#M220942</link>
      <description>&lt;P&gt;This works for me:&amp;nbsp;&lt;SPAN&gt;| eval time = strftime(time, "%c")&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Mar 2023 11:39:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Convert-Epoch-Time/m-p/636044#M220942</guid>
      <dc:creator>sxpati2</dc:creator>
      <dc:date>2023-03-26T11:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Epoch Time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Convert-Epoch-Time/m-p/636045#M220943</link>
      <description>&lt;P&gt;index=prd* /inf/bnkng/evnt/arrngmntorigevnt/consumr/mrtgeorig/v1/submissions/*/applications/submissionView "includeHomeInsuranceDetails=Y" ssl_client_verify= SUCCESS|table request, time|eval time = strftime(time, "%c")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;GET /inf/bnkng/evnt/arrngmntorigevnt/consumr/mrtgeorig/v1/submissions/SUB501460231068589/applications/submissionView?brandSilo=ANZYU&amp;amp;includeHomeInsuranceDetails=Y HTTP/1.1&lt;/TD&gt;&lt;TD&gt;Sun Mar 26 08:09:28 2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;GET /inf/bnkng/evnt/arrngmntorigevnt/consumr/mrtgeorig/v1/submissions/SUB503765231068589/applications/submissionView?brandSilo=ANZYD&amp;amp;includeHomeInsuranceDetails=Y HTTP/1.1&lt;/TD&gt;&lt;TD&gt;Sun Mar 26 08:28:09 2023&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Mar 2023 11:45:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Convert-Epoch-Time/m-p/636045#M220943</guid>
      <dc:creator>sxpati2</dc:creator>
      <dc:date>2023-03-26T11:45:47Z</dc:date>
    </item>
  </channel>
</rss>

