feat: Support pulling log configuration from remote HTTP sources. #895
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Support pulling log configuration from remote HTTP sources.
开启conf/logs.toml采集文件配置
enable = true 打开开关
send_to = "127.0.0.1:8081" 填充上报地址
关闭掉采集容器(根据需要)
开启从远端拉取配置服务
开启从文件采集服务
验证
启动categraf:./categraf --test --inputs logs
日志:
修改远端拉取服务,将configs中的logs1修改为logs
远端拉取配置日志:
categraf日志:
尝试写入日志到目标文件:echo "111" >> 1.txt
文件采集服务日志: