Difference between revisions of "Sidecar container with a logging agent: Fluentd"

From wikieduonline
Jump to navigation Jump to search
(Created page with "<pre> apiVersion: v1 kind: ConfigMap metadata: name: fluentd-config data: fluentd.conf: | <source> type tail format none path /var/log/1.log...")
 
Line 51: Line 51:
  
 
</pre>
 
</pre>
 +
 +
 +
{{fluentd}}
 +
 +
{{Sidecar}}

Revision as of 07:55, 24 August 2022

apiVersion: v1

kind: ConfigMap

metadata:

  name: fluentd-config

data:

  fluentd.conf: |

    <source>

      type tail

      format none

      path /var/log/1.log

      pos_file /var/log/1.log.pos

      tag count.format1

    </source>



    <source>

      type tail

      format none

      path /var/log/2.log

      pos_file /var/log/2.log.pos

      tag count.format2

    </source>



    <match **>

      type google_cloud

    </match>    


Fluentd, Fluent Bit, td-agent, helm install fluentd, fluent-ctl

Sidecar, Kubernetes Sidecar Containers, Sidecar (Kubernetes), Sidecar container

Advertising: