categraf/conf/logs.toml

36 lines
990 B
TOML
Raw Normal View History

2022-06-02 00:56:36 +08:00
[logs]
## key 占位符
api_key = "ef4ahfbwzwwtlwfpbertgq1i6mq0ab1q"
## 是否开启日志采集
enable = false
2022-06-24 15:06:24 +08:00
## 接受日志的server地址, http/tcp/kafka, 只有kafka支持多个地址broker用逗号分割
2022-06-02 00:56:36 +08:00
send_to = "127.0.0.1:17878"
2022-06-24 13:42:41 +08:00
## 发送日志的协议 http/tcp/kafka
2022-06-02 00:56:36 +08:00
send_type = "http"
2022-06-24 15:06:24 +08:00
topic = "flashcatcloud"
2022-06-02 00:56:36 +08:00
## 是否压缩发送
use_compress = false
## 是否采用ssl
send_with_tls = false
##
batch_wait = 5
## 日志offset信息保存目录
run_path = "/opt/categraf/run"
## 最多同时采集多少个日志文件
open_files_limit = 100
## 定期扫描目录下是否有新增日志
scan_period = 10
## udp 读buffer的大小
frame_size = 9000
2022-06-02 00:56:36 +08:00
##
collect_container_all = true
## 全局的处理规则
[[logs.Processing_rules]]
## 单个日志采集配置
[[logs.items]]
## file/journald/tcp/udp
2022-06-02 00:56:36 +08:00
type = "file"
## type=file时 path必填type=journald/tcp/udp时 port必填
2022-06-02 00:56:36 +08:00
path = "/opt/tomcat/logs/*.txt"
source = "tomcat"
2022-06-24 14:49:45 +08:00
service = "my_service"