<?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 Help with fields extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-fields-extraction/m-p/595861#M207409</link>
    <description>&lt;P&gt;Good evening,&lt;BR /&gt;Thank you all for your support,&lt;BR /&gt;I have a field called Memberof which contains the following data per line.&lt;/P&gt;
&lt;P&gt;1) cn=GRP_Basic,ou=Users,dc=admin,dc=spike|cn=GRP_Hash,ou=Groups,dc=admin,dc=spike&lt;BR /&gt;&lt;BR /&gt;2) cn=GRP_ADC,ou=Groups,dc=admin,dc=spike|cn=GRP_Vabd_Admin,dc=admin,dc=spike|cn=GRP_Vabd_Supe&lt;BR /&gt;&lt;BR /&gt;3) cn=GRP_sos,ou=Groups,dc=command,dc=spike&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I wanted to extract for each row all that starts with GRP&lt;/P&gt;
&lt;P&gt;For example for the first line I need to extract GRP_Basic and GRP_Hash&lt;BR /&gt;For the second line I have to extract GRP_ADC and GRP_Vabd_Admin and GRP_Vabd_Supe&lt;/P&gt;
&lt;P&gt;thank you very much&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2022 15:55:30 GMT</pubDate>
    <dc:creator>numeroinconnu12</dc:creator>
    <dc:date>2022-04-29T15:55:30Z</dc:date>
    <item>
      <title>Help with fields extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-fields-extraction/m-p/595861#M207409</link>
      <description>&lt;P&gt;Good evening,&lt;BR /&gt;Thank you all for your support,&lt;BR /&gt;I have a field called Memberof which contains the following data per line.&lt;/P&gt;
&lt;P&gt;1) cn=GRP_Basic,ou=Users,dc=admin,dc=spike|cn=GRP_Hash,ou=Groups,dc=admin,dc=spike&lt;BR /&gt;&lt;BR /&gt;2) cn=GRP_ADC,ou=Groups,dc=admin,dc=spike|cn=GRP_Vabd_Admin,dc=admin,dc=spike|cn=GRP_Vabd_Supe&lt;BR /&gt;&lt;BR /&gt;3) cn=GRP_sos,ou=Groups,dc=command,dc=spike&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I wanted to extract for each row all that starts with GRP&lt;/P&gt;
&lt;P&gt;For example for the first line I need to extract GRP_Basic and GRP_Hash&lt;BR /&gt;For the second line I have to extract GRP_ADC and GRP_Vabd_Admin and GRP_Vabd_Supe&lt;/P&gt;
&lt;P&gt;thank you very much&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 15:55:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-fields-extraction/m-p/595861#M207409</guid>
      <dc:creator>numeroinconnu12</dc:creator>
      <dc:date>2022-04-29T15:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: fields extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-fields-extraction/m-p/595862#M207410</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex max_match=0 "(?&amp;lt;grp&amp;gt;GRP_[^,]+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 28 Apr 2022 22:52:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-fields-extraction/m-p/595862#M207410</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-28T22:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: fields extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-fields-extraction/m-p/595885#M207422</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you very much for the answer but it doesn't work.&lt;BR /&gt;I would like to extract only GRP_Basic or GRP_Hash&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 06:34:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-fields-extraction/m-p/595885#M207422</guid>
      <dc:creator>numeroinconnu12</dc:creator>
      <dc:date>2022-04-29T06:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: fields extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-fields-extraction/m-p/595887#M207423</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/216298"&gt;@numeroinconnu12&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you have two choices:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;use the regex from&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;and filter results for the two values you want after the rex command using the search command,&lt;/LI&gt;&lt;LI&gt;insert the condition about the two values in the regex.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;about the second please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex max_match=0 "(?&amp;lt;grp&amp;gt;GRP_Basic|GRC_Hash)"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 06:38:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-fields-extraction/m-p/595887#M207423</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-04-29T06:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: fields extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-fields-extraction/m-p/601694#M209412</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/216298"&gt;@numeroinconnu12&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 09:45:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-fields-extraction/m-p/601694#M209412</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-06-14T09:45:13Z</dc:date>
    </item>
  </channel>
</rss>

