<?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: captures users sum by url by date in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/captures-users-sum-by-url-by-date/m-p/14430#M1544</link>
    <description>&lt;P&gt;Still not sure what your are really asking here, but perhaps the following question/answer would be helpful to you.  You both seem to be looking at Citrix/MetaFrame POST events:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://answers.splunk.com/questions/3263/search-that-captures-sum-of-users-by-url" rel="nofollow"&gt;search that captures sum of users by url&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Fri, 04 Jun 2010 02:01:39 GMT</pubDate>
    <dc:creator>Lowell</dc:creator>
    <dc:date>2010-06-04T02:01:39Z</dc:date>
    <item>
      <title>captures users sum by url by date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/captures-users-sum-by-url-by-date/m-p/14426#M1540</link>
      <description>&lt;P&gt;I need to add something to the following search string (or rewrite it) that captures the following;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;User&lt;/LI&gt;
&lt;LI&gt;Destination URL&lt;/LI&gt;
&lt;LI&gt;Number of times the user accessed the Destination URL per day&lt;/LI&gt;
&lt;LI&gt;total number of hits to the Destination URL.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;This search string &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;host="192.168.105.25" Prism &lt;A href="http://DCSPRSAPPTS01.chpnet.org:80//Citrix/MetaFrame" rel="nofollow"&gt;http://DCSPRSAPPTS01.chpnet.org:80//Citrix/MetaFrame&lt;/A&gt; action="POST"| stats count by user, dest_url&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Generates the following results&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;user     dest_url                                                               Count
phtwe    &lt;A href="http://DCSPRSAPPTS01.chpnet.org:80//Citrix/MetaFrame/auth/login.aspx" target="test_blank"&gt;http://DCSPRSAPPTS01.chpnet.org:80//Citrix/MetaFrame/auth/login.aspx&lt;/A&gt;   99 
nkhan    &lt;A href="http://DCSPRSAPPTS01.chpnet.org:80//Citrix/MetaFrame/auth/login.aspx" target="test_blank"&gt;http://DCSPRSAPPTS01.chpnet.org:80//Citrix/MetaFrame/auth/login.aspx&lt;/A&gt;   83 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 May 2010 01:03:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/captures-users-sum-by-url-by-date/m-p/14426#M1540</guid>
      <dc:creator>sdagostino</dc:creator>
      <dc:date>2010-05-28T01:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: captures users sum by url by date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/captures-users-sum-by-url-by-date/m-p/14427#M1541</link>
      <description>&lt;P&gt;Can you clarify what you want to get the sum of?&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2010 01:27:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/captures-users-sum-by-url-by-date/m-p/14427#M1541</guid>
      <dc:creator>Simeon</dc:creator>
      <dc:date>2010-05-28T01:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: captures users sum by url by date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/captures-users-sum-by-url-by-date/m-p/14428#M1542</link>
      <description>&lt;P&gt;By "string", do you mean "search string"?   Can you provide a sample event or two.  I assume your are looking at some kind of http access log?  Is this correct? (Please edit your question and provide some additional details.)&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2010 01:51:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/captures-users-sum-by-url-by-date/m-p/14428#M1542</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-05-28T01:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: captures users sum by url by date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/captures-users-sum-by-url-by-date/m-p/14429#M1543</link>
      <description>&lt;P&gt;I'm still confused.  I think you should supply some sample events and clarify exactly what you need to do functionally.&lt;/P&gt;</description>
      <pubDate>Sat, 29 May 2010 00:27:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/captures-users-sum-by-url-by-date/m-p/14429#M1543</guid>
      <dc:creator>Simeon</dc:creator>
      <dc:date>2010-05-29T00:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: captures users sum by url by date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/captures-users-sum-by-url-by-date/m-p/14430#M1544</link>
      <description>&lt;P&gt;Still not sure what your are really asking here, but perhaps the following question/answer would be helpful to you.  You both seem to be looking at Citrix/MetaFrame POST events:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://answers.splunk.com/questions/3263/search-that-captures-sum-of-users-by-url" rel="nofollow"&gt;search that captures sum of users by url&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 04 Jun 2010 02:01:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/captures-users-sum-by-url-by-date/m-p/14430#M1544</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-06-04T02:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: captures users sum by url by date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/captures-users-sum-by-url-by-date/m-p/14431#M1545</link>
      <description>&lt;P&gt;Note: I just improved the formatting of the question so its more readable now.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2010 02:03:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/captures-users-sum-by-url-by-date/m-p/14431#M1545</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2010-06-07T02:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: captures users sum by url by date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/captures-users-sum-by-url-by-date/m-p/14432#M1546</link>
      <description>&lt;P&gt;Do you just want the equivalent of:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ... | bucket _time span=1d | stats count by _time,user,dest_url
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Seems to me that's it. If you want the total for each URL, you can get it by adding:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ... | eventstats sum(count) as total_count by _time,dest_url
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or there is a trick you can do by creating a multivalued field:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval user=user+";"+"*" | eval user=split(user,";") | bucket _time span=1d | stats count by _time,user,dest_url
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which will put the total count as the &lt;CODE&gt;*&lt;/CODE&gt; user. You can use any value besides &lt;CODE&gt;*&lt;/CODE&gt; if it doesn't conflict with a real user name.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2010 05:06:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/captures-users-sum-by-url-by-date/m-p/14432#M1546</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-06-07T05:06:42Z</dc:date>
    </item>
  </channel>
</rss>

