-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Allow configuring permissions for log files #5441
Comments
Hi Matt, Could you make it possible to allow an umask to be supplied along with the -log-file flag? |
@achenand I reopened the issue and edited the title to more closely align with what I think the request is. Could you elaborate on your usage a bit. Particularly what sorts of permissions you are desiring or how you would desire those log files to be created. |
Thanks for updating the title. In another note, when I specified the complete path along with the name of the log file in -log-file flag the {timestamp} was still appended. For example I have specified the name of the log file as consul_20190311-141420.log -log-file - to redirect all the Consul agent log messages to a file. This can be specified with the complete path along with the name of the log. In case the path doesn't have the filename, the filename defaults to consul-{timestamp}.log. Can be combined with -log-rotate-bytes and -log-rotate-duration for a fine-grained log rotation experience. |
Hi, 644 would be very good for me as well as I'd like to ingest these logs into Splunk. However, Splunk runs under a pretty non-privileged user in our case. With the logs having an unpredictable name (as it uses a timestamp) it is tough to get around this. Any help on this would be appreciated. |
Has there been any update on this topic? I am also looking to have these logs go into splunk and need 644 permissions. Or is there a way to change the group of the logs? |
+1 |
1 similar comment
+1 |
On Linux I used -log-file flag to redirect all the Consul agent log messages to a local file, for some reason the log file was created with the permission that is write only by owner, for example:
--w------- 1 fispguat fispguat 91300 Mar 6 12:54 consul_20190306-114637-1551890797918163665.log
Is this write only permission by design of consul? I have not found anything in documentation and existing issues so would appreciate any insights from consul team.
The text was updated successfully, but these errors were encountered: