-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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: cannot use file-logger to log to stdout #6797
Comments
Write log to non-regular file is not supported yet. |
We need to add specific logic around |
I think I can cover this issue. The date I committed to is April 11. |
I am sorry that I am unable to reproduce this issue. |
apisix-file-logger-problem.zip A bit late, but as requested my usecase which results in Nothing more than the file logger config as stated in the original issue in combination with the docker image of apisix. |
@Alasiac Got it~ |
Is this issue still available? If so, could you please assign it to me? I'm interested in trying it out. |
@e1ijah1 Sure, Please @spacewander . Best wish:P |
Hello @spacewander @Alasiac if this issue still open, please assign it to me and give feedback on below solution: To solve this issue, we need to add specific logic around Here are the steps to fix this issue:
With these changes, the file-logger plugin should be able to write logs to |
Have you tested the modification in |
No, I haven't tested it yet. Just waiting for the author's feedback. |
Hm, I'm a bit confused to be honest, because I just tried the following file-logger configuration prior seeing this thread and successfully logged the request |
Is this issue still in progress? I noticed that the pr #8681 has been closed. @e1ijah1 @spacewander |
I have reviewed the PR #8681. The direction of this PR is correct as far as I know, but there are some issues in the latest review: #8681 (review) |
Current Behavior
When using the file-logger plugin, it is possible to send the logging to stdout by defining /dev/stdout. This in order to use the docker output and relais this in kubernetes to a ELK stack. Though an error is thrown indicating a permission denied for the current user.
Expected Behavior
Be able to use /dev/stdout as a destination with the file-logger plugin.
Error Logs
failed to open file: /dev/stdout, error info: /dev/stdout: Permission denied while logging request
Steps to Reproduce
Run apisix docker with apisix.yaml:
Environment
The text was updated successfully, but these errors were encountered: