<?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: Restful URL access log reports in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Restful-URL-access-log-reports/m-p/34465#M664</link>
    <description>&lt;P&gt;I did it using &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Rex"&gt;rex&lt;/A&gt; in sed mode. Suppose you have an index with some paths having URIs such as &lt;CODE&gt;/service/devices/5302AFDCE0EA/operation&lt;/CODE&gt;, e.g. of access logs containing:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; 127.0.0.1 - - [26/Sep/2014:18:01:07 +0200] "GET /service/devices/5302AFDCE0EA/operation HTTP/1.1" 200 112719 7085350
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can use rex to collapse all the URIs containing a unique device ID into a URI value &lt;CODE&gt;/service/devices/${deviceId}/operation&lt;/CODE&gt; like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="web-logs" earliest=-30m latest=now | rex field=uri mode=sed "s/\/devices\/\\w+\//\/devices\/${deviceId}\//g"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now you can group events by uri and you won't have a long tail of unique values clumped under "OTHER".  You can chain multiple &lt;CODE&gt;| rex ...&lt;/CODE&gt; commands to your SPL to process more URI patterns.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Sep 2014 16:22:43 GMT</pubDate>
    <dc:creator>pcholakov</dc:creator>
    <dc:date>2014-09-26T16:22:43Z</dc:date>
    <item>
      <title>Restful URL access log reports</title>
      <link>https://community.splunk.com/t5/Reporting/Restful-URL-access-log-reports/m-p/34464#M663</link>
      <description>&lt;P&gt;Hi I'm new to splunk. I have an web access log that I want to pull usage information from. Now the URLs are restful web service urls, so the url path is different for each service bing called. Also the name of the user calling the service is included in the path. like this: &lt;A href="http://mysite.com/myservice/username"&gt;http://mysite.com/myservice/username&lt;/A&gt;. &lt;/P&gt;

&lt;P&gt;So my question is how can I get splunk to report on the number of services being accessed, wich users are accessing what services and how often. Basically I guess I am asking how can I report on the data parsed from the URL.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2013 14:07:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Restful-URL-access-log-reports/m-p/34464#M663</guid>
      <dc:creator>tborf</dc:creator>
      <dc:date>2013-05-15T14:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Restful URL access log reports</title>
      <link>https://community.splunk.com/t5/Reporting/Restful-URL-access-log-reports/m-p/34465#M664</link>
      <description>&lt;P&gt;I did it using &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Rex"&gt;rex&lt;/A&gt; in sed mode. Suppose you have an index with some paths having URIs such as &lt;CODE&gt;/service/devices/5302AFDCE0EA/operation&lt;/CODE&gt;, e.g. of access logs containing:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; 127.0.0.1 - - [26/Sep/2014:18:01:07 +0200] "GET /service/devices/5302AFDCE0EA/operation HTTP/1.1" 200 112719 7085350
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can use rex to collapse all the URIs containing a unique device ID into a URI value &lt;CODE&gt;/service/devices/${deviceId}/operation&lt;/CODE&gt; like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="web-logs" earliest=-30m latest=now | rex field=uri mode=sed "s/\/devices\/\\w+\//\/devices\/${deviceId}\//g"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now you can group events by uri and you won't have a long tail of unique values clumped under "OTHER".  You can chain multiple &lt;CODE&gt;| rex ...&lt;/CODE&gt; commands to your SPL to process more URI patterns.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 16:22:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Restful-URL-access-log-reports/m-p/34465#M664</guid>
      <dc:creator>pcholakov</dc:creator>
      <dc:date>2014-09-26T16:22:43Z</dc:date>
    </item>
  </channel>
</rss>

