-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Errors with in_tail plugin in 0.14.6 #1229
Comments
Is it a problem what you can reproduce? Is it only about Fluentd v0.14.6, or not? |
This happens everytime i rebuild the image and redeploy. There is a fix I need in 0.14.6 so I dont think I would downgrade. |
You have 8 sections for |
I don't know what section the error occurs in. And I gave you the relevant On Sep 13, 2016 12:46 AM, "tagomoris" [email protected] wrote:
|
|
If you go back to
|
How about with v0.14.4? It's a bug introduced at v0.14.5. |
Ah k yeah moving back to 0.14.4 seems to have fixed the problem |
Thank you for reporting it! I'll investigate that problem further more. |
if it helps, I've also encountered The only obvious differences between an in_tail config without this problem and an in_tail config with this problem for me are I can post more details if needed. |
@gcs-github Do you use fluentd v0.14.6? |
yes |
@gcs-github I want to know using v0.14.4 resolve your problem or not? Since v0.14.5, we migrate in_tail plugin with v0.14 API. If the problem is gone with v0.14.4, we need to check this migration change. |
same error here with 0.14.6, moving back to 0.14.4 seems to have mitigated the problem. |
This error doesn't happen on fluentd test. So I want more information to investigate the problem. @cjdmax @gcs-github Could you give me a entire fluentd logs? I want to check the configuration and error patterns. |
I shared the logs privately with you @repeatedly in the fluentd Slack, and I'm now testing with 0.14.4 |
The problem seems to be gone with 0.14.4 for me as well. |
If it helps: I switched back to 0.14.6 and discovered I had mistakes in the configuration of some of my Could ruby exceptions downstream of the I'll update this issue again if I stumble upon the problem again. |
@repeatedly I had the same issue, I rolled back from 0.14.6 to 0.14.4. Let me know if you need any information from my environment. |
@cmachler We are now investigating this issue. The flow late is not related with this error, right? We are now trying to reproduce this problem on our side and write a patch. Please wait... |
@repeatedly if you're referring to my slack message, no. I'm good with running 0.14.4. |
Reproduce sequence(on master HEAD): fluent.conf: <source>
@type tail
path tmp/logs/*.log
pos_file tmp/logs/tail.pos
read_from_head true
tag test.log
format json
# <parse>
# @type json
# </parse>
</source>
<match **>
@type null
</match> append.rb: require "time"
require "json"
require "fileutils"
5.times do |n|
FileUtils.touch("tmp/logs/log#{n}.log")
end
LOG_FILES = Dir.glob("tmp/logs/*.log")
MESSAGE = "This is dummy log message!" * 10
def append_log(file)
time = Time.now.strftime("%Y-%m-%dT%H:%M:%S.%NZ")
log = {
"time" => time,
"message" => MESSAGE
}
file.puts(log.to_json)
end
def rotate_file_if_needed(file)
return false if file.size < 1024 * 1024 * 500 # 500MiB
path = file.path
FileUtils.mv(path, "#{path}.#{Time.now.to_f}")
#sleep(30)
FileUtils.touch(path)
file.close
puts "#{Time.now}: rotated file: #{path}"
true
end
Signal.trap(:INT) do
exit(true)
end
def run
loop do
files = LOG_FILES.map do |path|
File.open(path, "ab+")
end
rotated = false
loop do
files.each do |file|
append_log(file)
rotated = rotate_file_if_needed(file)
break if rotated
end
break if rotated
end
end
end
run Create large log files:
Run fluend:
Run append.rb on another terminal:
Check fluentd logs. |
Thanks for finding reproducible step. |
We found one possible reason to cause this issue. |
This change fixes fluent#1229
Released v0.14.7 including this fix. |
working well for me now. Thanks! |
thanks for the test 👍 |
There are important changes in 0.14.7, namely options to rotate fluentd's own logs, compression and a fix for fluent/fluentd#1229
There are important changes in 0.14.7, namely options to rotate fluentd's own logs, compression and a fix for fluent/fluentd#1229 Using 0.14.8 because it is the latest, with another minor fix.
Seeing the following error in my kubernetes fluentd pod
Version:0.14.6 running as a gem
OS: Debian
The text was updated successfully, but these errors were encountered: