-
Notifications
You must be signed in to change notification settings - Fork 1.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
Tail plugin read the same file multiple times (wildecard & NFS) #4102
Comments
@SML0127
It is strange that both inode and pos are recorded as 0. Were there any other logs during this time? If possible, I would appreciate it if you could check if this also occurs on the local file system, not only on NFS. |
There are no logs during that time, except
I changed to local and ran it for hours, it didn't happen. |
Thanks for confirming! I have heard before that we should not put pos_file on NFS. I will check possible causes that accidentally make both inode and pos 0. |
yes, both
I had the same issue when |
@SML0127 Sorry for my late response.
The package or docker images will be released soon. |
Thx @daipom~ |
Describe the bug
I tested reading files from an NFS mounted server using the
tail plugin
and wildcard*
.New files are added to the NFS mounted server in batches every hour, and it worked for about 3 hours.
But after that, duplicate data was being read and when i checked fluentd log, the same files were being tailed multiple time.
Here is my fluentd log.
From
2023-03-17 22:49:05
, the same files started to be tailed repeatedly, and new logs or data were not added to those files.Also, positions of the same files was appended multiple times in pos_file.
To Reproduce
This is my fluentd-conf.yaml
/fluentd/source-data/
is NFS mounted server directoryExpected behavior
I expected that fluentd reads each file once.
Your Environment
Your Configuration
Your Error Log
My fluentd log
My .pos file
Additional context
No response
The text was updated successfully, but these errors were encountered: