<?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 Instead of a Home Page showing up with three different URLs, is there a way to combine all variations to one URL string? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Instead-of-a-Home-Page-showing-up-with-three-different-URLs-is/m-p/287960#M87162</link>
    <description>&lt;P&gt;Is there anyway to treat all loaded home pages for a given URL path to be the same? For example the home page can show up as: &lt;BR /&gt;
1) ending with forward slash, for example: &lt;CODE&gt;&lt;A href="http://mysite.com/site1/" target="test_blank"&gt;http://mysite.com/site1/&lt;/A&gt;&lt;/CODE&gt;&lt;BR /&gt;
2) have no forward slash at the end of the URI stem, for example &lt;CODE&gt;&lt;A href="http://mysite.com/site1" target="test_blank"&gt;http://mysite.com/site1&lt;/A&gt;&lt;/CODE&gt;&lt;BR /&gt;
3) have an index.html file, for example: &lt;CODE&gt;&lt;A href="http://mysite.com/site1/index.html" target="test_blank"&gt;http://mysite.com/site1/index.html&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Instead of site1 showing up with three different URLs, is there a way to combine all of them to show up as &lt;CODE&gt;&lt;A href="http://mysite.com/site1" target="test_blank"&gt;http://mysite.com/site1&lt;/A&gt;&lt;/CODE&gt;? Is there someway to remove last forward slash &lt;CODE&gt;/&lt;/CODE&gt; or last instance of &lt;CODE&gt;/index.html&lt;/CODE&gt; from the URL string?&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2016 21:55:30 GMT</pubDate>
    <dc:creator>spammenot66</dc:creator>
    <dc:date>2016-04-12T21:55:30Z</dc:date>
    <item>
      <title>Instead of a Home Page showing up with three different URLs, is there a way to combine all variations to one URL string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Instead-of-a-Home-Page-showing-up-with-three-different-URLs-is/m-p/287960#M87162</link>
      <description>&lt;P&gt;Is there anyway to treat all loaded home pages for a given URL path to be the same? For example the home page can show up as: &lt;BR /&gt;
1) ending with forward slash, for example: &lt;CODE&gt;&lt;A href="http://mysite.com/site1/" target="test_blank"&gt;http://mysite.com/site1/&lt;/A&gt;&lt;/CODE&gt;&lt;BR /&gt;
2) have no forward slash at the end of the URI stem, for example &lt;CODE&gt;&lt;A href="http://mysite.com/site1" target="test_blank"&gt;http://mysite.com/site1&lt;/A&gt;&lt;/CODE&gt;&lt;BR /&gt;
3) have an index.html file, for example: &lt;CODE&gt;&lt;A href="http://mysite.com/site1/index.html" target="test_blank"&gt;http://mysite.com/site1/index.html&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Instead of site1 showing up with three different URLs, is there a way to combine all of them to show up as &lt;CODE&gt;&lt;A href="http://mysite.com/site1" target="test_blank"&gt;http://mysite.com/site1&lt;/A&gt;&lt;/CODE&gt;? Is there someway to remove last forward slash &lt;CODE&gt;/&lt;/CODE&gt; or last instance of &lt;CODE&gt;/index.html&lt;/CODE&gt; from the URL string?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 21:55:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Instead-of-a-Home-Page-showing-up-with-three-different-URLs-is/m-p/287960#M87162</guid>
      <dc:creator>spammenot66</dc:creator>
      <dc:date>2016-04-12T21:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Instead of a Home Page showing up with three different URLs, is there a way to combine all variations to one URL string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Instead-of-a-Home-Page-showing-up-with-three-different-URLs-is/m-p/287961#M87163</link>
      <description>&lt;P&gt;You could do this in your search string like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search_here
| url = case(like(url,"%/index.html"),substr(url,1,len(url)-11), 
                    like(url,"%/index.htm"),substr(url,1,len(url)-10), 
                    like(url,"%/"),substr(url,1,len(url)-1), 
                    1==1,url)
| next_thing_here
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hopefully I am not off-by-one on the string length calculations... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 00:04:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Instead-of-a-Home-Page-showing-up-with-three-different-URLs-is/m-p/287961#M87163</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2016-04-13T00:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Instead of a Home Page showing up with three different URLs, is there a way to combine all variations to one URL string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Instead-of-a-Home-Page-showing-up-with-three-different-URLs-is/m-p/287962#M87164</link>
      <description>&lt;P&gt;thanks for the reply.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 02:41:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Instead-of-a-Home-Page-showing-up-with-three-different-URLs-is/m-p/287962#M87164</guid>
      <dc:creator>spammenot66</dc:creator>
      <dc:date>2016-08-04T02:41:53Z</dc:date>
    </item>
  </channel>
</rss>

