<?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 extract the last file name from my sample string of data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-last-file-name-from-my-sample-string-of-data/m-p/210991#M61705</link>
    <description>&lt;P&gt;Splunk does regex, too.  Assuming your text is already extracted, this should pull out the last part.  I've made other assumptions about the characters that start and end the desired text so you may need to adjust the regex.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=text "- (?&amp;lt;shortcut&amp;gt;[^\"]*)" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 01 Sep 2015 16:43:59 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2015-09-01T16:43:59Z</dc:date>
    <item>
      <title>How to extract the last file name from my sample string of data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-last-file-name-from-my-sample-string-of-data/m-p/210989#M61703</link>
      <description>&lt;P&gt;Hello all, &lt;/P&gt;

&lt;P&gt;I have the following string:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"6900   0   1024        0   0   0   0   0   0   0   C:\windows\System32\Launcher.exe    "C:\windows\System32\Launcher.exe" "C:\Folder\Link - Shortcut.lnk"  ",
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And I need a way to get the very last part (e.g.. Shortcut.lnk).  Normally I would use regex for this in SQL or code, but for the life of me, I can't figure out how to implement it in Splunk.&lt;/P&gt;

&lt;P&gt;Any help is greatly appreciated.. &lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 16:07:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-last-file-name-from-my-sample-string-of-data/m-p/210989#M61703</guid>
      <dc:creator>jclemons7</dc:creator>
      <dc:date>2015-09-01T16:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the last file name from my sample string of data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-last-file-name-from-my-sample-string-of-data/m-p/210990#M61704</link>
      <description>&lt;P&gt;Can you provide a few more samples?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 16:27:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-last-file-name-from-my-sample-string-of-data/m-p/210990#M61704</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2015-09-01T16:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the last file name from my sample string of data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-last-file-name-from-my-sample-string-of-data/m-p/210991#M61705</link>
      <description>&lt;P&gt;Splunk does regex, too.  Assuming your text is already extracted, this should pull out the last part.  I've made other assumptions about the characters that start and end the desired text so you may need to adjust the regex.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=text "- (?&amp;lt;shortcut&amp;gt;[^\"]*)" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Sep 2015 16:43:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-last-file-name-from-my-sample-string-of-data/m-p/210991#M61705</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-09-01T16:43:59Z</dc:date>
    </item>
  </channel>
</rss>

