Skip to content

[ENHANCEMENT]: ilogtail启动后会在可执行文件目录下生成一些文件,这些文件是否可以指定生成到当前工作目录或者特定目录? #1191

Answered by yyuuttaaoo
mmmyddd asked this question in Help
Discussion options

You must be logged in to vote

可以看一下这段代码,这些flag可以在ilogtail_config.json配置文件中改掉

    STRING_FLAG(logtail_sys_conf_dir) = ".";
    STRING_FLAG(check_point_filename) = "checkpoint/logtail_check_point";
    STRING_FLAG(default_buffer_file_path) = "checkpoint";
    STRING_FLAG(ilogtail_docker_file_path_config) = "checkpoint/docker_path_config.json";

ilogtail_config.json可以修改后挂载挂进去
apsara_log_conf.json、plugin_logger.xml控制日志目录,也可以修改后挂载进去

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by messixukejia
Comment options

You must be logged in to vote
1 reply
@messixukejia
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
enhancement Feature enhancement
3 participants
Converted from issue

This discussion was converted from issue #1190 on October 20, 2023 05:46.