<?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 How to extract more than one value out of  a field extraction using delimiters in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-more-than-one-value-out-of-a-field-extraction/m-p/367411#M108375</link>
    <description>&lt;P&gt;I'm using props.conf and transforms.conf to extract fields with delimiters, some of which are multi-valued.  Example:&lt;/P&gt;

&lt;P&gt;in transforms.conf: &lt;BR /&gt;
BHT_Fields]&lt;BR /&gt;
DELIMS = '*'&lt;BR /&gt;
FIELDS = BHT_1,BHT_2,BHT_3,BHT_4,BHT_5,BHT_6&lt;BR /&gt;
SOURCE_KEY = BHT&lt;/P&gt;

&lt;P&gt;The following data extracts to:&lt;BR /&gt;
BHT*0006*12*119283254-20254*20170728*102604*18 &lt;BR /&gt;
BHT_1 = 0006&lt;BR /&gt;
BHT_2 = 12&lt;BR /&gt;
...etc.&lt;/P&gt;

&lt;P&gt;But for another field:&lt;BR /&gt;
[DMG_Fields]&lt;BR /&gt;
DELIMS = '*'&lt;BR /&gt;
FIELDS = DMG_1,DMG_2,DMG_3&lt;BR /&gt;
SOURCE_KEY = DMG&lt;/P&gt;

&lt;P&gt;This field has multiple values:&lt;BR /&gt;
DMG*D8*19820811*M&lt;BR /&gt;
DMG*D8*19610130*U&lt;/P&gt;

&lt;P&gt;It extracts to:&lt;BR /&gt;
DMG_1 = D8&lt;BR /&gt;
DMG_2 = 19820811&lt;BR /&gt;
DMG_3 = M D8&lt;/P&gt;

&lt;P&gt;...and that's it.  It grabs the beginning of the second row (into the last field of the first row), then doesn't grab anything else.&lt;/P&gt;

&lt;P&gt;I've got MV_ADD = true in transforms.conf&lt;BR /&gt;
How do I get splunk to extract that second row?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:58:54 GMT</pubDate>
    <dc:creator>gregbo</dc:creator>
    <dc:date>2020-09-29T13:58:54Z</dc:date>
    <item>
      <title>How to extract more than one value out of  a field extraction using delimiters</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-more-than-one-value-out-of-a-field-extraction/m-p/367411#M108375</link>
      <description>&lt;P&gt;I'm using props.conf and transforms.conf to extract fields with delimiters, some of which are multi-valued.  Example:&lt;/P&gt;

&lt;P&gt;in transforms.conf: &lt;BR /&gt;
BHT_Fields]&lt;BR /&gt;
DELIMS = '*'&lt;BR /&gt;
FIELDS = BHT_1,BHT_2,BHT_3,BHT_4,BHT_5,BHT_6&lt;BR /&gt;
SOURCE_KEY = BHT&lt;/P&gt;

&lt;P&gt;The following data extracts to:&lt;BR /&gt;
BHT*0006*12*119283254-20254*20170728*102604*18 &lt;BR /&gt;
BHT_1 = 0006&lt;BR /&gt;
BHT_2 = 12&lt;BR /&gt;
...etc.&lt;/P&gt;

&lt;P&gt;But for another field:&lt;BR /&gt;
[DMG_Fields]&lt;BR /&gt;
DELIMS = '*'&lt;BR /&gt;
FIELDS = DMG_1,DMG_2,DMG_3&lt;BR /&gt;
SOURCE_KEY = DMG&lt;/P&gt;

&lt;P&gt;This field has multiple values:&lt;BR /&gt;
DMG*D8*19820811*M&lt;BR /&gt;
DMG*D8*19610130*U&lt;/P&gt;

&lt;P&gt;It extracts to:&lt;BR /&gt;
DMG_1 = D8&lt;BR /&gt;
DMG_2 = 19820811&lt;BR /&gt;
DMG_3 = M D8&lt;/P&gt;

&lt;P&gt;...and that's it.  It grabs the beginning of the second row (into the last field of the first row), then doesn't grab anything else.&lt;/P&gt;

&lt;P&gt;I've got MV_ADD = true in transforms.conf&lt;BR /&gt;
How do I get splunk to extract that second row?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:58:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-more-than-one-value-out-of-a-field-extraction/m-p/367411#M108375</guid>
      <dc:creator>gregbo</dc:creator>
      <dc:date>2020-09-29T13:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract more than one value out of  a field extraction using delimiters</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-more-than-one-value-out-of-a-field-extraction/m-p/367412#M108376</link>
      <description>&lt;P&gt;Try changing your transforms.conf entry like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[DMG_Fields]
REGEX = DMG\*([^\*]+)\*([^\*]+)\*([^\*]+)
FORMAT = DMG_1::$1 DMG_2::$2 DMG_3::$3
SOURCE_KEY = DMG
MV_ADD = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 May 2017 13:56:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-more-than-one-value-out-of-a-field-extraction/m-p/367412#M108376</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-05-08T13:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract more than one value out of  a field extraction using delimiters</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-more-than-one-value-out-of-a-field-extraction/m-p/367413#M108377</link>
      <description>&lt;P&gt;I tried your suggestion, but it returned nothing.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 09:40:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-more-than-one-value-out-of-a-field-extraction/m-p/367413#M108377</guid>
      <dc:creator>gregbo</dc:creator>
      <dc:date>2017-05-09T09:40:34Z</dc:date>
    </item>
  </channel>
</rss>

