<?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 SHOULD_LINEMERGE from HEC props.conf in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/SHOULD-LINEMERGE-from-HEC-props-conf/m-p/526927#M3970</link>
    <description>&lt;P&gt;On Kubernetes environment there is installed Fluentd Splunk plugin which sends to Heavy Forwarder, via HEC, the standard output application logs.&lt;/P&gt;&lt;P&gt;The&amp;nbsp;standard output application logs are not structured and I'm not able to&amp;nbsp; apply line merge to them.&lt;/P&gt;&lt;P&gt;My input.conf is:&lt;/P&gt;&lt;P&gt;[http://k8s_hec]&lt;BR /&gt;disabled = 0&lt;BR /&gt;index = em_events&lt;BR /&gt;source = em_metrics&lt;BR /&gt;token = aaaaaaaa-bbbb-cccc-dddd-fffffffffff&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fluentd defined many sourcetypes, and all custom applications sourcetypes end with "app";&amp;nbsp; for example:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;kube:container:goofy-app&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;kube:container:donald-duck-app&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I defined these two configurations in props.conf inside my HF, but I'm not able to merge events:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[kube:container:*-app]&lt;BR /&gt;SHOULD_LINEMERGE=true&lt;BR /&gt;LINE_BREAKER=([\r\n]+)&lt;BR /&gt;NO_BINARY_CHECK=true&lt;BR /&gt;CHARSET=UTF-8&lt;BR /&gt;MAX_TIMESTAMP_LOOKAHEAD=30&lt;BR /&gt;disabled=false&lt;BR /&gt;TIME_FORMAT=%Y-%m-%d %H:%M:%S.%3N&lt;BR /&gt;TIME_PREFIX=^&lt;BR /&gt;MAX_EVENTS=1024&lt;/P&gt;&lt;P&gt;[source::k8s_hec]&lt;BR /&gt;SHOULD_LINEMERGE=true&lt;BR /&gt;LINE_BREAKER=([\r\n]+)&lt;BR /&gt;NO_BINARY_CHECK=true&lt;BR /&gt;CHARSET=UTF-8&lt;BR /&gt;MAX_TIMESTAMP_LOOKAHEAD=30&lt;BR /&gt;disabled=false&lt;BR /&gt;TIME_FORMAT=%Y-%m-%d %H:%M:%S.%3N&lt;BR /&gt;TIME_PREFIX=^&lt;BR /&gt;MAX_EVENTS=1024&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone can help me?&lt;/P&gt;</description>
    <pubDate>Wed, 28 Oct 2020 17:01:49 GMT</pubDate>
    <dc:creator>robertosegantin</dc:creator>
    <dc:date>2020-10-28T17:01:49Z</dc:date>
    <item>
      <title>SHOULD_LINEMERGE from HEC props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/SHOULD-LINEMERGE-from-HEC-props-conf/m-p/526927#M3970</link>
      <description>&lt;P&gt;On Kubernetes environment there is installed Fluentd Splunk plugin which sends to Heavy Forwarder, via HEC, the standard output application logs.&lt;/P&gt;&lt;P&gt;The&amp;nbsp;standard output application logs are not structured and I'm not able to&amp;nbsp; apply line merge to them.&lt;/P&gt;&lt;P&gt;My input.conf is:&lt;/P&gt;&lt;P&gt;[http://k8s_hec]&lt;BR /&gt;disabled = 0&lt;BR /&gt;index = em_events&lt;BR /&gt;source = em_metrics&lt;BR /&gt;token = aaaaaaaa-bbbb-cccc-dddd-fffffffffff&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fluentd defined many sourcetypes, and all custom applications sourcetypes end with "app";&amp;nbsp; for example:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;kube:container:goofy-app&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;kube:container:donald-duck-app&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I defined these two configurations in props.conf inside my HF, but I'm not able to merge events:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[kube:container:*-app]&lt;BR /&gt;SHOULD_LINEMERGE=true&lt;BR /&gt;LINE_BREAKER=([\r\n]+)&lt;BR /&gt;NO_BINARY_CHECK=true&lt;BR /&gt;CHARSET=UTF-8&lt;BR /&gt;MAX_TIMESTAMP_LOOKAHEAD=30&lt;BR /&gt;disabled=false&lt;BR /&gt;TIME_FORMAT=%Y-%m-%d %H:%M:%S.%3N&lt;BR /&gt;TIME_PREFIX=^&lt;BR /&gt;MAX_EVENTS=1024&lt;/P&gt;&lt;P&gt;[source::k8s_hec]&lt;BR /&gt;SHOULD_LINEMERGE=true&lt;BR /&gt;LINE_BREAKER=([\r\n]+)&lt;BR /&gt;NO_BINARY_CHECK=true&lt;BR /&gt;CHARSET=UTF-8&lt;BR /&gt;MAX_TIMESTAMP_LOOKAHEAD=30&lt;BR /&gt;disabled=false&lt;BR /&gt;TIME_FORMAT=%Y-%m-%d %H:%M:%S.%3N&lt;BR /&gt;TIME_PREFIX=^&lt;BR /&gt;MAX_EVENTS=1024&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone can help me?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 17:01:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/SHOULD-LINEMERGE-from-HEC-props-conf/m-p/526927#M3970</guid>
      <dc:creator>robertosegantin</dc:creator>
      <dc:date>2020-10-28T17:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: SHOULD_LINEMERGE from HEC props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/SHOULD-LINEMERGE-from-HEC-props-conf/m-p/526959#M3974</link>
      <description>&lt;P&gt;Have you looked at the indexed data to see if it's arriving in the expected format?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 19:34:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/SHOULD-LINEMERGE-from-HEC-props-conf/m-p/526959#M3974</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-10-28T19:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: SHOULD_LINEMERGE from HEC props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/SHOULD-LINEMERGE-from-HEC-props-conf/m-p/527027#M3980</link>
      <description>&lt;P&gt;To be more clear I update the events indexed:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="indexed_data.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11562i72FE78471691FFD5/image-size/large?v=v2&amp;amp;px=999" role="button" title="indexed_data.png" alt="indexed_data.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I need to merge all these events received via HEC.&lt;/P&gt;&lt;P&gt;If I read these events in a classical way, via log reading, with a more simple configuration, Splunk is able to merge them:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adddata.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11563i4F5BEF100997662D/image-size/large?v=v2&amp;amp;px=999" role="button" title="adddata.png" alt="adddata.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that is not a limit about HEC method.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:59:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/SHOULD-LINEMERGE-from-HEC-props-conf/m-p/527027#M3980</guid>
      <dc:creator>robertosegantin</dc:creator>
      <dc:date>2020-10-29T08:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: SHOULD_LINEMERGE from HEC props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/SHOULD-LINEMERGE-from-HEC-props-conf/m-p/527051#M3981</link>
      <description>&lt;P&gt;humm, your props doesnt really tell how to merge.&lt;/P&gt;&lt;P&gt;One possible solution would be to add date form at the end of your LINE_BREAKER&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 10:17:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/SHOULD-LINEMERGE-from-HEC-props-conf/m-p/527051#M3981</guid>
      <dc:creator>maraman_splunk</dc:creator>
      <dc:date>2020-10-29T10:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: SHOULD_LINEMERGE from HEC props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/SHOULD-LINEMERGE-from-HEC-props-conf/m-p/541671#M5071</link>
      <description>&lt;P&gt;you need to use the concat filter to line merge these events BEFORE HEC. Please see multiline filter rules in Splunk Connect for Kubernetes&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/splunk/splunk-connect-for-kubernetes#processing-multi-line-logs" target="_blank"&gt;https://github.com/splunk/splunk-connect-for-kubernetes#processing-multi-line-logs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Concat filter plugin is used and make sure the HEC payload makes it to Splunk already line-merged.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are gnarly props and transforms hack to do this work but it is better at the collector or in Data Stream Processor or other stream proc products out there. This is because the container runtimes themselves don't even support multiline logging at this point&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 14:27:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/SHOULD-LINEMERGE-from-HEC-props-conf/m-p/541671#M5071</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2021-02-28T14:27:49Z</dc:date>
    </item>
  </channel>
</rss>

