Skip to main content
Known Participant
Feb 29, 2024 8:06 AM UTC
Question

FluentD tail truncating log message

I am using Fluend as a sidecar of a Coldfusion application in Azure AKS. I am facing issues with some log messages getting truncated.

I am using this docker image fluent/fluentd-kubernetes-daemonset:v1.16-debian-elasticsearch8-1.

FluentD configuration:

apiVersion: v1
kind: ConfigMap
metadata:
  name: fluentdconf
data:
  fluent.conf: |
    <source>
      @TyPe tail
      path /opt/coldfusion/cfusion/logs/*.log
      path_key tailed_path
      pos_file /var/app/file.log.pos
      tag aks.coldfusionlog
      max_line_size 50MB
      <parse>
        @TyPe none
      </parse>
    </source>
    <match aks.coldfusionlog>
      @TyPe stdout
    </match>
    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Community Expert
    Mar 24, 2024 1:16 PM UTC

    What happens if you increase the max line size? I think 50MB is pretty big, but that's an easy thing to change.

     

    Dave Watts, Eidolon LLC 

    Translate
    Dave Watts, Eidolon LLC
    BKBK
    Community Expert
    Community Expert
    Mar 24, 2024 12:04 PM UTC

    Why do you think this is a ColdFusion issue? It doesn't sound like a ColdFusion issue to me. It sounds more like a FluentD configuration issue.

    Translate