<?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: Field Extraction - Multi Line Text Comma Separated in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Multi-Line-Text-Comma-Separated/m-p/557081#M158208</link>
    <description>&lt;P&gt;Never mind - I was able to get it working via the following in a search instead:&lt;BR /&gt;&lt;BR /&gt;| rex max_match=0 field=_raw "(?ms)Tag:\s(?&amp;lt;Tag&amp;gt;.+?),"&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jun 2021 21:26:08 GMT</pubDate>
    <dc:creator>Razziq</dc:creator>
    <dc:date>2021-06-24T21:26:08Z</dc:date>
    <item>
      <title>Field Extraction - Multi Line Text Comma Separated</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Multi-Line-Text-Comma-Separated/m-p/557035#M158197</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Hoping someone can help with a Field Extraction question regarding multi line text and capturing a specific value before a comma for each line.&lt;/P&gt;&lt;P&gt;The text example is below where I am trying to get the Tagname for each line, but the Field Extraction is only applying to the first line. Testing in Rubular or Regex101 and it works fine.&lt;/P&gt;&lt;P&gt;Tag: &lt;STRONG&gt;Tagname&lt;/STRONG&gt;,Date,Value&lt;BR /&gt;Tag: &lt;STRONG&gt;Tagname1&lt;/STRONG&gt;,Date1,Value1&lt;BR /&gt;Tag: &lt;STRONG&gt;Tagname2&lt;/STRONG&gt;,Date2,Value2&lt;BR /&gt;Tag: &lt;STRONG&gt;Tagname3&lt;/STRONG&gt;,Date3,Value3&lt;BR /&gt;Tag: &lt;STRONG&gt;Tagname4&lt;/STRONG&gt;,Date4,Value4&lt;BR /&gt;Tag: &lt;STRONG&gt;Tagname5&lt;/STRONG&gt;,Date5,Value5&lt;/P&gt;&lt;P&gt;I've tried :&lt;/P&gt;&lt;P&gt;Tag:\s(?&amp;lt;Tag&amp;gt;.+?),&lt;/P&gt;&lt;P&gt;(?ms)Tag:\s (?&amp;lt;Tag&amp;gt;.+?),&lt;/P&gt;&lt;P&gt;(?m)Tag: \s(?&amp;lt;Tag&amp;gt;.+?),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As well as a few others, but all seem to stop after the first capture. Any help would be appreciated, thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 17:48:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Multi-Line-Text-Comma-Separated/m-p/557035#M158197</guid>
      <dc:creator>Razziq</dc:creator>
      <dc:date>2021-06-24T17:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction - Multi Line Text Comma Separated</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Multi-Line-Text-Comma-Separated/m-p/557081#M158208</link>
      <description>&lt;P&gt;Never mind - I was able to get it working via the following in a search instead:&lt;BR /&gt;&lt;BR /&gt;| rex max_match=0 field=_raw "(?ms)Tag:\s(?&amp;lt;Tag&amp;gt;.+?),"&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 21:26:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Multi-Line-Text-Comma-Separated/m-p/557081#M158208</guid>
      <dc:creator>Razziq</dc:creator>
      <dc:date>2021-06-24T21:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction - Multi Line Text Comma Separated</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Multi-Line-Text-Comma-Separated/m-p/557085#M158209</link>
      <description>&lt;P&gt;The default behavior is to extract only the first match.&amp;nbsp; To get more matches, use the&lt;FONT face="courier new,courier"&gt; max_match=0&lt;/FONT&gt; option of &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; in SPL, the &lt;FONT face="courier new,courier"&gt;MV_ADD&lt;/FONT&gt; attribute at search time, or the &lt;FONT face="courier new,courier"&gt;REPEAT_MATCH&lt;/FONT&gt; attribute at index time.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 21:48:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Multi-Line-Text-Comma-Separated/m-p/557085#M158209</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-06-24T21:48:42Z</dc:date>
    </item>
  </channel>
</rss>

