Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sink到文件中,没有自动创建目录 #686

Open
GreatLazyMan opened this issue Aug 30, 2024 · 0 comments
Open

sink到文件中,没有自动创建目录 #686

GreatLazyMan opened this issue Aug 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@GreatLazyMan
Copy link

In what area(s)?

/area sink

What version of Loggie?

1.5.0

Expected Behavior

参考官方文档创建sink如下
sink:
type: file
workerCount: 1024
baseDirs:
- /data0
dirHashKey: ${namespace}-${nodename}
filename: /${nodename}/${podame}.log
maxSize: 500
maxAge: 7
maxBackups: 50
compress: true
希望能把日志写入到路径 /data0/${nodename}/${podame}.log

Actual Behavior

实际上日志写入到文件 /data0/${podame}.log ,没有创建目录 ${nodename}

Steps to Reproduce the Problem

创建file sink,filename包含多级子目录

@GreatLazyMan GreatLazyMan added the bug Something isn't working label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant