<?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: Can you help me get the count by user from the following query? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-get-the-count-by-user-from-the-following-query/m-p/387885#M113141</link>
    <description>&lt;P&gt;If you want to get the count per user, then the key ingredient is to put &lt;CODE&gt;by "Authentication.user"&lt;/CODE&gt; instead of &lt;CODE&gt;by "Authentication.app","Authentication.src"&lt;/CODE&gt;. Some further modification may be needed to get exactly what you need (e.g. remove the &lt;CODE&gt;values(...) as user&lt;/CODE&gt; bit, rename Authentication.user to user etc.)&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jan 2019 08:50:10 GMT</pubDate>
    <dc:creator>FrankVl</dc:creator>
    <dc:date>2019-01-08T08:50:10Z</dc:date>
    <item>
      <title>Can you help me get the count by user from the following query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-get-the-count-by-user-from-the-following-query/m-p/387882#M113138</link>
      <description>&lt;P&gt;I am pulling information from the authentication datamodel by modifying the Excessive Failed Logins tstats command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats values(Authentication.tag) as "tag",values(Authentication.user) as "user",values(Authentication.dest) as "dest",count from datamodel="Authentication"."Authentication" where nodename="Authentication.Failed_Authentication"  by "Authentication.app","Authentication.src"  | rename "Authentication.app" as "app","Authentication.src" as "src" | where 'count'&amp;gt;=6
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This provides a nice table with the app, src, tag, a multivalue field for users, a multivalue field for dest, and total counts.&lt;/P&gt;

&lt;P&gt;I would like to get the count per user, but am unsure where to start.&lt;/P&gt;

&lt;P&gt;I could possibly write a query directly against:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| from datamodel:"Authentication"."Failed_Authentication"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it seems that doing it this way is rather resource intensive.&lt;/P&gt;

&lt;P&gt;Any advice would be helpful.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 21:15:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-get-the-count-by-user-from-the-following-query/m-p/387882#M113138</guid>
      <dc:creator>richardphung</dc:creator>
      <dc:date>2019-01-07T21:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me get the count by user from the following query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-get-the-count-by-user-from-the-following-query/m-p/387883#M113139</link>
      <description>&lt;P&gt;Could you please provide sample results of tstats command?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 07:04:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-get-the-count-by-user-from-the-following-query/m-p/387883#M113139</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2019-01-08T07:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me get the count by user from the following query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-get-the-count-by-user-from-the-following-query/m-p/387884#M113140</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
Is your datamodel accelerated? Because accelerated datamodel helps running faster searches and could you try below search?&lt;BR /&gt;
| tstats values(Authentication.tag) as "tag",dc(Authentication.user) as "user",values(Authentication.dest) as "dest"  from datamodel="Authentication"."Authentication" where nodename="Authentication.Failed_Authentication"  by "Authentication.app","Authentication.src"  | rename "Authentication.app" as "app","Authentication.src" as "src" | where 'count'&amp;gt;=6&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 08:10:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-get-the-count-by-user-from-the-following-query/m-p/387884#M113140</guid>
      <dc:creator>nikita_p</dc:creator>
      <dc:date>2019-01-08T08:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me get the count by user from the following query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-get-the-count-by-user-from-the-following-query/m-p/387885#M113141</link>
      <description>&lt;P&gt;If you want to get the count per user, then the key ingredient is to put &lt;CODE&gt;by "Authentication.user"&lt;/CODE&gt; instead of &lt;CODE&gt;by "Authentication.app","Authentication.src"&lt;/CODE&gt;. Some further modification may be needed to get exactly what you need (e.g. remove the &lt;CODE&gt;values(...) as user&lt;/CODE&gt; bit, rename Authentication.user to user etc.)&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 08:50:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-get-the-count-by-user-from-the-following-query/m-p/387885#M113141</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-01-08T08:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me get the count by user from the following query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-get-the-count-by-user-from-the-following-query/m-p/387886#M113142</link>
      <description>&lt;P&gt;app,  src,  tag,  user,  dest,  count&lt;BR /&gt;
win:remote, 123.456.789.012, authentication, username1, server01, 8&lt;BR /&gt;
win:remote, 123.456.890.123, authentication, {username1, username2, username 3}, server02, 10&lt;BR /&gt;
win:remote, 123.456.901.234, authentication, {username1, username3, username4}, server01, 5&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 14:20:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-get-the-count-by-user-from-the-following-query/m-p/387886#M113142</guid>
      <dc:creator>richardphung</dc:creator>
      <dc:date>2019-01-08T14:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me get the count by user from the following query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-get-the-count-by-user-from-the-following-query/m-p/387887#M113143</link>
      <description>&lt;P&gt;Yes, the datamodel is accelerated. &lt;/P&gt;

&lt;P&gt;The search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats values(Authentication.tag) as "tag",dc(Authentication.user) as "user",values(Authentication.dest) as "dest" from datamodel="Authentication"."Authentication" where nodename="Authentication.Failed_Authentication" by "Authentication.app","Authentication.src" | rename "Authentication.app" as "app","Authentication.src" as "src" | where 'count'&amp;gt;=6
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;does not produce any results.&lt;/P&gt;

&lt;P&gt;Although, with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats values(Authentication.tag) as "tag",dc(Authentication.user) as "user",values(Authentication.dest) as "dest",count from datamodel="Authentication"."Authentication" where nodename="Authentication.Failed_Authentication" by "Authentication.app","Authentication.src" | rename "Authentication.app" as "app","Authentication.src" as "src" | where 'count'&amp;gt;=6
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get a count of users as "user"&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 14:23:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-get-the-count-by-user-from-the-following-query/m-p/387887#M113143</guid>
      <dc:creator>richardphung</dc:creator>
      <dc:date>2019-01-08T14:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me get the count by user from the following query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-get-the-count-by-user-from-the-following-query/m-p/387888#M113144</link>
      <description>&lt;P&gt;Yes, this is it.&lt;BR /&gt;
Seems so obvious now. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 14:31:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-get-the-count-by-user-from-the-following-query/m-p/387888#M113144</guid>
      <dc:creator>richardphung</dc:creator>
      <dc:date>2019-01-08T14:31:53Z</dc:date>
    </item>
  </channel>
</rss>

