<?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 rex extract two last word? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-rex-extract-two-last-word/m-p/599283#M208630</link>
    <description>&lt;P&gt;Hi how can I extract only last 2 word that exist in className&lt;/P&gt;
&lt;P&gt;I have log like this:&lt;/P&gt;
&lt;P&gt;2022-05-24 16:29:51,918 INFO [APP] [ActionName] className[xx.xx.xxx.xxxx.xxx.session.controller.SearchClusterFinancialTcpMBean.search] status[done]&lt;/P&gt;
&lt;P&gt;2022-05-24 16:29:51,918 INFO [APP] [ActionName] className[xx.xx.xxx.xxxx.xxx.session.controller.SearchClusterFinancialTcpMBean.search.&lt;SPAN&gt;attribute&lt;/SPAN&gt;] status[done]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;excpected output:&lt;/P&gt;
&lt;P&gt;SearchClusterFinancialTcpMBean.search&lt;/P&gt;
&lt;P&gt;search.&lt;SPAN&gt;attribute&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any idea?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2022 18:23:32 GMT</pubDate>
    <dc:creator>indeed_2000</dc:creator>
    <dc:date>2022-05-25T18:23:32Z</dc:date>
    <item>
      <title>How to rex extract two last word?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rex-extract-two-last-word/m-p/599283#M208630</link>
      <description>&lt;P&gt;Hi how can I extract only last 2 word that exist in className&lt;/P&gt;
&lt;P&gt;I have log like this:&lt;/P&gt;
&lt;P&gt;2022-05-24 16:29:51,918 INFO [APP] [ActionName] className[xx.xx.xxx.xxxx.xxx.session.controller.SearchClusterFinancialTcpMBean.search] status[done]&lt;/P&gt;
&lt;P&gt;2022-05-24 16:29:51,918 INFO [APP] [ActionName] className[xx.xx.xxx.xxxx.xxx.session.controller.SearchClusterFinancialTcpMBean.search.&lt;SPAN&gt;attribute&lt;/SPAN&gt;] status[done]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;excpected output:&lt;/P&gt;
&lt;P&gt;SearchClusterFinancialTcpMBean.search&lt;/P&gt;
&lt;P&gt;search.&lt;SPAN&gt;attribute&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any idea?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 18:23:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rex-extract-two-last-word/m-p/599283#M208630</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2022-05-25T18:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: rex extract two last word</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rex-extract-two-last-word/m-p/599287#M208633</link>
      <description>&lt;P&gt;This regular expression should do it.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;className\[.*?(?&amp;lt;lastTwo&amp;gt;[^\.]+\.[^\.]+?)]&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 25 May 2022 13:05:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rex-extract-two-last-word/m-p/599287#M208633</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-05-25T13:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: rex extract two last word</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rex-extract-two-last-word/m-p/599288#M208634</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "className.*\.(?&amp;lt;class&amp;gt;\w+\.\w+)\]"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 25 May 2022 13:05:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rex-extract-two-last-word/m-p/599288#M208634</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-25T13:05:50Z</dc:date>
    </item>
  </channel>
</rss>

