<?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 Why is my data not parsing correctly? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-data-not-parsing-correctly/m-p/490268#M136914</link>
    <description>&lt;P&gt;I am trying to make sure I know how to configure an environment to ingest weblogs that are correctly parsed and I am running into trouble in that I am only getting 1 single event.  I have used feedback provided to similar questions to build out my configurations.  Note that the original intent of this exercise was to see what would the different effect be with two different props.conf.&lt;/P&gt;

&lt;P&gt;My weblog source is this on both forwarders:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  '&amp;lt;photo id="123" title="Birthday" format="jpg"&amp;gt;
       &amp;lt;owner id="1111"&amp;gt;Jason&amp;lt;/owner&amp;gt;
    &amp;lt;CreationDate&amp;gt;2009-11-06T02:22:37.063&amp;lt;/CreationDate&amp;gt;
       &amp;lt;comments&amp;gt;
           &amp;lt;comment ownerid="112"&amp;gt;Good pic!&amp;lt;/comment&amp;gt;
           &amp;lt;comment ownerif="223"&amp;gt;Happy birthday&amp;lt;/comment&amp;gt;
       &amp;lt;comments&amp;gt;
   &amp;lt;/photo&amp;gt;


  &amp;lt;photo id="123" title="Birthday" format="jpg"&amp;gt;
       &amp;lt;owner id="1111"&amp;gt;Jason&amp;lt;/owner&amp;gt;
    &amp;lt;CreationDate&amp;gt;2009-11-06T02:22:37.063&amp;lt;/CreationDate&amp;gt;
       &amp;lt;comments&amp;gt;
           &amp;lt;comment ownerid="112"&amp;gt;Good pic!&amp;lt;/comment&amp;gt;
           &amp;lt;comment ownerif="223"&amp;gt;Happy birthday&amp;lt;/comment&amp;gt;
       &amp;lt;comments&amp;gt;
   &amp;lt;/photo&amp;gt;


  &amp;lt;photo id="123" title="Birthday" format="jpg"&amp;gt;
       &amp;lt;owner id="1111"&amp;gt;Jason&amp;lt;/owner&amp;gt;
    &amp;lt;CreationDate&amp;gt;2009-11-06T02:22:37.063&amp;lt;/CreationDate&amp;gt;
       &amp;lt;comments&amp;gt;
           &amp;lt;comment ownerid="112"&amp;gt;Good pic!&amp;lt;/comment&amp;gt;
           &amp;lt;comment ownerif="223"&amp;gt;Happy birthday&amp;lt;/comment&amp;gt;
       &amp;lt;comments&amp;gt;
   &amp;lt;/photo&amp;gt;'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My inputs.conf on FW1is this:&lt;BR /&gt;
'[monitor:///home/labuser/xmldata/]&lt;BR /&gt;
index=web&lt;BR /&gt;
sourcetype=xml&lt;BR /&gt;
disabled=false'&lt;/P&gt;

&lt;P&gt;My inputs.conf on FW2 is this so that I could figure out which props.conf works:&lt;BR /&gt;
'[monitor:///home/labuser/xmldata/]&lt;BR /&gt;
index=web2&lt;BR /&gt;
sourcetype=xml2&lt;BR /&gt;
disabled=false'&lt;/P&gt;

&lt;P&gt;My props.conf on FW1 is this:&lt;BR /&gt;
'KV_MODE = xml&lt;BR /&gt;
LINE_BREAKER = ()&lt;BR /&gt;
MUST_BREAK_AFTER = \&lt;BR /&gt;
NO_BINARY_CHECK = 1&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TRUNCATE = 0&lt;BR /&gt;
TIME_PREFIX = \&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N'&lt;/P&gt;

&lt;P&gt;My props.conf on FW2 is this:&lt;BR /&gt;
'KV_MODE = xml&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)()&lt;BR /&gt;
MUST_BREAK_AFTER = \&lt;BR /&gt;
NO_BINARY_CHECK = 1&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TRUNCATE = 0&lt;BR /&gt;
TIME_PREFIX = \&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N'&lt;/P&gt;

&lt;P&gt;All the data in both web index and web2 index looks identical in Splunk that both index=web1 or index=web2 produce identical results in that I only get a single event back instead of multiple events.  What am I doing wrong? &lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 05:17:23 GMT</pubDate>
    <dc:creator>mhouse3</dc:creator>
    <dc:date>2020-09-30T05:17:23Z</dc:date>
    <item>
      <title>Why is my data not parsing correctly?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-data-not-parsing-correctly/m-p/490268#M136914</link>
      <description>&lt;P&gt;I am trying to make sure I know how to configure an environment to ingest weblogs that are correctly parsed and I am running into trouble in that I am only getting 1 single event.  I have used feedback provided to similar questions to build out my configurations.  Note that the original intent of this exercise was to see what would the different effect be with two different props.conf.&lt;/P&gt;

&lt;P&gt;My weblog source is this on both forwarders:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  '&amp;lt;photo id="123" title="Birthday" format="jpg"&amp;gt;
       &amp;lt;owner id="1111"&amp;gt;Jason&amp;lt;/owner&amp;gt;
    &amp;lt;CreationDate&amp;gt;2009-11-06T02:22:37.063&amp;lt;/CreationDate&amp;gt;
       &amp;lt;comments&amp;gt;
           &amp;lt;comment ownerid="112"&amp;gt;Good pic!&amp;lt;/comment&amp;gt;
           &amp;lt;comment ownerif="223"&amp;gt;Happy birthday&amp;lt;/comment&amp;gt;
       &amp;lt;comments&amp;gt;
   &amp;lt;/photo&amp;gt;


  &amp;lt;photo id="123" title="Birthday" format="jpg"&amp;gt;
       &amp;lt;owner id="1111"&amp;gt;Jason&amp;lt;/owner&amp;gt;
    &amp;lt;CreationDate&amp;gt;2009-11-06T02:22:37.063&amp;lt;/CreationDate&amp;gt;
       &amp;lt;comments&amp;gt;
           &amp;lt;comment ownerid="112"&amp;gt;Good pic!&amp;lt;/comment&amp;gt;
           &amp;lt;comment ownerif="223"&amp;gt;Happy birthday&amp;lt;/comment&amp;gt;
       &amp;lt;comments&amp;gt;
   &amp;lt;/photo&amp;gt;


  &amp;lt;photo id="123" title="Birthday" format="jpg"&amp;gt;
       &amp;lt;owner id="1111"&amp;gt;Jason&amp;lt;/owner&amp;gt;
    &amp;lt;CreationDate&amp;gt;2009-11-06T02:22:37.063&amp;lt;/CreationDate&amp;gt;
       &amp;lt;comments&amp;gt;
           &amp;lt;comment ownerid="112"&amp;gt;Good pic!&amp;lt;/comment&amp;gt;
           &amp;lt;comment ownerif="223"&amp;gt;Happy birthday&amp;lt;/comment&amp;gt;
       &amp;lt;comments&amp;gt;
   &amp;lt;/photo&amp;gt;'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My inputs.conf on FW1is this:&lt;BR /&gt;
'[monitor:///home/labuser/xmldata/]&lt;BR /&gt;
index=web&lt;BR /&gt;
sourcetype=xml&lt;BR /&gt;
disabled=false'&lt;/P&gt;

&lt;P&gt;My inputs.conf on FW2 is this so that I could figure out which props.conf works:&lt;BR /&gt;
'[monitor:///home/labuser/xmldata/]&lt;BR /&gt;
index=web2&lt;BR /&gt;
sourcetype=xml2&lt;BR /&gt;
disabled=false'&lt;/P&gt;

&lt;P&gt;My props.conf on FW1 is this:&lt;BR /&gt;
'KV_MODE = xml&lt;BR /&gt;
LINE_BREAKER = ()&lt;BR /&gt;
MUST_BREAK_AFTER = \&lt;BR /&gt;
NO_BINARY_CHECK = 1&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TRUNCATE = 0&lt;BR /&gt;
TIME_PREFIX = \&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N'&lt;/P&gt;

&lt;P&gt;My props.conf on FW2 is this:&lt;BR /&gt;
'KV_MODE = xml&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)()&lt;BR /&gt;
MUST_BREAK_AFTER = \&lt;BR /&gt;
NO_BINARY_CHECK = 1&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TRUNCATE = 0&lt;BR /&gt;
TIME_PREFIX = \&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N'&lt;/P&gt;

&lt;P&gt;All the data in both web index and web2 index looks identical in Splunk that both index=web1 or index=web2 produce identical results in that I only get a single event back instead of multiple events.  What am I doing wrong? &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:17:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-data-not-parsing-correctly/m-p/490268#M136914</guid>
      <dc:creator>mhouse3</dc:creator>
      <dc:date>2020-09-30T05:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my data not parsing correctly?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-data-not-parsing-correctly/m-p/490269#M136915</link>
      <description>&lt;P&gt;For  &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt;, regex &lt;STRONG&gt;captured group&lt;/STRONG&gt; should contain everything between end of previous event and beginning of current event. Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[xml]
KV_MODE = xml
LINE_BREAKER = \&amp;lt;\/photo\&amp;gt;([\r\n\s]+)\&amp;lt;photo
NO_BINARY_CHECK = 1
TRUNCATE = 0
TIME_PREFIX = \&amp;lt;CreationDate\&amp;gt;
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 03 May 2020 07:43:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-data-not-parsing-correctly/m-p/490269#M136915</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-05-03T07:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my data not parsing correctly?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-data-not-parsing-correctly/m-p/490270#M136916</link>
      <description>&lt;P&gt;@manjunathmeti I just realized that my questions got cut off.&lt;/P&gt;

&lt;P&gt;I was actually using:&lt;BR /&gt;
LINE_BREAKER = ()&lt;/P&gt;

&lt;P&gt;and later tried using this:&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)()&lt;/P&gt;

&lt;P&gt;In both cases all the data came in as a single event.  These should have worked right?&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 19:45:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-data-not-parsing-correctly/m-p/490270#M136916</guid>
      <dc:creator>mhouse3</dc:creator>
      <dc:date>2020-05-04T19:45:52Z</dc:date>
    </item>
  </channel>
</rss>

