<?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: Regex help - in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-container-name-and-ID-from-a-log-using-regex/m-p/517028#M145350</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223892"&gt;@pavanmishra0102&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;This should do it:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Container\sName:\s(?&amp;lt;container_name&amp;gt;.*)\((?&amp;lt;=\()Container\sId:\s(?&amp;lt;container_id&amp;gt;\d+)\)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;BR&lt;BR /&gt;Ralph&lt;BR /&gt;--&lt;BR /&gt;&lt;EM&gt;Karma and/or Solution tagging appreciated.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Aug 2020 13:26:03 GMT</pubDate>
    <dc:creator>rnowitzki</dc:creator>
    <dc:date>2020-08-31T13:26:03Z</dc:date>
    <item>
      <title>How to extract container name and ID from a log using regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-container-name-and-ID-from-a-log-using-regex/m-p/517024#M145348</link>
      <description>&lt;P&gt;(Item Id: 45) Container Name: Abc Admin Accounts (Container Id: 19) suid=1&lt;/P&gt;
&lt;P&gt;need to extract Container name &amp;amp; Container id from the above partial log posted here using regex. Kindly help. Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 23:35:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-container-name-and-ID-from-a-log-using-regex/m-p/517024#M145348</guid>
      <dc:creator>pavanmishra0102</dc:creator>
      <dc:date>2020-08-31T23:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help -</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-container-name-and-ID-from-a-log-using-regex/m-p/517027#M145349</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;this helps you:&lt;/P&gt;&lt;LI-CODE lang="java"&gt;index=_internal
| head 1
| eval _raw ="(Item Id: 45) Container Name: Abc Admin Accounts (Container Id: 19) suid=1"
| rename COMMENT "Previous sets sample data, next line select values"
| rex "Container Name: (?&amp;lt;CName&amp;gt;[^\(]+)\(Container Id: (?&amp;lt;CId&amp;gt;\d+)"&lt;/LI-CODE&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 13:25:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-container-name-and-ID-from-a-log-using-regex/m-p/517027#M145349</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-08-31T13:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help -</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-container-name-and-ID-from-a-log-using-regex/m-p/517028#M145350</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223892"&gt;@pavanmishra0102&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;This should do it:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Container\sName:\s(?&amp;lt;container_name&amp;gt;.*)\((?&amp;lt;=\()Container\sId:\s(?&amp;lt;container_id&amp;gt;\d+)\)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;BR&lt;BR /&gt;Ralph&lt;BR /&gt;--&lt;BR /&gt;&lt;EM&gt;Karma and/or Solution tagging appreciated.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 13:26:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-container-name-and-ID-from-a-log-using-regex/m-p/517028#M145350</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2020-08-31T13:26:03Z</dc:date>
    </item>
  </channel>
</rss>

