apiVersion: v1 kind: ConfigMap metadata: name: fluentd-config namespace: efk data: fluent.conf: | @type http @id input_http port 8888 tag sardine.log @label @main @type copy @type elasticsearch @id output_elasticsearch host elasticsearch port 9200 scheme http user fluentd_user password fluentd_password logstash_format true logstash_prefix logstash logstash_dateformat %Y.%m.%d flush_interval 5s # 缩短批量写入间隔 @log_level debug id_key _id remove_keys _id @type stdout @id output_stdout @type stdout @id output_stdout_all