<?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 How to Display Each Event of User with &amp;quot;X&amp;quot; Number of Failed Logins in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Display-Each-Event-of-User-with-quot-X-quot-Number-of/m-p/302765#M174970</link>
    <description>&lt;P&gt;Good morning,&lt;/P&gt;

&lt;P&gt;I have the following search:&lt;/P&gt;

&lt;P&gt;index=[my index] source=[my source] sourcetype=[my sourcetype] event=login_fail|stats count as Count values(event) as Event values(ip) as "IP Address" values(url_60) as "URL" by user| where Count &amp;gt; 5|sort -Count|rename user as User&lt;/P&gt;

&lt;P&gt;Right now it displays a summary of the events.  What I'd really like to do is determine every user that had more than five failed logins and display each event on a separate line.  I'll add a timestamp as well to the alert/events.  Any advice would be appreciated.  Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:27:51 GMT</pubDate>
    <dc:creator>SplunkLunk</dc:creator>
    <dc:date>2020-09-29T13:27:51Z</dc:date>
    <item>
      <title>How to Display Each Event of User with "X" Number of Failed Logins</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Display-Each-Event-of-User-with-quot-X-quot-Number-of/m-p/302765#M174970</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;

&lt;P&gt;I have the following search:&lt;/P&gt;

&lt;P&gt;index=[my index] source=[my source] sourcetype=[my sourcetype] event=login_fail|stats count as Count values(event) as Event values(ip) as "IP Address" values(url_60) as "URL" by user| where Count &amp;gt; 5|sort -Count|rename user as User&lt;/P&gt;

&lt;P&gt;Right now it displays a summary of the events.  What I'd really like to do is determine every user that had more than five failed logins and display each event on a separate line.  I'll add a timestamp as well to the alert/events.  Any advice would be appreciated.  Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:27:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Display-Each-Event-of-User-with-quot-X-quot-Number-of/m-p/302765#M174970</guid>
      <dc:creator>SplunkLunk</dc:creator>
      <dc:date>2020-09-29T13:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Display Each Event of User with "X" Number of Failed Logins</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Display-Each-Event-of-User-with-quot-X-quot-Number-of/m-p/302766#M174971</link>
      <description>&lt;P&gt;Try like this. Using eventstats instead of stats( which does the aggregation) so that all actual events are retained. You probably would need to include appropriate table command in case you want a table visualization else, you could use Event visualization with following&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=[my index] source=[my source] sourcetype=[my sourcetype] event=login_fail|eventstats count as Count by user| where Count &amp;gt; 5|sort -Count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Apr 2017 15:48:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Display-Each-Event-of-User-with-quot-X-quot-Number-of/m-p/302766#M174971</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-04-05T15:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Display Each Event of User with "X" Number of Failed Logins</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Display-Each-Event-of-User-with-quot-X-quot-Number-of/m-p/302767#M174972</link>
      <description>&lt;P&gt;Thank you.  That looks like what I need.  Much appreciated.  I did not know about the eventstats command.  Makes sense given them name.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 15:54:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Display-Each-Event-of-User-with-quot-X-quot-Number-of/m-p/302767#M174972</guid>
      <dc:creator>SplunkLunk</dc:creator>
      <dc:date>2017-04-05T15:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Display Each Event of User with "X" Number of Failed Logins</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Display-Each-Event-of-User-with-quot-X-quot-Number-of/m-p/302768#M174973</link>
      <description>&lt;P&gt;We could do this with &lt;CODE&gt;eventstats&lt;/CODE&gt; and show the raw events but I think the problem that you really have is that you are using &lt;CODE&gt;values(event)&lt;/CODE&gt; instead of &lt;CODE&gt;list(_raw)&lt;/CODE&gt;; try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=[my index] source=[my source] sourcetype=[my sourcetype] event=login_fail
| stats count AS Count list(_raw) AS Events values(ip) AS IPs values(url_60) AS "URL" BY user
| where Count &amp;gt; 5|sort -Count|rename user as User
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Apr 2017 15:56:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Display-Each-Event-of-User-with-quot-X-quot-Number-of/m-p/302768#M174973</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-04-05T15:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Display Each Event of User with "X" Number of Failed Logins</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Display-Each-Event-of-User-with-quot-X-quot-Number-of/m-p/302769#M174974</link>
      <description>&lt;P&gt;This appears to give me all the failed_login events for the day, not just any user greater than five.   I cut and paste your suggestion to make sure I wasn't making a typo.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 16:09:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Display-Each-Event-of-User-with-quot-X-quot-Number-of/m-p/302769#M174974</guid>
      <dc:creator>SplunkLunk</dc:creator>
      <dc:date>2017-04-05T16:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to Display Each Event of User with "X" Number of Failed Logins</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Display-Each-Event-of-User-with-quot-X-quot-Number-of/m-p/302770#M174975</link>
      <description>&lt;P&gt;That seems impossible; the &lt;CODE&gt;| where Count &amp;gt; 5&lt;/CODE&gt; will unquestionably limit the ending result set.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 18:36:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Display-Each-Event-of-User-with-quot-X-quot-Number-of/m-p/302770#M174975</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-04-05T18:36:06Z</dc:date>
    </item>
  </channel>
</rss>

