<?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: Props.conf not picking up linemerge in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Props-conf-not-picking-up-linemerge/m-p/578821#M102183</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/71359"&gt;@markhvesta&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is because Splunk Connect for Kubernetes sends data using the HTTP Event Collector ("HEC") Event&amp;nbsp; endpoint and events that come through "HEC" event endpoint do not hit the line merge processor.&lt;BR /&gt;&lt;BR /&gt;For more info, the events are sent like &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.3/Data/IFXandHEC#Add_a_fields_property_at_the_top_JSON_level" target="_self"&gt;this&lt;/A&gt;&amp;nbsp;to automate extraction of key Kubernetes metadata for you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To deal with multiline events, the line merge must be done ahead of time in the logging collector config:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/splunk/splunk-connect-for-kubernetes/blob/09cb0462a624d348aa6bc94c0996599907de88f7/helm-chart/splunk-connect-for-kubernetes/values.yaml#L217-L285" target="_blank" rel="noopener"&gt;https://github.com/splunk/splunk-connect-for-kubernetes/blob/09cb0462a624d348aa6bc94c0996599907de88f7/helm-chart/splunk-connect-for-kubernetes/values.yaml#L217-L285&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Like this example that I applied to the Connect for Kubernetes logging pod:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  logs:
    sck:
      from:
        pod: sck-splunk-kubernetes-
        container: splunk-fluentd-k8s-
      multiline:
        firstline: /^\d{4}-\d{2}-\d{2}\s\d{2}\:\d{2}\:\d{2}\s\+\d{4}\s\[\w+\]\:/
        separator: "\n"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This is done with the fluentd "concat" filter that we ship in Splunk Connect for Kubernetes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Be sure to use rubular.com to test your regex as Fluentd uses ruby regex.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similar option is available in our OpenTelemetry collector, which you may also want to get familiar with in the future as it is a more performant option for k8s log collection if you need high velocity logging as your clusters get bigger and bigger.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/signalfx/splunk-otel-collector-chart/blob/26e37677a947d7081d686d2b7533057196bba070/helm-charts/splunk-otel-collector/values.yaml#L369-L399" target="_blank"&gt;https://github.com/signalfx/splunk-otel-collector-chart/blob/26e37677a947d7081d686d2b7533057196bba070/helm-charts/splunk-otel-collector/values.yaml#L369-L399&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 18 Dec 2021 14:05:17 GMT</pubDate>
    <dc:creator>mattymo</dc:creator>
    <dc:date>2021-12-18T14:05:17Z</dc:date>
    <item>
      <title>Props.conf not picking up linemerge</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-conf-not-picking-up-linemerge/m-p/578784#M102177</link>
      <description>&lt;P&gt;Lines in my sourcetype are not being picked up correctly at all.&amp;nbsp; Each event is being split into dozens of lines.&amp;nbsp; Also, when I go into the Settings in the UI for sourcetypes, I see all of the configs matching what I have set except for&amp;nbsp;SHOULD_LINEMERGE = true.&amp;nbsp; This comes up as false.&amp;nbsp; I try resetting it in the UI and it still comes up as false even though that should not be set anywhere.&amp;nbsp; Btool shows it should be set to true, but it still comes up as false.&lt;/P&gt;&lt;P&gt;Btool shows these settings&lt;/P&gt;&lt;P&gt;[kube:container:applicationservice-app]&lt;BR /&gt;BREAK_ONLY_BEFORE_DATE = true&lt;BR /&gt;LINE_BREAKER = (\d{2}\:\d{2}\:\d{2}\.\d{3})(?:\s\[Thread)&lt;BR /&gt;MAX_TIMESTAMP_LOOKAHEAD = 128&lt;BR /&gt;SHOULD_LINEMERGE = true&lt;BR /&gt;TIME_FORMAT = %H:%M:%S.%Q&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 17:53:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-conf-not-picking-up-linemerge/m-p/578784#M102177</guid>
      <dc:creator>markhvesta</dc:creator>
      <dc:date>2021-12-17T17:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Props.conf not picking up linemerge</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-conf-not-picking-up-linemerge/m-p/578786#M102178</link>
      <description>Can you sent some sample events?</description>
      <pubDate>Fri, 17 Dec 2021 18:17:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-conf-not-picking-up-linemerge/m-p/578786#M102178</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-12-17T18:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Props.conf not picking up linemerge</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-conf-not-picking-up-linemerge/m-p/578788#M102179</link>
      <description>&lt;P&gt;23:08:13.182 [Thread-440] INFO io.vesta.vnext.logging.azure.blob.AzureLogFile - [INFORMATIONAL][d811ffd5-72eb-4444-af55-6f5d002c95d0] {&lt;BR /&gt;"date" : "2021-12-14T23:08:13.182419",&lt;BR /&gt;"correlationId" : "d811ffd5-72eb-4444-af55-6f5d002c95d0",&lt;BR /&gt;"logLevel" : "INFORMATIONAL",&lt;BR /&gt;"category" : "HttpResponse",&lt;BR /&gt;"requestPath" : "/api/domaindata/find/PaymentProcessors/search",&lt;BR /&gt;"azureUserId" : "e8668b6a-57f7-474d-8e67-3df5bae5c55c",&lt;BR /&gt;"customerId" : 87,&lt;BR /&gt;"message" : "[{\"PaymentProcessorId&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 18:53:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-conf-not-picking-up-linemerge/m-p/578788#M102179</guid>
      <dc:creator>markhvesta</dc:creator>
      <dc:date>2021-12-17T18:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Props.conf not picking up linemerge</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-conf-not-picking-up-linemerge/m-p/578805#M102180</link>
      <description>Is this a full event? It seems that there is something missing on message part?</description>
      <pubDate>Fri, 17 Dec 2021 21:09:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-conf-not-picking-up-linemerge/m-p/578805#M102180</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-12-17T21:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Props.conf not picking up linemerge</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-conf-not-picking-up-linemerge/m-p/578807#M102181</link>
      <description>&lt;P&gt;It isn't the full event; some of these events can be fairly verbose. but in this example each line or every other line would be its own event.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 21:14:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-conf-not-picking-up-linemerge/m-p/578807#M102181</guid>
      <dc:creator>markhvesta</dc:creator>
      <dc:date>2021-12-17T21:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Props.conf not picking up linemerge</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-conf-not-picking-up-linemerge/m-p/578820#M102182</link>
      <description>Can you add the last “line” of this event, so we could see how it ends?</description>
      <pubDate>Sat, 18 Dec 2021 11:36:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-conf-not-picking-up-linemerge/m-p/578820#M102182</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-12-18T11:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Props.conf not picking up linemerge</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-conf-not-picking-up-linemerge/m-p/578821#M102183</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/71359"&gt;@markhvesta&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is because Splunk Connect for Kubernetes sends data using the HTTP Event Collector ("HEC") Event&amp;nbsp; endpoint and events that come through "HEC" event endpoint do not hit the line merge processor.&lt;BR /&gt;&lt;BR /&gt;For more info, the events are sent like &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.3/Data/IFXandHEC#Add_a_fields_property_at_the_top_JSON_level" target="_self"&gt;this&lt;/A&gt;&amp;nbsp;to automate extraction of key Kubernetes metadata for you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To deal with multiline events, the line merge must be done ahead of time in the logging collector config:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/splunk/splunk-connect-for-kubernetes/blob/09cb0462a624d348aa6bc94c0996599907de88f7/helm-chart/splunk-connect-for-kubernetes/values.yaml#L217-L285" target="_blank" rel="noopener"&gt;https://github.com/splunk/splunk-connect-for-kubernetes/blob/09cb0462a624d348aa6bc94c0996599907de88f7/helm-chart/splunk-connect-for-kubernetes/values.yaml#L217-L285&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Like this example that I applied to the Connect for Kubernetes logging pod:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  logs:
    sck:
      from:
        pod: sck-splunk-kubernetes-
        container: splunk-fluentd-k8s-
      multiline:
        firstline: /^\d{4}-\d{2}-\d{2}\s\d{2}\:\d{2}\:\d{2}\s\+\d{4}\s\[\w+\]\:/
        separator: "\n"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This is done with the fluentd "concat" filter that we ship in Splunk Connect for Kubernetes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Be sure to use rubular.com to test your regex as Fluentd uses ruby regex.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similar option is available in our OpenTelemetry collector, which you may also want to get familiar with in the future as it is a more performant option for k8s log collection if you need high velocity logging as your clusters get bigger and bigger.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/signalfx/splunk-otel-collector-chart/blob/26e37677a947d7081d686d2b7533057196bba070/helm-charts/splunk-otel-collector/values.yaml#L369-L399" target="_blank"&gt;https://github.com/signalfx/splunk-otel-collector-chart/blob/26e37677a947d7081d686d2b7533057196bba070/helm-charts/splunk-otel-collector/values.yaml#L369-L399&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Dec 2021 14:05:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-conf-not-picking-up-linemerge/m-p/578821#M102183</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2021-12-18T14:05:17Z</dc:date>
    </item>
  </channel>
</rss>

