<?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 can i fetch the second last word of a sentence with the splunk with the regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-second-last-word-of-a-sentence-with-the-Splunk/m-p/586303#M204245</link>
    <description>&lt;P&gt;Can you please see the updated question&lt;/P&gt;</description>
    <pubDate>Wed, 23 Feb 2022 19:55:06 GMT</pubDate>
    <dc:creator>riginoommen</dc:creator>
    <dc:date>2022-02-23T19:55:06Z</dc:date>
    <item>
      <title>How to fetch the second last word of a sentence with the Splunk regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-second-last-word-of-a-sentence-with-the-Splunk/m-p/586299#M204243</link>
      <description>&lt;P&gt;My query is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Mozilla/5.0 (X11; Linux x86_64; Catchpoint) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to extract the following word from the above sting with regex can you please help me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Chrome/87.0.4280.88&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 20:18:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-second-last-word-of-a-sentence-with-the-Splunk/m-p/586299#M204243</guid>
      <dc:creator>riginoommen</dc:creator>
      <dc:date>2022-02-23T20:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can i fetch the last word of a sentence with the splunk with the regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-second-last-word-of-a-sentence-with-the-Splunk/m-p/586302#M204244</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Try this Regex.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;\b(\S+)$&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 23 Feb 2022 19:52:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-second-last-word-of-a-sentence-with-the-Splunk/m-p/586302#M204244</guid>
      <dc:creator>Stefanie</dc:creator>
      <dc:date>2022-02-23T19:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can i fetch the second last word of a sentence with the splunk with the regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-second-last-word-of-a-sentence-with-the-Splunk/m-p/586303#M204245</link>
      <description>&lt;P&gt;Can you please see the updated question&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 19:55:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-second-last-word-of-a-sentence-with-the-Splunk/m-p/586303#M204245</guid>
      <dc:creator>riginoommen</dc:creator>
      <dc:date>2022-02-23T19:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can i fetch the last word of a sentence with the splunk with the regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-second-last-word-of-a-sentence-with-the-Splunk/m-p/586305#M204247</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Can you please see the updated question with the answer and I am trying to accommodate with the res. it will be super awesome if you share the full url&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Feb 2022 19:57:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-second-last-word-of-a-sentence-with-the-Splunk/m-p/586305#M204247</guid>
      <dc:creator>riginoommen</dc:creator>
      <dc:date>2022-02-23T19:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can i fetch the last word of a sentence with the splunk with the regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-second-last-word-of-a-sentence-with-the-Splunk/m-p/586306#M204248</link>
      <description>&lt;P&gt;How to use the regex with the rex tag&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;\b(\S+)$&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;can you please help me&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Feb 2022 19:59:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-second-last-word-of-a-sentence-with-the-Splunk/m-p/586306#M204248</guid>
      <dc:creator>riginoommen</dc:creator>
      <dc:date>2022-02-23T19:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can i fetch the second last word of a sentence with the splunk with the regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-second-last-word-of-a-sentence-with-the-Splunk/m-p/586307#M204249</link>
      <description>&lt;P&gt;Try like this (replace everything before "rex" command with your search)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|makeresults | eval _raw="Mozilla/5.0 (X11; Linux x86_64; Catchpoint) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" | table _raw 
| rex "\s+(?&amp;lt;SecondLastPart&amp;gt;\S+)\s+\S+$"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 20:15:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-second-last-word-of-a-sentence-with-the-Splunk/m-p/586307#M204249</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-02-23T20:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can i fetch the second last word of a sentence with the splunk with the regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-second-last-word-of-a-sentence-with-the-Splunk/m-p/586309#M204251</link>
      <description>&lt;P&gt;This fetched the data as expected but its not taking the filtered data from past output&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 20:31:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-second-last-word-of-a-sentence-with-the-Splunk/m-p/586309#M204251</guid>
      <dc:creator>riginoommen</dc:creator>
      <dc:date>2022-02-23T20:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can i fetch the second last word of a sentence with the splunk with the regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-second-last-word-of-a-sentence-with-the-Splunk/m-p/586315#M204253</link>
      <description>&lt;P&gt;Sure&lt;/P&gt;&lt;P&gt;Try this one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;\s\S+\/\S+\s(?!\()&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 23 Feb 2022 20:56:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-second-last-word-of-a-sentence-with-the-Splunk/m-p/586315#M204253</guid>
      <dc:creator>Stefanie</dc:creator>
      <dc:date>2022-02-23T20:56:13Z</dc:date>
    </item>
  </channel>
</rss>

