<?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: How to convert GMT to EDT? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-GMT-to-EDT/m-p/325960#M60609</link>
    <description>&lt;P&gt;Give this a try&lt;BR /&gt;
&lt;STRONG&gt;Updated&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="wineventlog" host=opdc* Account_Name=*test_user EventCode=4624 
 | makemv Account_Name
 | mvexpand Account_Name
 | eval day=strftime(_time, "%d-%m-%y") 
 | join type=left src_ip 
     [ search index=ad source=addnsscan earliest=-12h@h latest=now 
     | rename data as src_ip, name as hostname
     | fields src_ip, hostname] 
 | stats earliest(_time) AS earliest by Account_Name, src_ip, hostname, day 
| eval offset=strptime("00:00Z","%H:%M%Z")-strptime("00:00EDT","%H:%M%Z")
 | eval earliest=strftime(earliest+offset,"%d/%m/%Y %H.%M.%S %Z")
| fields - offset
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 10 Apr 2018 15:05:06 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2018-04-10T15:05:06Z</dc:date>
    <item>
      <title>How to convert GMT to EDT?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-GMT-to-EDT/m-p/325959#M60608</link>
      <description>&lt;P&gt;How could I convert this GMT time to EDT?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="wineventlog" host=opdc* Account_Name=*test_user EventCode=4624 
| makemv Account_Name
| mvexpand Account_Name
| eval day=strftime(_time, "%d-%m-%y") 
| join type=left src_ip 
    [ search index=ad source=addnsscan earliest=-12h@h latest=now 
    | rename data as src_ip, name as hostname
    | fields src_ip, hostname] 
| stats earliest(_time) AS earliest by Account_Name, src_ip, hostname, day 
| eval earliest=strftime(earliest,"%d/%m/%Y %H.%M.%S %Z")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4739iED7F984E9FEFC20E/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 14:44:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-GMT-to-EDT/m-p/325959#M60608</guid>
      <dc:creator>davidcraven02</dc:creator>
      <dc:date>2018-04-10T14:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert GMT to EDT?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-GMT-to-EDT/m-p/325960#M60609</link>
      <description>&lt;P&gt;Give this a try&lt;BR /&gt;
&lt;STRONG&gt;Updated&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="wineventlog" host=opdc* Account_Name=*test_user EventCode=4624 
 | makemv Account_Name
 | mvexpand Account_Name
 | eval day=strftime(_time, "%d-%m-%y") 
 | join type=left src_ip 
     [ search index=ad source=addnsscan earliest=-12h@h latest=now 
     | rename data as src_ip, name as hostname
     | fields src_ip, hostname] 
 | stats earliest(_time) AS earliest by Account_Name, src_ip, hostname, day 
| eval offset=strptime("00:00Z","%H:%M%Z")-strptime("00:00EDT","%H:%M%Z")
 | eval earliest=strftime(earliest+offset,"%d/%m/%Y %H.%M.%S %Z")
| fields - offset
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Apr 2018 15:05:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-GMT-to-EDT/m-p/325960#M60609</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-10T15:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert GMT to EDT?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-GMT-to-EDT/m-p/325961#M60610</link>
      <description>&lt;P&gt;Thank you for this but the earliest field is blank. &lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 16:28:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-GMT-to-EDT/m-p/325961#M60610</guid>
      <dc:creator>davidcraven02</dc:creator>
      <dc:date>2018-04-10T16:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert GMT to EDT?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-GMT-to-EDT/m-p/325962#M60611</link>
      <description>&lt;P&gt;Try the updated answer. Fixed a typo in first strptime in eval for offset.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 17:44:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-GMT-to-EDT/m-p/325962#M60611</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-10T17:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert GMT to EDT?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-GMT-to-EDT/m-p/325963#M60612</link>
      <description>&lt;P&gt;Perfect thank you!!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 19:51:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-GMT-to-EDT/m-p/325963#M60612</guid>
      <dc:creator>davidcraven02</dc:creator>
      <dc:date>2018-04-10T19:51:19Z</dc:date>
    </item>
  </channel>
</rss>

