<?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: Splunk Query for user accessing assets in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-for-user-accessing-assets/m-p/469455#M132096</link>
    <description>&lt;P&gt;Thanks @gcusello , it kind of worked for me.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Apr 2020 11:27:32 GMT</pubDate>
    <dc:creator>sarwshai</dc:creator>
    <dc:date>2020-04-08T11:27:32Z</dc:date>
    <item>
      <title>Splunk Query for user accessing assets</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-for-user-accessing-assets/m-p/469451#M132092</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I need to create a query where user access a same destination from 5 or more sources, also in that query opposite should also be achieved i.e. 5 or more destination and 1 source, is it possible?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 07:13:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-for-user-accessing-assets/m-p/469451#M132092</guid>
      <dc:creator>sarwshai</dc:creator>
      <dc:date>2020-04-07T07:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query for user accessing assets</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-for-user-accessing-assets/m-p/469452#M132093</link>
      <description>&lt;P&gt;Hi @sarwshai,&lt;BR /&gt;
you have to use the stats command with the dc (distinct_count) option.&lt;BR /&gt;
e.g. something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index
| stats dc(src_ip) AS dc_src BY user dts_ip
| where dc_src&amp;gt;5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or in the other case:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index
| stats dc(dst_ip) AS dc_dst BY user src_ip
| where dc_dst&amp;gt;5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 08:06:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-for-user-accessing-assets/m-p/469452#M132093</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-04-07T08:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query for user accessing assets</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-for-user-accessing-assets/m-p/469453#M132094</link>
      <description>&lt;P&gt;Thanks @gcusello , however i want both conditions in same search itself.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 09:16:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-for-user-accessing-assets/m-p/469453#M132094</guid>
      <dc:creator>sarwshai</dc:creator>
      <dc:date>2020-04-07T09:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query for user accessing assets</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-for-user-accessing-assets/m-p/469454#M132095</link>
      <description>&lt;P&gt;Hi @sarwshai,&lt;BR /&gt;
try something like this (it runs if the second search has less than 50,000 results!):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index
| stats dc(src) AS dc_src values(src) AS src BY user dst
| where dc_src&amp;gt;5
| append [ search 
     index=your_index
     | stats dc(dst) AS dc_dst values(dst) AS dst BY user src
     | where dc_dst&amp;gt;5
     ]
| table user src dst
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 09:40:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-for-user-accessing-assets/m-p/469454#M132095</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-04-07T09:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query for user accessing assets</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-for-user-accessing-assets/m-p/469455#M132096</link>
      <description>&lt;P&gt;Thanks @gcusello , it kind of worked for me.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 11:27:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-for-user-accessing-assets/m-p/469455#M132096</guid>
      <dc:creator>sarwshai</dc:creator>
      <dc:date>2020-04-08T11:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query for user accessing assets</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-for-user-accessing-assets/m-p/469456#M132097</link>
      <description>&lt;P&gt;Hi @sarwshai,&lt;BR /&gt;
You're welcome!&lt;BR /&gt;
if this answer solves your need, please accept it for the other people of Community.&lt;/P&gt;

&lt;P&gt;Ciao and next time.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 12:16:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-for-user-accessing-assets/m-p/469456#M132097</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-04-08T12:16:47Z</dc:date>
    </item>
  </channel>
</rss>

