<?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: INLINE EXTRACTION with /g option for RegEX in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/INLINE-EXTRACTION-with-g-option-for-RegEX/m-p/649611#M224606</link>
    <description>&lt;P&gt;Have you tried&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MV_ADD = true&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 07 Jul 2023 09:56:50 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-07-07T09:56:50Z</dc:date>
    <item>
      <title>INLINE EXTRACTION with /g option for RegEX</title>
      <link>https://community.splunk.com/t5/Splunk-Search/INLINE-EXTRACTION-with-g-option-for-RegEX/m-p/649610#M224605</link>
      <description>&lt;P&gt;Hi.&lt;BR /&gt;Question:&lt;BR /&gt;is there a way to add the classic /g option for RegEX in &lt;U&gt;&lt;STRONG&gt;INLINE RegEX extractor&lt;/STRONG&gt; &lt;/U&gt;for Splunk (props), without using command rex or other tranformations?&lt;/P&gt;&lt;P&gt;Example,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SerialNumber=12345,SerialNumber=67890&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With a classical regex, "&lt;FONT color="#0000FF"&gt;&lt;EM&gt;/SerialNumber=(?P&amp;lt;sn&amp;gt;\d+)/g&lt;/EM&gt;&lt;/FONT&gt;" i can found "12345" &amp;amp; "67890".&lt;BR /&gt;Same with an SPL "&lt;FONT color="#0000FF"&gt;rex &lt;EM&gt;max-match=0 "SerialNumber=(?P&amp;lt;sn&amp;gt;\d+)&lt;/EM&gt;&lt;/FONT&gt;".&lt;BR /&gt;But how to do it in &lt;U&gt;&lt;STRONG&gt;INLINE extraction&lt;/STRONG&gt;&lt;/U&gt;?&lt;BR /&gt;&lt;BR /&gt;I got rid of the "problem" using extraction of "sn1" &amp;amp; "sn2" fields and transforming them with an eval transformation ("sn = sn1.' , '.sn2") and it works fine. But if, tomorrow, i'll find something like&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SerialNumber=12345,SerialNumber=67890,SerialNumber=09876,SerialNumber=54321&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Without the rex i would be in trouble!&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 09:42:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/INLINE-EXTRACTION-with-g-option-for-RegEX/m-p/649610#M224605</guid>
      <dc:creator>verbal_666</dc:creator>
      <dc:date>2023-07-07T09:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: INLINE EXTRACTION with /g option for RegEX</title>
      <link>https://community.splunk.com/t5/Splunk-Search/INLINE-EXTRACTION-with-g-option-for-RegEX/m-p/649611#M224606</link>
      <description>&lt;P&gt;Have you tried&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MV_ADD = true&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 07 Jul 2023 09:56:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/INLINE-EXTRACTION-with-g-option-for-RegEX/m-p/649611#M224606</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-07T09:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: INLINE EXTRACTION with /g option for RegEX</title>
      <link>https://community.splunk.com/t5/Splunk-Search/INLINE-EXTRACTION-with-g-option-for-RegEX/m-p/649612#M224607</link>
      <description>&lt;P&gt;Mmmmm... where? &lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt; ... in transforms.conf?&lt;BR /&gt;So there is no WebIf option to do it?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 10:09:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/INLINE-EXTRACTION-with-g-option-for-RegEX/m-p/649612#M224607</guid>
      <dc:creator>verbal_666</dc:creator>
      <dc:date>2023-07-07T10:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: INLINE EXTRACTION with /g option for RegEX</title>
      <link>https://community.splunk.com/t5/Splunk-Search/INLINE-EXTRACTION-with-g-option-for-RegEX/m-p/649613#M224608</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;have you try to use (?g) on beginning of regex? Another option is use transforms and then MV as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;already proposed.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 10:15:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/INLINE-EXTRACTION-with-g-option-for-RegEX/m-p/649613#M224608</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-07-07T10:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: INLINE EXTRACTION with /g option for RegEX</title>
      <link>https://community.splunk.com/t5/Splunk-Search/INLINE-EXTRACTION-with-g-option-for-RegEX/m-p/649614#M224609</link>
      <description>&lt;P&gt;I'll try the "?g" on beginning. I tried the "/g" at the end, but without success &lt;span class="lia-unicode-emoji" title=":smirking_face:"&gt;😏&lt;/span&gt;&lt;BR /&gt;I prefer to only use props and not also transforms.&lt;BR /&gt;Thanks anyway.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 10:17:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/INLINE-EXTRACTION-with-g-option-for-RegEX/m-p/649614#M224609</guid>
      <dc:creator>verbal_666</dc:creator>
      <dc:date>2023-07-07T10:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: INLINE EXTRACTION with /g option for RegEX</title>
      <link>https://community.splunk.com/t5/Splunk-Search/INLINE-EXTRACTION-with-g-option-for-RegEX/m-p/649615#M224610</link>
      <description>Like this (?g) or just ?g, brackets is mandatory.</description>
      <pubDate>Fri, 07 Jul 2023 10:19:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/INLINE-EXTRACTION-with-g-option-for-RegEX/m-p/649615#M224610</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-07-07T10:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: INLINE EXTRACTION with /g option for RegEX</title>
      <link>https://community.splunk.com/t5/Splunk-Search/INLINE-EXTRACTION-with-g-option-for-RegEX/m-p/649617#M224611</link>
      <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.5/Knowledge/Exampleconfigurationsusingfieldtransforms#Handling_events_with_multivalue_fields" target="_blank"&gt;Example transform field extraction configurations - Splunk Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 10:33:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/INLINE-EXTRACTION-with-g-option-for-RegEX/m-p/649617#M224611</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-07T10:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: INLINE EXTRACTION with /g option for RegEX</title>
      <link>https://community.splunk.com/t5/Splunk-Search/INLINE-EXTRACTION-with-g-option-for-RegEX/m-p/649619#M224613</link>
      <description>&lt;P&gt;Ok with props &amp;amp; transforms solution.&lt;BR /&gt;Ticking the "create mv fields", adds the MV_ADD to transforms and does the trick.&lt;BR /&gt;I was going to prefer to only use props, but it's ok &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;&lt;P&gt;ps. the "(?g)" text in regex INLINE gives errors in regex format.&lt;/P&gt;&lt;P&gt;Thanks all &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 10:40:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/INLINE-EXTRACTION-with-g-option-for-RegEX/m-p/649619#M224613</guid>
      <dc:creator>verbal_666</dc:creator>
      <dc:date>2023-07-07T10:40:39Z</dc:date>
    </item>
  </channel>
</rss>

