<?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: rex to extract string in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/rex-to-extract-string/m-p/583347#M203127</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/217339"&gt;@indeed_2000&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;if you're sure that the division between strings is dot, you could use a regex like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "Cluster\[(?&amp;lt;string1&amp;gt;[^\.]+)\.(?&amp;lt;string2&amp;gt;[^\]]+)"&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/5r3Mvp/1" target="_blank"&gt;https://regex101.com/r/5r3Mvp/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 02 Feb 2022 09:14:32 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-02-02T09:14:32Z</dc:date>
    <item>
      <title>rex to extract string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-to-extract-string/m-p/583344#M203125</link>
      <description>&lt;P&gt;Hi I have log like this:&lt;/P&gt;&lt;P&gt;2022-02-01 11:59:59,869 INFO CUS.AbCD-Host-000000 [AppListener] Receive Packet[0000000*]: Cluster[String1.String2]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I extract&amp;nbsp;String1 and String2 separately with a single rex like this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cluster\[(?&amp;lt;GroupREX&amp;gt;\w+\.\w+)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 09:03:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-to-extract-string/m-p/583344#M203125</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2022-02-02T09:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: rex to extract string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-to-extract-string/m-p/583346#M203126</link>
      <description>&lt;LI-CODE lang="markup"&gt;Cluster\[(?&amp;lt;String1&amp;gt;\w+)\.(?&amp;lt;String2&amp;gt;\w+)\]&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 02 Feb 2022 09:07:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-to-extract-string/m-p/583346#M203126</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-02T09:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: rex to extract string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-to-extract-string/m-p/583347#M203127</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/217339"&gt;@indeed_2000&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;if you're sure that the division between strings is dot, you could use a regex like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "Cluster\[(?&amp;lt;string1&amp;gt;[^\.]+)\.(?&amp;lt;string2&amp;gt;[^\]]+)"&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/5r3Mvp/1" target="_blank"&gt;https://regex101.com/r/5r3Mvp/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 09:14:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-to-extract-string/m-p/583347#M203127</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-02T09:14:32Z</dc:date>
    </item>
  </channel>
</rss>

