data-ingestion/fluent-bit/write-system-log-to-elasticsearch/fluent-bit.conf
# https://docs.fluentbit.io/manual/pipeline/inputs/tail
[INPUT]
Name tail
Path /var/log/system.log
Tag hm_macbook_system_log
Read_from_Head True
[OUTPUT]
Name stdout
Match *
# https://docs.fluentbit.io/manual/pipeline/outputs/elasticsearch
[OUTPUT]
Name es
Match *
Host elasticsearch.hongbomiao.com
Port 443
tls On
Index hm-system-log
Suppress_Type_Name On
compress gzip
HTTP_User elastic
HTTP_Passwd 8n2lJw28t53BmxfQ7V4ywG22
# Trace_Output On
# Trace_Error On