<?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: Authentication Search Queries in Security</title>
    <link>https://community.splunk.com/t5/Security/Authentication-Search-Queries/m-p/158670#M4757</link>
    <description>&lt;P&gt;Hi If you can provide a sample data it will be very easy to help you.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;your search can look like this:
a-assuming you have a security file.
source=security_log_file failed login ted Answer
| timecart span = 30d limit =10 .......&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;b. assuming you want to have it directly from splunk:&lt;/P&gt;

&lt;P&gt;index = _audit action = failure earliest=-30d | stats values(user)  AS Users, values(action) |top limit =10 action&lt;/P&gt;

&lt;P&gt;OR&lt;BR /&gt;
index = _audit action = failure earliest =-30d|top limit=10 action&lt;/P&gt;

&lt;P&gt;2.Average number of user check outs by region.&lt;/P&gt;

&lt;P&gt;if you have a field in which you keep number of user( may be per month, day, ..........), do something like this:&lt;/P&gt;

&lt;P&gt;.........|stats avg(your_field) by region&lt;/P&gt;

&lt;P&gt;NOTE: your search depends on you data so please take time to post your sample data next time.&lt;/P&gt;

&lt;P&gt;see &lt;BR /&gt;
docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/Whatsinthismanual&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 19:38:14 GMT</pubDate>
    <dc:creator>stephane_cyrill</dc:creator>
    <dc:date>2020-09-28T19:38:14Z</dc:date>
    <item>
      <title>Authentication Search Queries</title>
      <link>https://community.splunk.com/t5/Security/Authentication-Search-Queries/m-p/158669#M4756</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am new to Splunk ,I want to get reports for the below.Please help in writing queires for the below scenarios.&lt;/P&gt;

&lt;P&gt;1.Top 10 failed logins over the past 30 days&lt;BR /&gt;
2.Average number of user check outs by region.&lt;/P&gt;

&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 00:04:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Authentication-Search-Queries/m-p/158669#M4756</guid>
      <dc:creator>luckymaddy</dc:creator>
      <dc:date>2015-04-28T00:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Search Queries</title>
      <link>https://community.splunk.com/t5/Security/Authentication-Search-Queries/m-p/158670#M4757</link>
      <description>&lt;P&gt;Hi If you can provide a sample data it will be very easy to help you.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;your search can look like this:
a-assuming you have a security file.
source=security_log_file failed login ted Answer
| timecart span = 30d limit =10 .......&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;b. assuming you want to have it directly from splunk:&lt;/P&gt;

&lt;P&gt;index = _audit action = failure earliest=-30d | stats values(user)  AS Users, values(action) |top limit =10 action&lt;/P&gt;

&lt;P&gt;OR&lt;BR /&gt;
index = _audit action = failure earliest =-30d|top limit=10 action&lt;/P&gt;

&lt;P&gt;2.Average number of user check outs by region.&lt;/P&gt;

&lt;P&gt;if you have a field in which you keep number of user( may be per month, day, ..........), do something like this:&lt;/P&gt;

&lt;P&gt;.........|stats avg(your_field) by region&lt;/P&gt;

&lt;P&gt;NOTE: your search depends on you data so please take time to post your sample data next time.&lt;/P&gt;

&lt;P&gt;see &lt;BR /&gt;
docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/Whatsinthismanual&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:38:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Authentication-Search-Queries/m-p/158670#M4757</guid>
      <dc:creator>stephane_cyrill</dc:creator>
      <dc:date>2020-09-28T19:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Search Queries</title>
      <link>https://community.splunk.com/t5/Security/Authentication-Search-Queries/m-p/158671#M4758</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
for the first question: if you have field &lt;STRONG&gt;login&lt;/STRONG&gt; or &lt;STRONG&gt;status&lt;/STRONG&gt; that take "&lt;STRONG&gt;failed&lt;/STRONG&gt;" as value, and &lt;STRONG&gt;user&lt;/STRONG&gt; field; here is the query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=... status=failed earliest=-30d latest=now|top limit=10 users|table user ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For the second, if you have region field, here is the query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=... | stats avg(user) by region|table user avg(user) ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Apr 2015 01:41:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Authentication-Search-Queries/m-p/158671#M4758</guid>
      <dc:creator>NOUMSSI</dc:creator>
      <dc:date>2015-04-28T01:41:52Z</dc:date>
    </item>
  </channel>
</rss>

