<?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: Time_format_change_procedure in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Time-format-change-procedure/m-p/368456#M6010</link>
    <description>&lt;P&gt;Yes! it's working thank you&lt;/P&gt;</description>
    <pubDate>Thu, 28 Sep 2017 10:15:24 GMT</pubDate>
    <dc:creator>abid91</dc:creator>
    <dc:date>2017-09-28T10:15:24Z</dc:date>
    <item>
      <title>Time_format_change_procedure</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Time-format-change-procedure/m-p/368452#M6006</link>
      <description>&lt;P&gt;Hi Guys,&lt;BR /&gt;
I am trying to create a use-case as " date when any single user was created in AD" it's done but I need to change time format to readable format, right now it coming like this "20170905133223.0Z" how can I convert it to as " 05-September-2017" I tried with eval command as follows but no effect in results.&lt;/P&gt;

&lt;P&gt;search:| ldapsearch domain=default search="(objectClass=user)" | table displayName,whenCreated |eval epochtime=strptime(whenCreated, "%Y %m %d %H:%M:%S") | eval desired_time=strftime(epochtime, "%d/%m/%Y")&lt;BR /&gt;
result: ABC|20170905133223.0Z&lt;BR /&gt;
&lt;STRONG&gt;desired result:&lt;/STRONG&gt; ABC|05-September-2017&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 09:39:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Time-format-change-procedure/m-p/368452#M6006</guid>
      <dc:creator>abid91</dc:creator>
      <dc:date>2017-09-28T09:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Time_format_change_procedure</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Time-format-change-procedure/m-p/368453#M6007</link>
      <description>&lt;P&gt;HI abid91,&lt;BR /&gt;
try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| ldapsearch domain=default search="(objectClass=user)" 
| eval whenCreated=strftime(strptime(whenCreated, "%Y %m %d %H:%M:%S"), "%d/%m/%Y")
| table displayName,whenCreated 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Check the original time format of whenCreated&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 09:51:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Time-format-change-procedure/m-p/368453#M6007</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-09-28T09:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Time_format_change_procedure</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Time-format-change-procedure/m-p/368454#M6008</link>
      <description>&lt;P&gt;Please check - &lt;BR /&gt;
&lt;CODE&gt;search:| ldapsearch domain=default search="(objectClass=user)" |eval epochtime=strptime(whenCreated, "%Y%m%d%H%M%S.%1N%Z") | eval desired_time=strftime(epochtime, "%d/%m/%Y") |  table displayName whenCreated desired_time&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 09:52:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Time-format-change-procedure/m-p/368454#M6008</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2017-09-28T09:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Time_format_change_procedure</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Time-format-change-procedure/m-p/368455#M6009</link>
      <description>&lt;P&gt;its showing blank values in whenCreated filed.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 10:07:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Time-format-change-procedure/m-p/368455#M6009</guid>
      <dc:creator>abid91</dc:creator>
      <dc:date>2017-09-28T10:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Time_format_change_procedure</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Time-format-change-procedure/m-p/368456#M6010</link>
      <description>&lt;P&gt;Yes! it's working thank you&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 10:15:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Time-format-change-procedure/m-p/368456#M6010</guid>
      <dc:creator>abid91</dc:creator>
      <dc:date>2017-09-28T10:15:24Z</dc:date>
    </item>
  </channel>
</rss>

