<?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 How  to write Host_regex to extract filename from the source path in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-Host-regex-to-extract-filename-from-the-source-path/m-p/265032#M189849</link>
    <description>&lt;P&gt;Hi Team&lt;/P&gt;

&lt;P&gt;I have file names C:\SPLUNKCEBU\rdilraanan010-4-1.ncr.com.Gi0-2.csv &lt;/P&gt;

&lt;P&gt;from which i need host_regex to take only the name   of the file ex: rdilraanan010-4-1.ncr.com.Gi0-2 No path and no extension&lt;BR /&gt;
Right now i have got a host_regex =(?\w+-\d+-\d) like this but this extracts only till  rdilraanan010-4-1 which is not my desired output&lt;/P&gt;

&lt;P&gt;can any one help&lt;/P&gt;

&lt;P&gt;Thanks and Regards,&lt;BR /&gt;
Deepthi Bulusu.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 09:13:40 GMT</pubDate>
    <dc:creator>deepthi5</dc:creator>
    <dc:date>2020-09-29T09:13:40Z</dc:date>
    <item>
      <title>How  to write Host_regex to extract filename from the source path</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-Host-regex-to-extract-filename-from-the-source-path/m-p/265032#M189849</link>
      <description>&lt;P&gt;Hi Team&lt;/P&gt;

&lt;P&gt;I have file names C:\SPLUNKCEBU\rdilraanan010-4-1.ncr.com.Gi0-2.csv &lt;/P&gt;

&lt;P&gt;from which i need host_regex to take only the name   of the file ex: rdilraanan010-4-1.ncr.com.Gi0-2 No path and no extension&lt;BR /&gt;
Right now i have got a host_regex =(?\w+-\d+-\d) like this but this extracts only till  rdilraanan010-4-1 which is not my desired output&lt;/P&gt;

&lt;P&gt;can any one help&lt;/P&gt;

&lt;P&gt;Thanks and Regards,&lt;BR /&gt;
Deepthi Bulusu.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:13:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-Host-regex-to-extract-filename-from-the-source-path/m-p/265032#M189849</guid>
      <dc:creator>deepthi5</dc:creator>
      <dc:date>2020-09-29T09:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: How  to write Host_regex to extract filename from the source path</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-Host-regex-to-extract-filename-from-the-source-path/m-p/265033#M189850</link>
      <description>&lt;P&gt;This worked for me using your example on regex101.com&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"(?&amp;lt;filename&amp;gt;[\w-\d\.]+)\.\w"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Mar 2016 14:41:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-Host-regex-to-extract-filename-from-the-source-path/m-p/265033#M189850</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-03-30T14:41:24Z</dc:date>
    </item>
  </channel>
</rss>

