<?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: Why is my timestamp not working in Windows event logs? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-timestamp-not-working-in-Windows-event-logs/m-p/347680#M63832</link>
    <description>&lt;P&gt;The &lt;CODE&gt;stats&lt;/CODE&gt; command is only passing the count, LockedCount, user, and Account_Domain fields to downstream commands so there is no _time to display.  Try using either &lt;CODE&gt;eventstats&lt;/CODE&gt; or &lt;CODE&gt;streamstats&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Mar 2017 17:33:51 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2017-03-07T17:33:51Z</dc:date>
    <item>
      <title>Why is my timestamp not working in Windows event logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-timestamp-not-working-in-Windows-event-logs/m-p/347676#M63828</link>
      <description>&lt;P&gt;Here is my search&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=wineventlog Account_Domain=* ("EventCode=4625" OR "EventCode=4740") | stats count count(eval(EventCode=4740)) as LockedCount by user Account_Domain | search count&amp;gt;3 | eval Locked=if(LockedCount&amp;gt;1, "Yes", "No")  | table _time user count Account_Domain Locked | rename user as "User" count as "Failed Authentication Attempts" Account_Domain as "Domain"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;When I look at the log raw data, there is clearly a time stamp.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 17:09:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-timestamp-not-working-in-Windows-event-logs/m-p/347676#M63828</guid>
      <dc:creator>HCadmins</dc:creator>
      <dc:date>2017-03-07T17:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my timestamp not working in Windows event logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-timestamp-not-working-in-Windows-event-logs/m-p/347677#M63829</link>
      <description>&lt;P&gt;What is your &lt;CODE&gt;inputs.conf&lt;/CODE&gt; for this?&lt;/P&gt;

&lt;P&gt;Are your indexers using NTP?  Do you have the TZ settings correct for this input?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 17:16:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-timestamp-not-working-in-Windows-event-logs/m-p/347677#M63829</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-07T17:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my timestamp not working in Windows event logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-timestamp-not-working-in-Windows-event-logs/m-p/347678#M63830</link>
      <description>&lt;P&gt;My time zone settings are correct, as other inputs are correctly recording time.&lt;/P&gt;

&lt;P&gt;If I remove most of the search string like this&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=wineventlog Account_Domain=* | table _time&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The time shows up perfectly.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 17:24:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-timestamp-not-working-in-Windows-event-logs/m-p/347678#M63830</guid>
      <dc:creator>HCadmins</dc:creator>
      <dc:date>2017-03-07T17:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my timestamp not working in Windows event logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-timestamp-not-working-in-Windows-event-logs/m-p/347679#M63831</link>
      <description>&lt;P&gt;When I add in the | stats part is when it seems to break&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=wineventlog Account_Domain=* ("EventCode=4625" OR "EventCode=4740") | stats count count(eval(EventCode=4740)) as LockedCount by user Account_Domain | table _time&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;Shows no results&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 17:29:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-timestamp-not-working-in-Windows-event-logs/m-p/347679#M63831</guid>
      <dc:creator>HCadmins</dc:creator>
      <dc:date>2017-03-07T17:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my timestamp not working in Windows event logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-timestamp-not-working-in-Windows-event-logs/m-p/347680#M63832</link>
      <description>&lt;P&gt;The &lt;CODE&gt;stats&lt;/CODE&gt; command is only passing the count, LockedCount, user, and Account_Domain fields to downstream commands so there is no _time to display.  Try using either &lt;CODE&gt;eventstats&lt;/CODE&gt; or &lt;CODE&gt;streamstats&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 17:33:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-timestamp-not-working-in-Windows-event-logs/m-p/347680#M63832</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-03-07T17:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my timestamp not working in Windows event logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-timestamp-not-working-in-Windows-event-logs/m-p/347681#M63833</link>
      <description>&lt;P&gt;Okay, that made it work. Why is count in there twice? &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;streamstats count count(eval...)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;(I used this code snipped from another Splunk answer)&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 17:36:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-timestamp-not-working-in-Windows-event-logs/m-p/347681#M63833</guid>
      <dc:creator>HCadmins</dc:creator>
      <dc:date>2017-03-07T17:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my timestamp not working in Windows event logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-timestamp-not-working-in-Windows-event-logs/m-p/347682#M63834</link>
      <description>&lt;P&gt;The first counts all events and the second counts only those events where EventCode=4740.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 21:11:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-timestamp-not-working-in-Windows-event-logs/m-p/347682#M63834</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-03-07T21:11:36Z</dc:date>
    </item>
  </channel>
</rss>

