<?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: split url and perform a count on it. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/split-url-and-perform-a-count-on-it/m-p/245584#M47455</link>
    <description>&lt;P&gt;The special character in the field name was it. Thank you so much. I figured it was something simple, I'm just new to it.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Aug 2016 20:18:07 GMT</pubDate>
    <dc:creator>rh990</dc:creator>
    <dc:date>2016-08-24T20:18:07Z</dc:date>
    <item>
      <title>split url and perform a count on it.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/split-url-and-perform-a-count-on-it/m-p/245580#M47451</link>
      <description>&lt;P&gt;You'll have to pardon the newbie question. I'm sure this is crazy easy, but I'm having the worst time figuring it out. My logs have a URL field in them and I want to split out the query string and do a count on the URL minus the query sting. I've tried a bunch of different things, but nothing I've tried has really gotten me what I'm after.&lt;/P&gt;

&lt;P&gt;An example might be like:&lt;BR /&gt;
&lt;A href="http://www.nasdaq.com/symbol/?Load=true&amp;amp;Search=ssss"&gt;www.nasdaq.com/symbol/?Load=true&amp;amp;Search=ssss&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www.nasdaq.com/symbol/?Load=true&amp;amp;Search=ddd"&gt;www.nasdaq.com/symbol/?Load=true&amp;amp;Search=ddd&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www.nasdaq.com/symbol/?Load=true&amp;amp;Search=xxx"&gt;www.nasdaq.com/symbol/?Load=true&amp;amp;Search=xxx&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www.nasdaq.com"&gt;www.nasdaq.com&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I'd like to see&lt;BR /&gt;
&lt;A href="http://www.nasdaq.com/symbol/"&gt;www.nasdaq.com/symbol/&lt;/A&gt;    3&lt;BR /&gt;
&lt;A href="http://www.nasdaq.com"&gt;www.nasdaq.com&lt;/A&gt;                    1&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 19:28:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/split-url-and-perform-a-count-on-it/m-p/245580#M47451</guid>
      <dc:creator>rh990</dc:creator>
      <dc:date>2016-08-24T19:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: split url and perform a count on it.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/split-url-and-perform-a-count-on-it/m-p/245581#M47452</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval url=mvindex(split(request_uri, "?"), 0) | stats count by url
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Aug 2016 19:50:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/split-url-and-perform-a-count-on-it/m-p/245581#M47452</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-24T19:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: split url and perform a count on it.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/split-url-and-perform-a-count-on-it/m-p/245582#M47453</link>
      <description>&lt;P&gt;I've tried this one and I get no results for statistics when I use it. I see plenty of results for events, but nothing for statistics.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="sss" Application.AppName = "xxxx*" Header.Type=inbound | eval url=mvindex(split(Service.URL, "?"), 0) | stats count by url
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Aug 2016 20:02:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/split-url-and-perform-a-count-on-it/m-p/245582#M47453</guid>
      <dc:creator>rh990</dc:creator>
      <dc:date>2016-08-24T20:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: split url and perform a count on it.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/split-url-and-perform-a-count-on-it/m-p/245583#M47454</link>
      <description>&lt;P&gt;Your field name contains special characters, so in eval (and where) command, use it within single quotes. Like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="sss" Application.AppName = "xxxx*" Header.Type=inbound | eval url=mvindex(split('Service.URL', "?"), 0) | stats count by url
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Aug 2016 20:12:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/split-url-and-perform-a-count-on-it/m-p/245583#M47454</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-08-24T20:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: split url and perform a count on it.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/split-url-and-perform-a-count-on-it/m-p/245584#M47455</link>
      <description>&lt;P&gt;The special character in the field name was it. Thank you so much. I figured it was something simple, I'm just new to it.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 20:18:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/split-url-and-perform-a-count-on-it/m-p/245584#M47455</guid>
      <dc:creator>rh990</dc:creator>
      <dc:date>2016-08-24T20:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: split url and perform a count on it.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/split-url-and-perform-a-count-on-it/m-p/245585#M47456</link>
      <description>&lt;P&gt;I want answer for exactly same question but I want the count value of everything group urls i.e---&lt;/P&gt;

&lt;P&gt;An example might be like:&lt;BR /&gt;
&lt;A href="http://www.nasdaq.com/symbol/?Load=true&amp;amp;Search=ssss"&gt;www.nasdaq.com/symbol/?Load=true&amp;amp;Search=ssss&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www.nasdaq.com/symbol/?Load=true&amp;amp;Search=ddd"&gt;www.nasdaq.com/symbol/?Load=true&amp;amp;Search=ddd&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www.nasdaq.com/symbol/?Load=true&amp;amp;Search=xxx"&gt;www.nasdaq.com/symbol/?Load=true&amp;amp;Search=xxx&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www.nasdaq.com"&gt;www.nasdaq.com&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I'd like to see&lt;BR /&gt;
&lt;A href="http://www.nasdaq.com-4"&gt;www.nasdaq.com-4&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I was using "My search|stats count by url " but I m getting all the results like this&lt;BR /&gt;
URL                                                                                              Count&lt;BR /&gt;
&lt;A href="http://www.nasdaq.com/symbol/?Load=true&amp;amp;Search=ssss"&gt;www.nasdaq.com/symbol/?Load=true&amp;amp;Search=ssss&lt;/A&gt;             1&lt;BR /&gt;
&lt;A href="http://www.nasdaq.com/symbol/?Load=true&amp;amp;Search=ddd"&gt;www.nasdaq.com/symbol/?Load=true&amp;amp;Search=ddd&lt;/A&gt;             1&lt;BR /&gt;
&lt;A href="http://www.nasdaq.com/symbol/?Load=true&amp;amp;Search=xxx"&gt;www.nasdaq.com/symbol/?Load=true&amp;amp;Search=xxx&lt;/A&gt;              1&lt;BR /&gt;
&lt;A href="http://www.nasdaq.com"&gt;www.nasdaq.com&lt;/A&gt;                                                                         1&lt;/P&gt;

&lt;P&gt;I'd like to see&lt;BR /&gt;
URL                             Count&lt;BR /&gt;
&lt;A href="http://www.nasdaq.com"&gt;www.nasdaq.com&lt;/A&gt;       4&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 22:17:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/split-url-and-perform-a-count-on-it/m-p/245585#M47456</guid>
      <dc:creator>aluruguna</dc:creator>
      <dc:date>2016-11-08T22:17:35Z</dc:date>
    </item>
  </channel>
</rss>

