<?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: Not seeing any results with strftime in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-Not-seeing-any-results-with-strftime/m-p/656120#M226616</link>
    <description>&lt;P&gt;Thank you very much for the quick help, that did the trick.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Aug 2023 14:35:37 GMT</pubDate>
    <dc:creator>mninansplunk</dc:creator>
    <dc:date>2023-08-30T14:35:37Z</dc:date>
    <item>
      <title>Why am I Not seeing any results with strftime?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-Not-seeing-any-results-with-strftime/m-p/656108#M226613</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;I am going crazy trying to figure out why this isn't working.&amp;nbsp; I have a field called "alert.createdAt" that contains an EPOCH time.&amp;nbsp; (&lt;SPAN&gt;1693398386408).&amp;nbsp; I need to convert this to be Human Readable (08/30/2023 09:26:47).&amp;nbsp; However, when using the strftime, I don't see anything being returned.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My Search is:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SEARCH&amp;nbsp;| eval c_time=strftime (alert.createdAt,"%m-%d-%Y %H:%M:%S") | table c_time&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have been going thru all of the previous solutions I could find, but I can't seem to get this to work.&amp;nbsp; Is there another way to achieve this, or am I just way off on how I am trying to do this. : )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thanks for any help, much appreciated&lt;/P&gt;
&lt;P&gt;Tom&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 16:33:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-Not-seeing-any-results-with-strftime/m-p/656108#M226613</guid>
      <dc:creator>mninansplunk</dc:creator>
      <dc:date>2023-08-30T16:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Not seeing any results with strftime</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-Not-seeing-any-results-with-strftime/m-p/656115#M226615</link>
      <description>&lt;P&gt;Field names with special characters such as dots (.) need to be referenced in single quotes, plus it looks like you time value is in milliseconds not seconds (used by epoch time). Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| fields - _time
| eval alert.createdAt=1693398386408
| eval c_time=strftime ('alert.createdAt'/1000,"%m-%d-%Y %H:%M:%S.%3N")
| table c_time&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 30 Aug 2023 13:58:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-Not-seeing-any-results-with-strftime/m-p/656115#M226615</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-30T13:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Not seeing any results with strftime</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-Not-seeing-any-results-with-strftime/m-p/656120#M226616</link>
      <description>&lt;P&gt;Thank you very much for the quick help, that did the trick.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 14:35:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-Not-seeing-any-results-with-strftime/m-p/656120#M226616</guid>
      <dc:creator>mninansplunk</dc:creator>
      <dc:date>2023-08-30T14:35:37Z</dc:date>
    </item>
  </channel>
</rss>

