<?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: Remove extension from filepath in field value dynamically. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Remove-extension-from-filepath-in-field-value-dynamically/m-p/434341#M170661</link>
    <description>&lt;P&gt;@paragvidhi ,&lt;/P&gt;

&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=filepath "(?&amp;lt;Base&amp;gt;.+)\.[^.]+$"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;where &lt;CODE&gt;filepath&lt;/CODE&gt; is your current field&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jun 2019 12:47:32 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2019-06-19T12:47:32Z</dc:date>
    <item>
      <title>Remove extension from filepath in field value dynamically.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-extension-from-filepath-in-field-value-dynamically/m-p/434340#M170660</link>
      <description>&lt;P&gt;I have a field in my Splunk search name filepath which contains the base path of file like below&lt;BR /&gt;
repository/2650/document/960891_1.pdf&lt;BR /&gt;
repository/357/document/96_1.wordx&lt;/P&gt;

&lt;P&gt;I need to extract below string from my already existing field.&lt;BR /&gt;
filepath value : repository/2650/document/960891_1.pdf&lt;BR /&gt;
extract value : repository/2650/document/960891_1&lt;/P&gt;

&lt;P&gt;filepath value : repository/357/document/96_1.wordx&lt;BR /&gt;
extract value : repository/357/document/96_1&lt;/P&gt;

&lt;P&gt;in short, I need to remove file extension from field value dynamically &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:00:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-extension-from-filepath-in-field-value-dynamically/m-p/434340#M170660</guid>
      <dc:creator>paragvidhi</dc:creator>
      <dc:date>2020-09-30T01:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Remove extension from filepath in field value dynamically.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-extension-from-filepath-in-field-value-dynamically/m-p/434341#M170661</link>
      <description>&lt;P&gt;@paragvidhi ,&lt;/P&gt;

&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=filepath "(?&amp;lt;Base&amp;gt;.+)\.[^.]+$"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;where &lt;CODE&gt;filepath&lt;/CODE&gt; is your current field&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 12:47:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-extension-from-filepath-in-field-value-dynamically/m-p/434341#M170661</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-06-19T12:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Remove extension from filepath in field value dynamically.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-extension-from-filepath-in-field-value-dynamically/m-p/434342#M170662</link>
      <description>&lt;P&gt;@renjith.nair ,&lt;BR /&gt;
Thanks for your help it's working for me &lt;BR /&gt;
thanks a lot&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 13:30:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-extension-from-filepath-in-field-value-dynamically/m-p/434342#M170662</guid>
      <dc:creator>paragvidhi</dc:creator>
      <dc:date>2019-06-19T13:30:20Z</dc:date>
    </item>
  </channel>
</rss>

