--
You received this message because you are subscribed to the Google Groups "Fluentd Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluentd+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Fluentd Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/fluentd/BHF9cDw-hZc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to fluentd+u...@googlegroups.com.
Hi Mr FiberI checked this morning and the new log file was picked up perfectly, with no duplicates or omissions. I think the duplicates I experienced yesterday had a different cause. The system generating log entries runs on Windows, and I have found that the td-agent service does not always shut down properly, so on occasion I have had to manually kill it. However after shutting it down yesterday I found there was still a ruby process running, so I think that when I killed the agent, one of the worker threads kept running, which would explain why I was receiving duplicates! I rebooted the computer and have not seen any further duplicates.Thanks & best wishes,Andrew
On Mon, 22 Apr 2019 at 04:58, Mr. Fiber <repea...@gmail.com> wrote:
> in my test I did get a duplicate recordDoes this happen without rotation, right?Could you write reproducible step here?
On Sun, Apr 21, 2019 at 5:41 PM AndrewR <andre...@gmail.com> wrote:
I see that using * with tail may cause duplication, and in my test I did get a duplicate record. Is there a better way of doing this? I can't specify all file names individually (which I think is what the docs mean by "You should not use '*' with log rotation because it may cause the log duplication. In such case, you should separate in_tail plugin configuration") because there is no finite list of file names.--
On Sunday, April 21, 2019 at 10:13:57 AM UTC+2, AndrewR wrote:First, a big thank-you for those who write and maintain fluentd and td-agent. It's an incredibly useful and powerful application.I'm using the tail input plugin to read log files from a directory. The files are not rotated - instead, the application writes a new file each day, using the date as part of the filename, so I have to use * to read them, as there are a potentially infinite number of filenames. Old log files are deleted from the directory after 30 days. I initially set up tail to read * with read_from_head false. However, I found that when the new log file was created, some of the initial lines in the log file were not captured by the tail plugin. I think that is because the plugin only notices the new log file shortly after it has been created, and then starts tailing from the point where the file was when fluent noticed it. So I think I should be able to solve this by changing read_from_head to true. (Only log files are in this directory). Is this approach reasonable (read_from_head true, path *.log)?Best wishes,Andrew
You received this message because you are subscribed to the Google Groups "Fluentd Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Fluentd Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/fluentd/BHF9cDw-hZc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to flu...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to fluentd+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fluentd/409f060e-2597-4864-89c5-aee490c3123d%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to flu...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to fluentd+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fluentd/20970352-ab24-4497-a23f-7c57dfd75c14%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fluentd/20970352-ab24-4497-a23f-7c57dfd75c14%40googlegroups.com.