-
Notifications
You must be signed in to change notification settings - Fork 71
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
Couldn't set log file full path as receiver ID #448
Comments
Hi @QI-D I'm not sure if I understand your intention, but if your intention is sending the logs of
|
I was able to reproduce this. We shouldn't allow special characters in the receiver ID as they make up the log name in Cloud Logging. Cloud logging states that it must follow this rule:
We need to have the same contract and report a config error if this is violated. I'll assign this to myself to do just that. See https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry for more info. However, I do think you should use the |
I think the bug here is that fluent-bit should be escaping the log name if necessary, and then this configuration should just work. |
This issue was marked stale due to lack of activity. It will be closed in 14 days. |
I was trying to set a log file full path "/var/log/abc.log" as receiver ID in the config.ymal, then I got this following error:
[2022/03/03 22:57:39] [ warn] [output:stackdriver:stackdriver.0] error { "error": { "code": 400, "message": "Received unexpected value parsing name \"projects/qd-mar3/logs//var/log/abc.log\": abc.log. Expected the form projects/[PROJECT_ID]/logs/[ID]", "status": "INVALID_ARGUMENT" } }
.AWS CloudWatch Agent allows users to set file full path as the log stream name/ log name. I'm wondering if users can set log file full path as log name/ receiver ID with Ops Agent.
The text was updated successfully, but these errors were encountered: