<?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 Query to return top ten users and the applications they connect to? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Query-to-return-top-ten-users-and-the-applications-they-connect/m-p/174275#M50010</link>
    <description>&lt;P&gt;My events contain users and applications to which they connect to. I want a query to return top 10 users and the applications which they connect to? Also Is it possible to display it in a chart ?&lt;BR /&gt;
I want top 10 users and then I just need what applications each user is connected to. Im missing something. Any ideas?&lt;BR /&gt;
Thanks in advance&lt;/P&gt;</description>
    <pubDate>Thu, 07 Aug 2014 10:24:34 GMT</pubDate>
    <dc:creator>splunkn</dc:creator>
    <dc:date>2014-08-07T10:24:34Z</dc:date>
    <item>
      <title>Query to return top ten users and the applications they connect to?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-to-return-top-ten-users-and-the-applications-they-connect/m-p/174275#M50010</link>
      <description>&lt;P&gt;My events contain users and applications to which they connect to. I want a query to return top 10 users and the applications which they connect to? Also Is it possible to display it in a chart ?&lt;BR /&gt;
I want top 10 users and then I just need what applications each user is connected to. Im missing something. Any ideas?&lt;BR /&gt;
Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2014 10:24:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-to-return-top-ten-users-and-the-applications-they-connect/m-p/174275#M50010</guid>
      <dc:creator>splunkn</dc:creator>
      <dc:date>2014-08-07T10:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Query to return top ten users and the applications they connect to?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-to-return-top-ten-users-and-the-applications-they-connect/m-p/174276#M50011</link>
      <description>&lt;P&gt;Yes it is possible.&lt;/P&gt;

&lt;P&gt;Are you facing any issues? Have you tried writing the searches?&lt;/P&gt;

&lt;P&gt;You also need to post the log events for folks to help you&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2014 10:48:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-to-return-top-ten-users-and-the-applications-they-connect/m-p/174276#M50011</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-08-07T10:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Query to return top ten users and the applications they connect to?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-to-return-top-ten-users-and-the-applications-they-connect/m-p/174277#M50012</link>
      <description>&lt;P&gt;Without knowing what your events look like, and not really understanding how you want the results presented, you could try one of the following - assuming the fields are called 'user' and 'application';&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search | top user by application
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which will give your the top 10 users for each application. Or - if there is more of a one-to-one relationship between users and applications, you could concatenate the two for presentation purposes;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search | eval user_app = user . application | top user_app
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2014 11:39:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-to-return-top-ten-users-and-the-applications-they-connect/m-p/174277#M50012</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-08-07T11:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Query to return top ten users and the applications they connect to?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-to-return-top-ten-users-and-the-applications-they-connect/m-p/174278#M50013</link>
      <description>&lt;P&gt;Im having users who are logged on to various applications like below. &lt;BR /&gt;
User1 logged to app1&lt;BR /&gt;
User1 logged to app2&lt;BR /&gt;
USer2 logged to app1&lt;BR /&gt;
User3 logged to app2 etc...&lt;BR /&gt;
I want to take top 10 users and need to append what are the applications they logged in as below.&lt;BR /&gt;
User Application Count&lt;BR /&gt;
User1 app1        10&lt;BR /&gt;
      app2        5&lt;BR /&gt;
User2 app1        4&lt;BR /&gt;&lt;BR /&gt;
User3 app2        4 &lt;BR /&gt;
I tried with the search as index=* sourcetype=* "login succeeded" [search index=* sourcetype=* "login succeeded" | top limit=10 user | fields user] | fields user,application_name | stats count by user,appplication_name.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:17:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-to-return-top-ten-users-and-the-applications-they-connect/m-p/174278#M50013</guid>
      <dc:creator>splunkn</dc:creator>
      <dc:date>2020-09-28T17:17:04Z</dc:date>
    </item>
  </channel>
</rss>

