<?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: How to rex a uri path in order to get a filename with certian extensions lik .pdf    .exe   .zip in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-rex-a-uri-path-in-order-to-get-a-filename-with-certian/m-p/289813#M161630</link>
    <description>&lt;P&gt;Try this &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;... | rex (?&amp;lt;cs_uri_path&amp;gt;\S+)(?&amp;lt;=\.exe)&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2017 17:26:22 GMT</pubDate>
    <dc:creator>skoelpin</dc:creator>
    <dc:date>2017-03-27T17:26:22Z</dc:date>
    <item>
      <title>How to rex a uri path in order to get a filename with certian extensions lik .pdf    .exe   .zip</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rex-a-uri-path-in-order-to-get-a-filename-with-certian/m-p/289811#M161628</link>
      <description>&lt;P&gt;Right now Im using &lt;/P&gt;

&lt;P&gt;rex field=cs_uri_path "^.*\/(?[^.\/]+.(?:[^.\/]){3,4})$"&lt;/P&gt;

&lt;P&gt;but im missing files like blah.1.0.8file.exe&lt;BR /&gt;
and double extensions like .pdf.exe&lt;/P&gt;

&lt;P&gt;I cant seem to adjust to pick out these exceptions&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:21:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rex-a-uri-path-in-order-to-get-a-filename-with-certian/m-p/289811#M161628</guid>
      <dc:creator>alexburst37</dc:creator>
      <dc:date>2020-09-29T13:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to rex a uri path in order to get a filename with certian extensions lik .pdf    .exe   .zip</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rex-a-uri-path-in-order-to-get-a-filename-with-certian/m-p/289812#M161629</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=cs_uri_path "(?ms)(?&amp;lt;filename&amp;gt;[^\\\/\r\n\s]+)[\r\n$]"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also try this app:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/2734/"&gt;https://splunkbase.splunk.com/app/2734/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 17:23:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rex-a-uri-path-in-order-to-get-a-filename-with-certian/m-p/289812#M161629</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-27T17:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to rex a uri path in order to get a filename with certian extensions lik .pdf    .exe   .zip</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rex-a-uri-path-in-order-to-get-a-filename-with-certian/m-p/289813#M161630</link>
      <description>&lt;P&gt;Try this &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;... | rex (?&amp;lt;cs_uri_path&amp;gt;\S+)(?&amp;lt;=\.exe)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 17:26:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rex-a-uri-path-in-order-to-get-a-filename-with-certian/m-p/289813#M161630</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2017-03-27T17:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to rex a uri path in order to get a filename with certian extensions lik .pdf    .exe   .zip</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rex-a-uri-path-in-order-to-get-a-filename-with-certian/m-p/289814#M161631</link>
      <description>&lt;P&gt;That one wont work.&lt;BR /&gt;
This is what I am using and it works fine i just need to have it be able to pick up files that may have "." in there names like blah1.0.8update.exe&lt;/P&gt;

&lt;P&gt;"^.*\/(?[^.\/]+.(?:[^.\/]){3,4})$"&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 17:29:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rex-a-uri-path-in-order-to-get-a-filename-with-certian/m-p/289814#M161631</guid>
      <dc:creator>alexburst37</dc:creator>
      <dc:date>2017-03-27T17:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to rex a uri path in order to get a filename with certian extensions lik .pdf    .exe   .zip</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rex-a-uri-path-in-order-to-get-a-filename-with-certian/m-p/289815#M161632</link>
      <description>&lt;P&gt;Why won't it work?  Your seems tediously overcomplicated.  Give me the exception where the simpler one fails.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 17:49:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rex-a-uri-path-in-order-to-get-a-filename-with-certian/m-p/289815#M161632</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-27T17:49:09Z</dc:date>
    </item>
  </channel>
</rss>

