我想将日志保存在文件中,但不保存在容器中。 我想在数据中保持持久性,并且我不想“丢失”文件,以防重新启动pod。 我已经将其发送到elasticSearch-我也希望将其保存在本地。
output-es-healthcheck.conf: |
<match kube.healthcheck.*>
@type elasticsearch
@log_level info
include_tag_key true
# Replace with the host/port to your Elasticsearch cluster.
# This assumes a service `elasticsearch` exists in the default namespace
host 35.188.202.84
port 9200
scheme http
ssl_verify false
index_name fluentd-healthcheck3
flush_interval 10s
max_retry_wait 30
disable_retry_limit
num_threads 8
</match>
什么是最好的方法?