<?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: How to merge XML rows in one event through props.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374637#M67864</link>
    <description>&lt;P&gt;Where do you want it to break? What is one event in this file? Is the whole body a single event?&lt;/P&gt;</description>
    <pubDate>Thu, 22 Mar 2018 15:45:17 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2018-03-22T15:45:17Z</dc:date>
    <item>
      <title>How to merge XML rows in one event through props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374636#M67863</link>
      <description>&lt;P&gt;Hi to all,&lt;BR /&gt;
I've got a log file in which there are many XML messages printed.&lt;BR /&gt;
One single log message is split into many rows (as you can see from the example below), but I have to merge those rows into a single Splunk event.&lt;BR /&gt;
I'm on Splunk Enterprise Cluster Environment 6.6.2, and these logs are provided by many Universal Forwarders which sends them to two Heavy Forwarders 6.6.1 (HF) who send the logs to indexer cluster (IDX).&lt;BR /&gt;
I've tried many props.conf configurations, on HF (BREAK_ONLY_BEFORE, MUST_NOT_BREAK_AFTER, DATETIME_CONFIG, etc...), also on IDX, but Splunk continues to split the event on tag "" given that it finds a timestamp.&lt;/P&gt;

&lt;P&gt;== props.conf (on HF and IDX) ==&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_sourcetype]
SHOULD_LINEMERGE = true
BREAK_ONLY_BEFORE_DATE = false
BREAK_ONLY_BEFORE = \d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2}\.\d{4}
TIME_FORMAT = %Y-%m-%d %H:%M:%S.%4N
MAX_TIMESTAMP_LOOKAHEAD = 26
MUST_NOT_BREAK_AFTER = \s*(&amp;lt;a:Timestamp|&amp;lt;Timestamp)
MUST_NOT_BREAK_BEFORE = \s*(&amp;lt;a:Timestamp|&amp;lt;Timestamp)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;== log ==&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2018-03-22 13:57:23.0119  INFO - Output Message: {
&amp;lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&amp;gt;
  &amp;lt;s:Header&amp;gt;
    &amp;lt;Action a:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none" xmlns:a="http://schemas.xmlsoap.org/soap/envelope/"&amp;gt;http://tempuri.org/Service/tag_a&amp;lt;/Action&amp;gt;
  &amp;lt;/s:Header&amp;gt;
  &amp;lt;s:Body&amp;gt;
    &amp;lt;tag_a xmlns="http://tempuri.org/"&amp;gt;
      &amp;lt;tag_b xmlns:a="http://schemas.daact.org/2004/07/IService" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&amp;gt;
        &amp;lt;a:tag_c&amp;gt;false&amp;lt;/a:tag_c&amp;gt;
        &amp;lt;a:tag_d&amp;gt;true&amp;lt;/a:tag_d&amp;gt;
        &amp;lt;a:tag_e&amp;gt;
          &amp;lt;a:tag_f&amp;gt;&amp;lt;/a:tag_f&amp;gt;
          &amp;lt;a:tag_g&amp;gt;999999999&amp;lt;/a:tag_g&amp;gt;
          &amp;lt;a:tag_h&amp;gt;ffffffffff&amp;lt;/a:tag_h&amp;gt;
          &amp;lt;a:tag_i&amp;gt;99&amp;lt;/a:tag_i&amp;gt;
          &amp;lt;a:tag_l&amp;gt;ffffffffffffffff&amp;lt;/a:tag_l&amp;gt;
          &amp;lt;a:tag_m&amp;gt;999999999&amp;lt;/a:tag_m&amp;gt;
          &amp;lt;a:tag_n&amp;gt;fffffff&amp;lt;/a:tag_n&amp;gt;
          &amp;lt;a:tag_o&amp;gt;9,99&amp;lt;/a:tag_o&amp;gt;
          &amp;lt;a:tag_p&amp;gt;fffff&amp;lt;/a:tag_p&amp;gt;
          &amp;lt;a:tag_q&amp;gt;
            &amp;lt;a:tag_r&amp;gt;
              &amp;lt;a:tag_s&amp;gt;true&amp;lt;/a:tag_s&amp;gt;
              &amp;lt;a:tag_h&amp;gt;ffffffffff&amp;lt;/a:tag_h&amp;gt;
              &amp;lt;a:tag_l&amp;gt;ffffffffffffffff&amp;lt;/a:tag_l&amp;gt;
              &amp;lt;a:tag_t&amp;gt;22/03/2018&amp;lt;/a:tag_t&amp;gt;
              &amp;lt;a:tag_u&amp;gt;fffff&amp;lt;/a:tag_u&amp;gt;
              &amp;lt;a:tag_v&amp;gt;9999&amp;lt;/a:tag_v&amp;gt;
              &amp;lt;a:tag_z&amp;gt;9&amp;lt;/a:tag_z&amp;gt;
            &amp;lt;/a:tag_r&amp;gt;
          &amp;lt;a:TimestampLastupdate&amp;gt;2018-02-20T20:31:20.097&amp;lt;/a:TimestampLastupdate&amp;gt;
          &amp;lt;a:tag_j&amp;gt;ff&amp;lt;/a:tag_j&amp;gt;
          &amp;lt;a:tag_x&amp;gt;XML&amp;lt;/a:tag_x&amp;gt;
      &amp;lt;/a:tag_q&amp;gt;
        &amp;lt;/a:tag_e&amp;gt;
        &amp;lt;a:IsError&amp;gt;false&amp;lt;/a:IsError&amp;gt;
        &amp;lt;a:tag_k&amp;gt;
          &amp;lt;a:tag_w&amp;gt;&amp;lt;/a:tag_w&amp;gt;
          &amp;lt;a:ErrorDescription&amp;gt;&amp;lt;/a:ErrorDescription&amp;gt;
        &amp;lt;/a:tag_k&amp;gt;
      &amp;lt;/tag_b&amp;gt;
    &amp;lt;/tag_a&amp;gt;
  &amp;lt;/s:Body&amp;gt;
&amp;lt;/s:Envelope&amp;gt;
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Have you got any ideas how to fix this behavior?&lt;BR /&gt;
Also, do I have to configure only HF props.conf or only IDX props.conf or both?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:39:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374636#M67863</guid>
      <dc:creator>robertosegantin</dc:creator>
      <dc:date>2020-09-29T18:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge XML rows in one event through props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374637#M67864</link>
      <description>&lt;P&gt;Where do you want it to break? What is one event in this file? Is the whole body a single event?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 15:45:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374637#M67864</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2018-03-22T15:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge XML rows in one event through props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374638#M67865</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_sourcetype]
 SHOULD_LINEMERGE = false
 LINE_BREAKER = ([\r\n]+)(?=\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.\d+\s+\w+)
 TIME_FORMAT = %Y-%m-%d %H:%M:%S.%4N
 MAX_TIMESTAMP_LOOKAHEAD = 26
 TRUNCATE = 100000
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Mar 2018 21:59:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374638#M67865</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-03-27T21:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge XML rows in one event through props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374639#M67866</link>
      <description>&lt;P&gt;Thanks for the advice, but it does not work for me.&lt;BR /&gt;
When Splunk monitors that log file, continues to split the event.&lt;BR /&gt;
Please check the next post in which I add the screenshots&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 15:14:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374639#M67866</guid>
      <dc:creator>robertosegantin</dc:creator>
      <dc:date>2018-03-28T15:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge XML rows in one event through props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374640#M67867</link>
      <description>&lt;P&gt;I add the configuration in Heavy Forwarder and Indexer props.conf, but Splunk continues to split the event.&lt;BR /&gt;
Inside the following screenshots you can check the source event which is indexed by Splunk and the search result which highlightes the default field "_indextime"&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4608i1F7F1F4C7E871AB4/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4609i31F47C97B936C2B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 15:18:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374640#M67867</guid>
      <dc:creator>robertosegantin</dc:creator>
      <dc:date>2018-03-28T15:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge XML rows in one event through props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374641#M67868</link>
      <description>&lt;P&gt;I want to break only at the start of the event where I find the date "2018-03-22 13:57:23.0119"&lt;BR /&gt;
Unfortunately Splunk splits also when it finds the timestamp in the middle "2018-02-20T20:31:20.097"&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 15:25:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374641#M67868</guid>
      <dc:creator>robertosegantin</dc:creator>
      <dc:date>2018-03-28T15:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge XML rows in one event through props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374642#M67869</link>
      <description>&lt;P&gt;Using Splunk input data GUI, the props works perfectly, but when Splunk uses the configuration for the file which is monitoring, does not work correctly&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 15:27:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374642#M67869</guid>
      <dc:creator>robertosegantin</dc:creator>
      <dc:date>2018-03-28T15:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge XML rows in one event through props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374643#M67870</link>
      <description>&lt;P&gt;I also tryed this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    [my_sourcetype]
    SHOULD_LINEMERGE=false
    NO_BINARY_CHECK=true
    CHARSET=UTF-8
    disabled=false
    SEDCMD-blfRemover=s/\x0A//g
    SEDCMD-acrRemover=s/\x0D//g
    TRUNCATE=100000
    LINE_BREAKER=([\r\n]+)(?=\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.\d+\s+\w+)
    TIME_FORMAT=%Y-%m-%d %H:%M:%S.%4N
    MAX_TIMESTAMP_LOOKAHEAD=24
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It works only on web input data Web GUI, but not on runtime environment&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 15:54:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374643#M67870</guid>
      <dc:creator>robertosegantin</dc:creator>
      <dc:date>2018-03-28T15:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge XML rows in one event through props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374644#M67871</link>
      <description>&lt;P&gt;Hope you're putting this configuration in both you HF and restarting the splunkd instance. Also add following to props.conf which I missed earlier.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = ^
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Mar 2018 21:54:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374644#M67871</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-03-28T21:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge XML rows in one event through props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374645#M67872</link>
      <description>&lt;P&gt;I tried the following configurations but it still not working:&lt;/P&gt;

&lt;P&gt;[my-sourceytpe]&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
NO_BINARY_CHECK=true&lt;BR /&gt;
CHARSET=UTF-8&lt;BR /&gt;
disabled=false&lt;BR /&gt;
SEDCMD-blfRemover=s/\x0A//g&lt;BR /&gt;
SEDCMD-acrRemover=s/\x0D//g&lt;BR /&gt;
TRUNCATE=100000&lt;BR /&gt;
LINE_BREAKER=([\r\n]+)(?=\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.\d+\s+\w+)&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%d %H:%M:%S.%4N&lt;BR /&gt;
TIME_PREFIX = ^&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=24&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my-sourcetype]
SHOULD_LINEMERGE=false
NO_BINARY_CHECK=true
CHARSET=UTF-8
disabled=false
TRUNCATE=100000
LINE_BREAKER=([\r\n]+)(?=\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.\d+\s+\w+)
TIME_FORMAT=%Y-%m-%d %H:%M:%S.%4N
TIME_PREFIX = ^
MAX_TIMESTAMP_LOOKAHEAD=24
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For further investigation I add that the sourcetype name is composed by 2 words separated by the "-" char (example: "service-asource")&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:44:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374645#M67872</guid>
      <dc:creator>robertosegantin</dc:creator>
      <dc:date>2020-09-29T18:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge XML rows in one event through props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374646#M67873</link>
      <description>&lt;P&gt;I've just found that "my_sourcetype" is generated dynamically by a transform: before I've got "others_sourcetype" and, after the transform, Splunk overwrite "others_sourcetype"  with "my_sourcetype"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:44:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374646#M67873</guid>
      <dc:creator>robertosegantin</dc:creator>
      <dc:date>2020-09-29T18:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge XML rows in one event through props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374647#M67874</link>
      <description>&lt;P&gt;All configurations defined here are correct.&lt;BR /&gt;
In  my case Splunk does not parse correctly the props.conf because the source type that I want to process overrides, by a transforms, another one.&lt;BR /&gt;
Given that Splunk reads once a props.conf, it does not process the source type which overrides the first&lt;/P&gt;

&lt;P&gt;Check this case: &lt;A href="https://answers.splunk.com/answers/636220/what-are-the-precedence-of-stanza-and-option-in-pr.html"&gt;https://answers.splunk.com/answers/636220/what-are-the-precedence-of-stanza-and-option-in-pr.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 07:24:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-XML-rows-in-one-event-through-props-conf/m-p/374647#M67874</guid>
      <dc:creator>robertosegantin</dc:creator>
      <dc:date>2018-04-05T07:24:49Z</dc:date>
    </item>
  </channel>
</rss>

