forked from fluent/fluentd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add directory configuration for pos_file
This commit adds new configuration options for the tail input plugin to control the pos_file directory permissions and ownership: - Add pos_dir_perm parameter for directory permissions - Add pos_dir_owner parameter for directory owner - Add pos_dir_group parameter for directory group - Use Etc.getpwnam and Etc.getgrnam for proper user/group resolution Example config: <source> @type tail pos_file /var/log/td-agent/httpd/file.pos pos_dir_perm 0770 pos_dir_owner 'root' pos_dir_group 'wheel' </source> Closes fluent#4822 Signed-off-by: kushynoda <egemen.utku3@gmail.com>
- Loading branch information
Showing
2 changed files
with
125 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters