2025-01-23 01:35:27 +08:00

22 lines
376 B
Bash
Executable File

#!/bin/bash
microk8s.kubectl create configmap fluentd-config --from-literal=fluent.conf='
<source>
@type http
@id input_http
port 8888
tag sardine.log
</source>
<match sardine.log>
@type elasticsearch
@id output_elasticsearch
host elasticsearch
port 9200
scheme http
user fluentd_user
password fluentd_password
logstash_format true
</match>
' -n efk