<?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: Strptime() Eval command returning empty in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Strptime-Eval-command-returning-empty/m-p/667490#M228981</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249621"&gt;@olawalePS&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;dot is a special char and sometimes requires the quotes or the rename.&lt;/P&gt;&lt;P&gt;Anyway,&amp;nbsp;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2023 11:20:33 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-11-06T11:20:33Z</dc:date>
    <item>
      <title>Strptime() Eval command returning empty</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Strptime-Eval-command-returning-empty/m-p/667486#M228978</link>
      <description>&lt;P&gt;What is wrong with the query below, it does not return any value in the timestamp field. The attached image shows a result sample&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="jamf" sourcetype="jssUapiComputer:computerGeneral"
| dedup computer_meta.serial
| eval timestamp = strptime(computerGeneral.lastEnrolledDate, "%Y-%m-%dT%H:%M:%S.%3QZ")
| eval sixtyDaysAgo = relative_time(now(), "-60d") 
| table computer_meta.name, computerGeneral.lastEnrolledDate,timestamp, sixtyDaysAgo&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-06 at 11.54.31.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27953iFB9D297D0081380B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-11-06 at 11.54.31.png" alt="Screenshot 2023-11-06 at 11.54.31.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Screenshot 2023-11-06 at 11.54.31.png&lt;/span&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 10:59:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Strptime-Eval-command-returning-empty/m-p/667486#M228978</guid>
      <dc:creator>olawalePS</dc:creator>
      <dc:date>2023-11-06T10:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Strptime() Eval command returning empty</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Strptime-Eval-command-returning-empty/m-p/667487#M228979</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249621"&gt;@olawalePS&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;try to rename the field:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="jamf" sourcetype="jssUapiComputer:computerGeneral"
| dedup computer_meta.serial
| rename computerGeneral.lastEnrolledDate AS lastEnrolledDate
| eval timestamp = strptime(lastEnrolledDate, "%Y-%m-%dT%H:%M:%S.%3QZ")
| eval sixtyDaysAgo = relative_time(now(), "-60d") 
| table computer_meta.name, lastEnrolledDate,timestamp, sixtyDaysAgo&lt;/LI-CODE&gt;&lt;P&gt;or using quotes (').&lt;/P&gt;&lt;P&gt;ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 11:03:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Strptime-Eval-command-returning-empty/m-p/667487#M228979</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-11-06T11:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Strptime() Eval command returning empty</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Strptime-Eval-command-returning-empty/m-p/667489#M228980</link>
      <description>&lt;P&gt;Thanks, it works, but do you know why it did not work previously, there is no space in the "computerGeneral.lastEnrolledDate" field&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 11:17:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Strptime-Eval-command-returning-empty/m-p/667489#M228980</guid>
      <dc:creator>olawalePS</dc:creator>
      <dc:date>2023-11-06T11:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Strptime() Eval command returning empty</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Strptime-Eval-command-returning-empty/m-p/667490#M228981</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249621"&gt;@olawalePS&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;dot is a special char and sometimes requires the quotes or the rename.&lt;/P&gt;&lt;P&gt;Anyway,&amp;nbsp;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 11:20:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Strptime-Eval-command-returning-empty/m-p/667490#M228981</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-11-06T11:20:33Z</dc:date>
    </item>
  </channel>
</rss>

