<?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 docker multiline merging in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/docker-multiline-merging/m-p/386572#M69369</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am unable to have the multiline logs produced by a Docker container (raw format exported to a HEC input) merged&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;docker run --log-driver=splunk \
                --log-opt splunk-token=**************** \
                --log-opt splunk-url=https://localhost:8088 \
                --log-opt splunk-capath=/opt/splunk/etc/auth/server.pem \
                --log-opt splunk-caname=SplunkServerDefaultCert \
                --log-opt splunk-format=raw \
                --log-opt tag="" \
                --log-opt splunk-source="test_source"\
                --log-opt splunk-sourcetype="docker"\
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and props.conf looks like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[docker]
LINE_BREAKER = \d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2},\d{3}
MAX_EVENTS = 10000
TRUNCATE = 111111110
SHOULD_LINEMERGE = false
NO_BINARY_CHECK = True
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the logs are normal tomcat logs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2018-08-07 11:46:05,998 [http://localhost/bin/view/Main/] WARN  o.a.s.a.RequestProcessor       - Unhandled Exception thrown: class com.xpn.xwiki.XWikiException 
2018-08-07 11:46:23,802 [http://localhost/bin/view/Main/] ERROR c.x.x.s.DBCPConnectionProvider - Could not create a DBCP pool. There is an error in the Hibernate configuration file, please review it. 
    java.sql.SQLException: Cannot load JDBC driver class 'org.hsqldb.jdbcDriver'
    at org.apache.commons.dbcp2.BasicDataSource.createConnectionFactory(BasicDataSource.java:2139)
    at org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2033)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have made several attempts (BREAK_ONLY_BEFORE, LINE_BREAKER), but the merging before indexing still doesn't take place; are there special rules for data coming in via HEC ?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 20:44:30 GMT</pubDate>
    <dc:creator>petreb</dc:creator>
    <dc:date>2020-09-29T20:44:30Z</dc:date>
    <item>
      <title>docker multiline merging</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/docker-multiline-merging/m-p/386572#M69369</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am unable to have the multiline logs produced by a Docker container (raw format exported to a HEC input) merged&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;docker run --log-driver=splunk \
                --log-opt splunk-token=**************** \
                --log-opt splunk-url=https://localhost:8088 \
                --log-opt splunk-capath=/opt/splunk/etc/auth/server.pem \
                --log-opt splunk-caname=SplunkServerDefaultCert \
                --log-opt splunk-format=raw \
                --log-opt tag="" \
                --log-opt splunk-source="test_source"\
                --log-opt splunk-sourcetype="docker"\
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and props.conf looks like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[docker]
LINE_BREAKER = \d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2},\d{3}
MAX_EVENTS = 10000
TRUNCATE = 111111110
SHOULD_LINEMERGE = false
NO_BINARY_CHECK = True
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the logs are normal tomcat logs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2018-08-07 11:46:05,998 [http://localhost/bin/view/Main/] WARN  o.a.s.a.RequestProcessor       - Unhandled Exception thrown: class com.xpn.xwiki.XWikiException 
2018-08-07 11:46:23,802 [http://localhost/bin/view/Main/] ERROR c.x.x.s.DBCPConnectionProvider - Could not create a DBCP pool. There is an error in the Hibernate configuration file, please review it. 
    java.sql.SQLException: Cannot load JDBC driver class 'org.hsqldb.jdbcDriver'
    at org.apache.commons.dbcp2.BasicDataSource.createConnectionFactory(BasicDataSource.java:2139)
    at org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2033)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have made several attempts (BREAK_ONLY_BEFORE, LINE_BREAKER), but the merging before indexing still doesn't take place; are there special rules for data coming in via HEC ?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:44:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/docker-multiline-merging/m-p/386572#M69369</guid>
      <dc:creator>petreb</dc:creator>
      <dc:date>2020-09-29T20:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: docker multiline merging</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/docker-multiline-merging/m-p/386573#M69370</link>
      <description>&lt;P&gt;@petreb&lt;/P&gt;

&lt;P&gt;I believe line-merge is only available for the raw endpoint on HTTP Event Collector &lt;A href="http://dev.splunk.com/view/event-collector/SP-CAAAE6P#raw"&gt;http://dev.splunk.com/view/event-collector/SP-CAAAE6P#raw&lt;/A&gt;, so the events need to be merged before you send them to HEC.&lt;/P&gt;

&lt;P&gt;I can recommend you to look at our solution for forwarding docker logs to Splunk &lt;A href="https://www.outcoldsolutions.com/docs/collectorfordocker/#join-rules"&gt;https://www.outcoldsolutions.com/docs/collectorfordocker/#join-rules&lt;/A&gt;, that allows you to predefine advanced patterns how lines need to be merged before we send them to HEC &lt;A href="https://www.outcoldsolutions.com/blog/2018-03-11-forwarding-pretty-json-logs-to-splunk/"&gt;https://www.outcoldsolutions.com/blog/2018-03-11-forwarding-pretty-json-logs-to-splunk/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 17:30:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/docker-multiline-merging/m-p/386573#M69370</guid>
      <dc:creator>outcoldman</dc:creator>
      <dc:date>2018-08-07T17:30:00Z</dc:date>
    </item>
  </channel>
</rss>

