<?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: XML Log Line Breaking and Timestamps in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/XML-Log-Line-Breaking-and-Timestamps/m-p/174309#M35083</link>
    <description>&lt;P&gt;I only had to kodify it slightly to&lt;/P&gt;

&lt;P&gt;[xmltest2]&lt;BR /&gt;
LINE_BREAKER = ([\r\n]*)&amp;lt;ENTRY&amp;gt;&lt;BR /&gt;
NO_BINARY_CHECK = 1&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%dT%H:%M:%S&lt;BR /&gt;
TIME_PREFIX = VRIJEME&amp;gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 17:17:19 GMT</pubDate>
    <dc:creator>skansi</dc:creator>
    <dc:date>2020-09-28T17:17:19Z</dc:date>
    <item>
      <title>XML Log Line Breaking and Timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/XML-Log-Line-Breaking-and-Timestamps/m-p/174305#M35079</link>
      <description>&lt;P&gt;Hello, I have a problem I could use some help with.&lt;/P&gt;

&lt;P&gt;I need to extract data from a XML log file (entries are labelled &lt;EVENT&gt;) in Splunk. I have to upload an XML log file, and it uploads as a text string. Here is the XML sample:&lt;/EVENT&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;LOG&amp;gt;&amp;lt;ENTRY&amp;gt;&amp;lt;VRIJEME&amp;gt;2010-08-12T10:38:26&amp;lt;/VRIJEME&amp;gt;&amp;lt;CC&amp;gt;9369175136276314&amp;lt;/CC&amp;gt;&amp;lt;IZNOS&amp;gt;6427.91&amp;lt;/IZNOS&amp;gt;&amp;lt;/ENTRY&amp;gt;&amp;lt;ENTRY&amp;gt;&amp;lt;VRIJEME&amp;gt;1998-06-17T04:13:55&amp;lt;/VRIJEME&amp;gt;&amp;lt;CC&amp;gt;6675476885047681&amp;lt;/CC&amp;gt;&amp;lt;IZNOS&amp;gt;72452.87&amp;lt;/IZNOS&amp;gt;&amp;lt;/ENTRY&amp;gt;......&amp;lt;/LOG&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I use ISO time (YYYY-MM-DDTHH:MM:SS). This way Splunk automatically recognized the first timestamp in the string. I want to break the text in separate events so that Splunk can take the timestamp from each line. &lt;/P&gt;

&lt;P&gt;I tried to add &lt;CODE&gt;LINE_BREAKER = ([\r\n]*)&amp;lt;ENTRY&amp;gt;&lt;/CODE&gt; (this worked for the non-ISO time, where Splunk did not recognize the timestamp), but Splunk gets stuck at 100%.&lt;/P&gt;

&lt;P&gt;Thanks! Cheers!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2014 12:11:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/XML-Log-Line-Breaking-and-Timestamps/m-p/174305#M35079</guid>
      <dc:creator>skansi</dc:creator>
      <dc:date>2014-08-07T12:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: XML Log Line Breaking and Timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/XML-Log-Line-Breaking-and-Timestamps/m-p/174306#M35080</link>
      <description>&lt;P&gt;Sorry, the forum ate up the backslashes:&lt;BR /&gt;
 LINE_BREAKER = ([backslashrbackslashn]*)&lt;ENTRY&gt;&lt;/ENTRY&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2014 12:13:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/XML-Log-Line-Breaking-and-Timestamps/m-p/174306#M35080</guid>
      <dc:creator>skansi</dc:creator>
      <dc:date>2014-08-07T12:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: XML Log Line Breaking and Timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/XML-Log-Line-Breaking-and-Timestamps/m-p/174307#M35081</link>
      <description>&lt;P&gt;Try something like this in you porps.conf.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
BREAK_ONLY_BEFORE = ([\r\n]*)\&amp;lt;ENTRY\&amp;gt;
NO_BINARY_CHECK = 1
TIME_FORMAT = %Y-%m-%dT%H:%M:%S
TIME_PREFIX = VRIJEME\&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Aug 2014 13:53:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/XML-Log-Line-Breaking-and-Timestamps/m-p/174307#M35081</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-07T13:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: XML Log Line Breaking and Timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/XML-Log-Line-Breaking-and-Timestamps/m-p/174308#M35082</link>
      <description>&lt;P&gt;Thanks, it worked!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2014 17:09:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/XML-Log-Line-Breaking-and-Timestamps/m-p/174308#M35082</guid>
      <dc:creator>skansi</dc:creator>
      <dc:date>2014-08-07T17:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: XML Log Line Breaking and Timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/XML-Log-Line-Breaking-and-Timestamps/m-p/174309#M35083</link>
      <description>&lt;P&gt;I only had to kodify it slightly to&lt;/P&gt;

&lt;P&gt;[xmltest2]&lt;BR /&gt;
LINE_BREAKER = ([\r\n]*)&amp;lt;ENTRY&amp;gt;&lt;BR /&gt;
NO_BINARY_CHECK = 1&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%dT%H:%M:%S&lt;BR /&gt;
TIME_PREFIX = VRIJEME&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:17:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/XML-Log-Line-Breaking-and-Timestamps/m-p/174309#M35083</guid>
      <dc:creator>skansi</dc:creator>
      <dc:date>2020-09-28T17:17:19Z</dc:date>
    </item>
  </channel>
</rss>

