mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #1444] Logging to dedicated (non-syslog) file? #758
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#758
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @thecosmicfrog on GitHub (Oct 8, 2020).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1444
Additional Information
Version of s3fs being used (s3fs --version)
Amazon Simple Storage Service File System V1.87 (commit:unknown) with OpenSSLVersion of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse)
Kernel information (uname -r)
4.14.193-113.317.amzn1.x86_64GNU/Linux Distribution, if applicable (cat /etc/os-release)
Amazon Linux
/etc/fstab entry, if applicable
s3fs syslog messages (grep s3fs /var/log/syslog, journalctl | grep s3fs, or s3fs outputs)
Details about issue
We are currently troubleshooting an issue with s3fs-fuse which is made difficult by the rsyslogd rate limiting, as seen in the
imuxsock begins to drop messageslog entry from/var/log/messagesabove.Rather than increasing the rate limit, is it possible to have s3fs-fuse log to a dedicated file, e.g.
/var/log/s3fs-fuse/s3fs-fuse.log?Thanks - Aaron
@gaul commented on GitHub (Oct 10, 2020):
This seems reasonable. s3fs would need to grow a new flag and change
S3FS_LOW_LOGPRNand related macros to use the global instead ofstdout. Could you try to add this @thecosmicfrog?@ggtakec commented on GitHub (Oct 10, 2020):
@gaul @thecosmicfrog I think that it is possible to prepare options or environment variables to switch the log output destination to syslog or a file.
I will try to modify it, so please wait for a while.
@gaul commented on GitHub (Oct 19, 2020):
@thecosmicfrog Please test with the latest master.