<?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: Is my search correctly using the bucket command in order to detect brute force attempts against multiple destinations? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-my-search-correctly-using-the-bucket-command-in-order-to/m-p/309727#M92927</link>
    <description>&lt;P&gt;Ok that makes sense, slightly confused though, is Dal's ...by Source_Device needed as well? And would this go in an additional | stats search?&lt;/P&gt;

&lt;P&gt;Sorry, new to Splunk. Slowly getting there.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2017 16:18:55 GMT</pubDate>
    <dc:creator>jacqu3sy</dc:creator>
    <dc:date>2017-02-17T16:18:55Z</dc:date>
    <item>
      <title>Is my search correctly using the bucket command in order to detect brute force attempts against multiple destinations?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-my-search-correctly-using-the-bucket-command-in-order-to/m-p/309720#M92920</link>
      <description>&lt;P&gt;I have the following search and I'm not certain it's producing the correct results. The idea is to use it to detect brute force attempts whereby 1 source device attempts to connect to multiple destinations over a 1 second period making use of the Authentication datamodel, specifically for failed logins.&lt;/P&gt;

&lt;P&gt;Current search looks as follows;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats `summariesonly` count from datamodel=Authentication where nodename=Authentication.Failed_Authentication  Authentication.app!="win:unknown" by "Authentication.src","Authentication.dest" | rename "Authentication.src" as "Source_Device" | bucket _time span=1s | stats dc("Authentication.dest") as Destination_Device by Source_Device | where Destination_Device &amp;gt; 20
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I'm not certain it's producing results of failed connections over a period of time, say 30 days, or the results were all failed login attempts carried out over a 1 second period as per the use of the &lt;CODE&gt;bucket _time span=1s&lt;/CODE&gt; statement. The idea is to make the search into an alert to detect brute force attacks against multiple destinations.&lt;/P&gt;

&lt;P&gt;Any thoughts?&lt;/P&gt;

&lt;P&gt;Many thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 14:14:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-my-search-correctly-using-the-bucket-command-in-order-to/m-p/309720#M92920</guid>
      <dc:creator>jacqu3sy</dc:creator>
      <dc:date>2017-02-17T14:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is my search correctly using the bucket command in order to detect brute force attempts against multiple destinations?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-my-search-correctly-using-the-bucket-command-in-order-to/m-p/309721#M92921</link>
      <description>&lt;P&gt;Have you looked at the events to confirm you have some instances where there were 20 attempts to different machines from the same source host within the same second?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 14:22:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-my-search-correctly-using-the-bucket-command-in-order-to/m-p/309721#M92921</guid>
      <dc:creator>jpolcari</dc:creator>
      <dc:date>2017-02-17T14:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is my search correctly using the bucket command in order to detect brute force attempts against multiple destinations?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-my-search-correctly-using-the-bucket-command-in-order-to/m-p/309722#M92922</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Updated&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats summariesonly values("Authentication.dest") as Destination_Device from datamodel=Authentication where nodename=Authentication.Failed_Authentication Authentication.app!="win:unknown" by "Authentication.src" _time span=1s| rename "Authentication.src" as "Source_Device"  | where Destination_Device &amp;gt; 20
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Feb 2017 14:22:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-my-search-correctly-using-the-bucket-command-in-order-to/m-p/309722#M92922</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-02-17T14:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is my search correctly using the bucket command in order to detect brute force attempts against multiple destinations?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-my-search-correctly-using-the-bucket-command-in-order-to/m-p/309723#M92923</link>
      <description>&lt;P&gt;Don't you need &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...by Source_Device _time ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in the final stats command?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 15:22:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-my-search-correctly-using-the-bucket-command-in-order-to/m-p/309723#M92923</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-02-17T15:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is my search correctly using the bucket command in order to detect brute force attempts against multiple destinations?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-my-search-correctly-using-the-bucket-command-in-order-to/m-p/309724#M92924</link>
      <description>&lt;P&gt;Thanks Dal. Yes I do. In fact that gave me an idea to avoid the send stats all together.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 15:35:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-my-search-correctly-using-the-bucket-command-in-order-to/m-p/309724#M92924</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-02-17T15:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is my search correctly using the bucket command in order to detect brute force attempts against multiple destinations?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-my-search-correctly-using-the-bucket-command-in-order-to/m-p/309725#M92925</link>
      <description>&lt;P&gt;so ditch the 'bucket' altogether?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 15:43:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-my-search-correctly-using-the-bucket-command-in-order-to/m-p/309725#M92925</guid>
      <dc:creator>jacqu3sy</dc:creator>
      <dc:date>2017-02-17T15:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is my search correctly using the bucket command in order to detect brute force attempts against multiple destinations?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-my-search-correctly-using-the-bucket-command-in-order-to/m-p/309726#M92926</link>
      <description>&lt;P&gt;The bucketing is happening as part of tstats command itself (include _time in the by clause and a span at the end of the tstats).&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 15:47:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-my-search-correctly-using-the-bucket-command-in-order-to/m-p/309726#M92926</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-02-17T15:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is my search correctly using the bucket command in order to detect brute force attempts against multiple destinations?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-my-search-correctly-using-the-bucket-command-in-order-to/m-p/309727#M92927</link>
      <description>&lt;P&gt;Ok that makes sense, slightly confused though, is Dal's ...by Source_Device needed as well? And would this go in an additional | stats search?&lt;/P&gt;

&lt;P&gt;Sorry, new to Splunk. Slowly getting there.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 16:18:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-my-search-correctly-using-the-bucket-command-in-order-to/m-p/309727#M92927</guid>
      <dc:creator>jacqu3sy</dc:creator>
      <dc:date>2017-02-17T16:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is my search correctly using the bucket command in order to detect brute force attempts against multiple destinations?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-my-search-correctly-using-the-bucket-command-in-order-to/m-p/309728#M92928</link>
      <description>&lt;P&gt;In general, you fetch required events in base search (anything before first pipe) and then you aggregate the results using stats/timechart or any other similar command. Whereas, tstats is a special command which let you do both, fetching and aggregation, in the same command itself. Since you were doing a simple stats, with bucketing based on _time, I was able to bundle that as single tstats command. I would check the results (without where clause) first and then add more aggragation, if required.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 16:25:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-my-search-correctly-using-the-bucket-command-in-order-to/m-p/309728#M92928</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-02-17T16:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is my search correctly using the bucket command in order to detect brute force attempts against multiple destinations?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-my-search-correctly-using-the-bucket-command-in-order-to/m-p/309729#M92929</link>
      <description>&lt;P&gt;Awesome. Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 16:46:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-my-search-correctly-using-the-bucket-command-in-order-to/m-p/309729#M92929</guid>
      <dc:creator>jacqu3sy</dc:creator>
      <dc:date>2017-02-17T16:46:09Z</dc:date>
    </item>
  </channel>
</rss>

