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

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
[[Sidecar]]
 +
 
<pre>
 
<pre>
 
apiVersion: v1
 
apiVersion: v1
 
 
kind: ConfigMap
 
kind: ConfigMap
 
 
metadata:
 
metadata:
 
 
   name: fluentd-config
 
   name: fluentd-config
  
Line 55: Line 54:
 
* [[Sidecar (Kubernetes)]]
 
* [[Sidecar (Kubernetes)]]
  
 +
== See also ==
 +
* {{fluentd}}
  
{{fluentd}}
+
* {{Sidecar}}
  
{{Sidecar}}
+
[[Category:Kubernetes]]

Latest revision as of 14:59, 21 December 2022

Sidecar

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>    

Related[edit]

See also[edit]

Advertising: