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
[BUG]: ilogtail 将日志输入到 Loki 异常 #1020
Comments
@ixiaoyi93 这个报错是因为 Loki 不支持 label 中包含 |
@ixiaoyi93 文档中这个例子应当为
DynamicLabels 应该为重命名后的 label。然后,通过 |
好的,我先测试一下。 |
@Abingcbc 现在可以重命令了,我想在请教一个问题。采用 但是我感觉这种日志结构反而增加了 还请大佬解答。 |
目前 ilogtail 还不支持只发送 content 字段。cc @yyuuttaaoo @henryzhx8 |
@henryzhx8 @yyuuttaaoo @Abingcbc 大佬们,安排一波? |
@ixiaoyi93 目前可以支持的是通过 convert 把 tag 里的字段删掉 flushers:
- Type: flusher_loki
URL: http://localhost:3100/loki/api/v1/push
DynamicLabels:
- content.test
Convert:
TagFieldsRename:
host.name: ""
host.ip: ""
log.file.path: "" |
Describe the bug
A clear and concise description of what the bug is, ideally within 20 words.
iLogtail Running Environment
Please provide the following information:
通过ilogtail 采集容器标准输出日志,在输出到 loki 时通过
DynamicLabels
和Convert.TagFieldsRename
实现tags
内的字段重命名。出现server returned HTTP status 400 Bad Request (400): 1:6: parse error: unexpected character inside braces: '.'
异常错误。如果去掉该功能采用静态表情是能够正常输出到 loki 的。v1.7.0
The text was updated successfully, but these errors were encountered: