<?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: Exclude path from URL in Search Results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Exclude-path-from-URL-in-Search-Results/m-p/574370#M200163</link>
    <description>&lt;LI-CODE lang="markup"&gt;| regex _raw!="/"&lt;/LI-CODE&gt;&lt;P&gt;Replace _raw with your field name if appropriate&lt;/P&gt;</description>
    <pubDate>Wed, 10 Nov 2021 09:46:28 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-11-10T09:46:28Z</dc:date>
    <item>
      <title>Exclude path from URL in Search Results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-path-from-URL-in-Search-Results/m-p/574307#M200145</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I want to exclude the path from search results, i.e.:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.testsite.com" target="_blank" rel="noopener"&gt;www.testsite.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.testsite.com/path1" target="_blank" rel="noopener"&gt;www.testsite.com/path1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.testsite.com/path" target="_blank" rel="noopener"&gt;www.testsite.com/path2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.testsite.com/path" target="_blank" rel="noopener"&gt;www.testsite.com/path3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.secondsite.com" target="_blank" rel="noopener"&gt;www.secondsite.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.secondsite.com/path1" target="_blank" rel="noopener"&gt;www.secondsite.com/path1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the above, all the sites are displaying in my search. I only want &lt;A href="http://www.testsite.com" target="_blank" rel="noopener"&gt;www.testsite.com &lt;/A&gt;and &lt;A href="http://www.secondsite.com" target="_blank" rel="noopener"&gt;www.secondsite.com &lt;/A&gt;to show in search and rest of sites to be excluded.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 00:43:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-path-from-URL-in-Search-Results/m-p/574307#M200145</guid>
      <dc:creator>spfingst87</dc:creator>
      <dc:date>2021-11-10T00:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude path from URL in Search Results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-path-from-URL-in-Search-Results/m-p/574308#M200146</link>
      <description>&lt;P&gt;There probably are a few ways to do that.&amp;nbsp; I'd use &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; to extract the site from the URL.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | rex field=url "(?&amp;lt;site&amp;gt;[^\/]+)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 00:52:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-path-from-URL-in-Search-Results/m-p/574308#M200146</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-11-10T00:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude path from URL in Search Results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-path-from-URL-in-Search-Results/m-p/574310#M200147</link>
      <description>&lt;P&gt;Thanks for the fast response &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried this and still the search is producing URL paths. In the site, do I need to put a variable?&lt;/P&gt;&lt;P&gt;As a note, there are around 50 URLs in my search and around 10 of them are displaying several paths each. So I am looking for as universal solution for any current or future URLs added to exclude the path (if that makes any sense :)) not just for 1 specific URL.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 00:59:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-path-from-URL-in-Search-Results/m-p/574310#M200147</guid>
      <dc:creator>spfingst87</dc:creator>
      <dc:date>2021-11-10T00:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude path from URL in Search Results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-path-from-URL-in-Search-Results/m-p/574317#M200149</link>
      <description>&lt;P&gt;The suggested solution was for a field called &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;url&lt;/FONT&gt;&lt;/STRONG&gt; and it will extract a new field called &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;site&lt;/FONT&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Depending on your data, replace '&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;url&lt;/FONT&gt;&lt;/STRONG&gt;' with your input field and use the new field &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;site&lt;/FONT&gt;&lt;/STRONG&gt; for your analysis&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 04:19:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-path-from-URL-in-Search-Results/m-p/574317#M200149</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-11-10T04:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude path from URL in Search Results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-path-from-URL-in-Search-Results/m-p/574370#M200163</link>
      <description>&lt;LI-CODE lang="markup"&gt;| regex _raw!="/"&lt;/LI-CODE&gt;&lt;P&gt;Replace _raw with your field name if appropriate&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 09:46:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-path-from-URL-in-Search-Results/m-p/574370#M200163</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-11-10T09:46:28Z</dc:date>
    </item>
  </channel>
</rss>

