<?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: Windows Failed Login Top Ten count in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Failed-Login-Top-Ten-count/m-p/127597#M26229</link>
    <description>&lt;P&gt;Does the rex work if you don't use eval? If yes then you can try moving eval after rex.&lt;/P&gt;

&lt;P&gt;Another option you can try is to  that instead of eval USER, use '|rename User_Name as Account_Name | ...| stats count by Account_Name'.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 16:21:43 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2020-09-28T16:21:43Z</dc:date>
    <item>
      <title>Windows Failed Login Top Ten count</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Failed-Login-Top-Ten-count/m-p/127596#M26228</link>
      <description>&lt;P&gt;I am trying to get the top 10 Failed Login count by User.  The problem is that Windows 2008 uses "Account_Name" and Windows 2003 uses "User_Name" so I've used eval to combine the two fields but I am also using rex to go to the second instance of the Account_Name in the Windows 2008 event.  The rex expression doesn't seem to work when I throw eval in there. Below is my search string, any suggestions?&lt;/P&gt;

&lt;P&gt;source="WinEventLog:Security" EventCode="4625" OR EventCode="529" |eval USER=coalesce(Account_Name,User_Name) | rex "(?ms)Account For Which Logon Failed.+?Account Name:\s+(?&lt;SECOND_ACCOUNTNAME&gt;\V+)" |stats count by USER |sort -count |head 10&lt;/SECOND_ACCOUNTNAME&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:21:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-Failed-Login-Top-Ten-count/m-p/127596#M26228</guid>
      <dc:creator>aberdamy</dc:creator>
      <dc:date>2020-09-28T16:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Failed Login Top Ten count</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Failed-Login-Top-Ten-count/m-p/127597#M26229</link>
      <description>&lt;P&gt;Does the rex work if you don't use eval? If yes then you can try moving eval after rex.&lt;/P&gt;

&lt;P&gt;Another option you can try is to  that instead of eval USER, use '|rename User_Name as Account_Name | ...| stats count by Account_Name'.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:21:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-Failed-Login-Top-Ten-count/m-p/127597#M26229</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-28T16:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Failed Login Top Ten count</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Failed-Login-Top-Ten-count/m-p/127598#M26230</link>
      <description>&lt;P&gt;thank you for your reply, unfortunately putting |eval after rex did not work and using the rename function did not produce any results: &lt;/P&gt;

&lt;P&gt;source="WinEventLog:Security" EventCode="4625" OR EventCode="529" | rex "(?ms)Account For Which Logon Failed.+?Account Name:s+(?&lt;SECOND_ACCOUNTNAME&gt;V+)" |rename User_Name as Account_Name |stats count by USER |sort -count |head 10&lt;/SECOND_ACCOUNTNAME&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:21:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-Failed-Login-Top-Ten-count/m-p/127598#M26230</guid>
      <dc:creator>aberdamy</dc:creator>
      <dc:date>2020-09-28T16:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Failed Login Top Ten count</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Failed-Login-Top-Ten-count/m-p/127599#M26231</link>
      <description>&lt;P&gt;Sorry I miss-typed that last one, the correct search string is below.  I get results however it is missing the "4625" events.  Conversely, if I rename as User_Name it does not include the "529" events&lt;/P&gt;

&lt;P&gt;source="WinEventLog:Security" EventCode="4625" OR EventCode="529" | rex "(?ms)Account For Which Logon Failed.+?Account Name:s+(?&lt;SECOND_ACCOUNTNAME&gt;V+)" |rename User_Name as Account_Name |stats count by Account_Name |sort -count |head 10&lt;/SECOND_ACCOUNTNAME&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:21:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-Failed-Login-Top-Ten-count/m-p/127599#M26231</guid>
      <dc:creator>aberdamy</dc:creator>
      <dc:date>2020-09-28T16:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Failed Login Top Ten count</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Failed-Login-Top-Ten-count/m-p/127600#M26232</link>
      <description>&lt;P&gt;Solution:&lt;/P&gt;

&lt;P&gt;source="WinEventLog:Security" EventCode="4625" OR EventCode="529" | rex field=_raw max_match=99 "Account Name:\s+(?&lt;ACCOUNT_NAME&gt;\w+\$?)" | eval UserName=coalesce(User_Name,Account_Name) | stats count by UserName |sort -count |head 10&lt;/ACCOUNT_NAME&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:22:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-Failed-Login-Top-Ten-count/m-p/127600#M26232</guid>
      <dc:creator>aberdamy</dc:creator>
      <dc:date>2020-09-28T16:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Failed Login Top Ten count</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Failed-Login-Top-Ten-count/m-p/127601#M26233</link>
      <description>&lt;P&gt;So max=99 in rex command did it?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2014 14:19:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-Failed-Login-Top-Ten-count/m-p/127601#M26233</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-04-11T14:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Failed Login Top Ten count</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Failed-Login-Top-Ten-count/m-p/127602#M26234</link>
      <description>&lt;P&gt;yes, appears to have worked. Of course, as you can see the rex has been changed as well&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2014 14:51:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-Failed-Login-Top-Ten-count/m-p/127602#M26234</guid>
      <dc:creator>aberdamy</dc:creator>
      <dc:date>2014-04-11T14:51:31Z</dc:date>
    </item>
  </channel>
</rss>

