<?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: Change Time Format of ldapsearch attribute AccountExpired in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Change-Time-Format-of-ldapsearch-attribute-AccountExpired/m-p/523007#M9351</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This worked but you made two typo's. It is supposed to be&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval accountExpires = strftime(strptime(accountExpires, "%Y-%m-%dT%H:%M:%S%Z"), "%d/%m/%Y %H:%M:%S %p")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sasquatchatmars&lt;/P&gt;</description>
    <pubDate>Fri, 09 Oct 2020 09:03:07 GMT</pubDate>
    <dc:creator>Sasquatchatmars</dc:creator>
    <dc:date>2020-10-09T09:03:07Z</dc:date>
    <item>
      <title>Change Time Format of ldapsearch attribute AccountExpired</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Change-Time-Format-of-ldapsearch-attribute-AccountExpired/m-p/522968#M9346</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have been trying to make a search where i can monitor the expired user accounts. So far i have this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| ldapsearch search="(&amp;amp;(objectClass=user)(!(objectClass=computer)))" attrs="*"
| table accountExpires sAMAccountName&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is the time output. For example, in the AD the time is set to let's say 10/5/2020 12:00:00 AM and Splunk gives&amp;nbsp;&lt;SPAN&gt;2020-10-04T22:00:00Z as output. I know there Splunk gives it in UTC but we are in GMT+2. Is there a way, without modifying any settings to have the same output as in the AD?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;Sasquatchatmars&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 11:52:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Change-Time-Format-of-ldapsearch-attribute-AccountExpired/m-p/522968#M9346</guid>
      <dc:creator>Sasquatchatmars</dc:creator>
      <dc:date>2020-10-05T11:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Change Time Format of ldapsearch attribute AccountExpired</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Change-Time-Format-of-ldapsearch-attribute-AccountExpired/m-p/522993#M9348</link>
      <description>&lt;P&gt;You can change the format using strptime() and strftime() like this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval accountExpires = strftime(strptime(accountExpires, "$Y-%m-%dYT%H:%M:%S%Z"), "%d/%m/%Y %H:%M:%S %p")&lt;/LI-CODE&gt;&lt;P&gt;Splunk lacks a way to convert time zones.&amp;nbsp; You can add 2 hours to the converted time, but may still display as UTC, which would then be incorrect.&amp;nbsp; See&amp;nbsp;&lt;A href="https://ideas.splunk.com/ideas/E-I-27" target="_blank"&gt;https://ideas.splunk.com/ideas/E-I-27&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 13:00:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Change-Time-Format-of-ldapsearch-attribute-AccountExpired/m-p/522993#M9348</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-10-05T13:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Change Time Format of ldapsearch attribute AccountExpired</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Change-Time-Format-of-ldapsearch-attribute-AccountExpired/m-p/523007#M9351</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This worked but you made two typo's. It is supposed to be&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval accountExpires = strftime(strptime(accountExpires, "%Y-%m-%dT%H:%M:%S%Z"), "%d/%m/%Y %H:%M:%S %p")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sasquatchatmars&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 09:03:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Change-Time-Format-of-ldapsearch-attribute-AccountExpired/m-p/523007#M9351</guid>
      <dc:creator>Sasquatchatmars</dc:creator>
      <dc:date>2020-10-09T09:03:07Z</dc:date>
    </item>
  </channel>
</rss>

