-
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
Td-agent randomly stops sending logs to Elasticsearch #2981
Comments
I see you referenced my issue above. I suggest adding "with_transporter_log true" in your es output match to see the transport logs. |
@Xyrion I tried the parameter you suggested, this is what I got when I tried restarting td-agent, this occurs atleast once whenever I restart:
So I stopped n started the agent :
` The position file's last update is of that time when I started the td-agent, but I dont see any logs being sent to es. |
There's an error that I observed here including other servers where I'm using td-agent, but this never stopped any logs or anything for that matter, mentioning just in case its relevant:
|
@repeatedly Could you please provide some insight here...? |
Does this mean |
@repeatedly Sorry I couldn't reply earlier! I don't see any data in the specified buffer location if that's what you're asking.
|
This issue has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days |
This issue was automatically closed because of stale in 30 days |
Check CONTRIBUTING guideline first and here is the list to help us investigate the problem.
Describe the bug
I'm using 'td-agent 1.6.3' on a 'Red Hat Enterprise Linux Server release 7.5 (Maipo)' server to send logs to Elasticsearch 7.5.1.
The issue that I'm facing is that td-agent stops sending logs after some time, also the position file's last modified time is that of the last sent logs(i.e when it stopped sending). On restarting td-agent, sometimes it would straightaway start sending logs from where it left, on most occasions it wouldn't. I've enabled debug logs, but couldn't find any relevant explanation for this behavior.
I tried adding the parameter suggested here: #1630 but was of no help, also referred to this one : #2969 , cluster has enough capacity. I'm new to fluentd, might be missing something here..
Your Environment
td-agent --version
td-agent 1.6.3
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.5 (Maipo)
uname -r
3.10.0-229.49.1.el7.x86_64
Your Configuration
Your Error Log
It stops logging after this.
Before this it stopped with these logs:
2020-05-07 02:56:32 +0530 [debug]: #0 fluent/log.rb:302:debug: tailing paths: target = /home/abinitio/hdfs_mux.txt | existing = /home/abinitio/hdfs_mux.txt 2020-05-07 02:57:32 +0530 [debug]: #0 fluent/log.rb:302:debug: tailing paths: target = /home/abinitio/hdfs_mux.txt | existing = /home/abinitio/hdfs_mux.txt 2020-05-07 02:58:32 +0530 [debug]: #0 fluent/log.rb:302:debug: tailing paths: target = /home/abinitio/hdfs_mux.txt | existing = /home/abinitio/hdfs_mux.txt 2020-05-07 02:59:32 +0530 [debug]: #0 fluent/log.rb:302:debug: tailing paths: target = /home/abinitio/hdfs_mux.txt | existing = /home/abinitio/hdfs_mux.txt 2020-05-07 03:09:03 +0530 [debug]: #0 fluent/log.rb:302:debug: Created new chunk chunk_id="5a50197c3dd91304c22fbea61238c7ef" metadata=#<struct Fluent::Plugin::Buffer::Metadata timekey=nil, tag="hdfs.mux", variables=nil> 2020-05-07 03:09:03 +0530 [debug]: #0 fluent/log.rb:302:debug: tailing paths: target = /home/abinitio/hdfs_mux.txt | existing = /home/abinitio/hdfs_mux.txt 2020-05-07 03:09:03 +0530 [debug]: #0 fluent/log.rb:302:debug: tailing paths: target = /home/abinitio/hdfs_mux.txt | existing = /home/abinitio/hdfs_mux.txt 2020-05-07 03:10:03 +0530 [debug]: #0 fluent/log.rb:302:debug: tailing paths: target = /home/abinitio/hdfs_mux.txt | existing = /home/abinitio/hdfs_mux.txt 2020-05-07 03:27:49 +0530 [debug]: #0 fluent/log.rb:302:debug: Created new chunk chunk_id="5a501dae6660fa81f676c8c1b625b2fd" metadata=#<struct Fluent::Plugin::Buffer::Metadata timekey=nil, tag="hdfs.mux", variables=nil> 2020-05-07 03:27:49 +0530 [debug]: #0 fluent/log.rb:302:debug: tailing paths: target = /home/abinitio/hdfs_mux.txt | existing = /home/abinitio/hdfs_mux.txt 2020-05-07 03:27:49 +0530 [debug]: #0 fluent/log.rb:302:debug: tailing paths: target = /home/abinitio/hdfs_mux.txt | existing = /home/abinitio/hdfs_mux.txt 2020-05-07 03:28:49 +0530 [debug]: #0 fluent/log.rb:302:debug: tailing paths: target = /home/abinitio/hdfs_mux.txt | existing = /home/abinitio/hdfs_mux.txt 2020-05-07 03:29:49 +0530 [debug]: #0 fluent/log.rb:302:debug: tailing paths: target = /home/abinitio/hdfs_mux.txt | existing = /home/abinitio/hdfs_mux.txt 2020-05-07 03:30:05 +0530 [debug]: #0 fluent/log.rb:302:debug: Created new chunk chunk_id="5a501e30622b9d1d8e452b25056206ac" metadata=#<struct Fluent::Plugin::Buffer::Metadata timekey=nil, tag="hdfs.mux", variables=nil> 2020-05-07 03:30:13 +0530 [debug]: #0 fluent/log.rb:302:debug: Created new chunk chunk_id="5a501e3791136a1457ee77e4b446cb73" metadata=#<struct Fluent::Plugin::Buffer::Metadata timekey=nil, tag="hdfs.mux", variables=nil> 2020-05-07 03:30:20 +0530 [debug]: #0 fluent/log.rb:302:debug: Created new chunk chunk_id="5a501e3e69b70f4a7c244121d17ad6eb" metadata=#<struct Fluent::Plugin::Buffer::Metadata timekey=nil, tag="hdfs.mux", variables=nil> 2020-05-07 03:30:27 +0530 [debug]: #0 fluent/log.rb:302:debug: Created new chunk chunk_id="5a501e454dc75597bf78bdf442512aff" metadata=#<struct Fluent::Plugin::Buffer::Metadata timekey=nil, tag="hdfs.mux", variables=nil> 2020-05-07 03:30:40 +0530 [debug]: #0 fluent/log.rb:302:debug: Created new chunk chunk_id="5a501e514ee52d9aef001ac1c98c1213" metadata=#<struct Fluent::Plugin::Buffer::Metadata timekey=nil, tag="hdfs.mux", variables=nil> 2020-05-07 03:30:47 +0530 [debug]: #0 fluent/log.rb:302:debug: Created new chunk chunk_id="5a501e57fca205ce46413a12ddbab7d2" metadata=#<struct Fluent::Plugin::Buffer::Metadata timekey=nil, tag="hdfs.mux", variables=nil> 2020-05-07 03:30:49 +0530 [debug]: #0 fluent/log.rb:302:debug: tailing paths: target = /home/abinitio/hdfs_mux.txt | existing = /home/abinitio/hdfs_mux.txt 2020-05-07 03:31:06 +0530 [debug]: #0 fluent/log.rb:302:debug: Created new chunk chunk_id="5a501e69ea4d165ab6523b9d3254aecb" metadata=#<struct Fluent::Plugin::Buffer::Metadata timekey=nil, tag="hdfs.mux", variables=nil> 2020-05-07 03:31:49 +0530 [debug]: #0 fluent/log.rb:302:debug: tailing paths: target = /home/abinitio/hdfs_mux.txt | existing = /home/abinitio/hdfs_mux.txt 2020-05-07 03:32:49 +0530 [debug]: #0 fluent/log.rb:302:debug: tailing paths: target = /home/abinitio/hdfs_mux.txt | existing = /home/abinitio/hdfs_mux.txt 2020-05-07 03:33:49 +0530 [debug]: #0 fluent/log.rb:302:debug: tailing paths: target = /home/abinitio/hdfs_mux.txt | existing = /home/abinitio/hdfs_mux.txt 2020-05-07 03:34:49 +0530 [debug]: #0 fluent/log.rb:302:debug: tailing paths: target = /home/abinitio/hdfs_mux.txt | existing = /home/abinitio/hdfs_mux.txt 2020-05-07 03:35:49 +0530 [debug]: #0 fluent/log.rb:302:debug: tailing paths: target = /home/abinitio/hdfs_mux.txt | existing = /home/abinitio/hdfs_mux.txt 2020-05-07 03:36:49 +0530 [debug]: #0 fluent/log.rb:302:debug: tailing paths: target = /home/abinitio/hdfs_mux.txt | existing = /home/abinitio/hdfs_mux.txt 2020-05-07 03:37:49 +0530 [debug]: #0 fluent/log.rb:302:debug: tailing paths: target = /home/abinitio/hdfs_mux.txt | existing = /home/abinitio/hdfs_mux.txt 2020-05-07 03:38:49 +0530 [debug]: #0 fluent/log.rb:302:debug: tailing paths: target = /home/abinitio/hdfs_mux.txt | existing = /home/abinitio/hdfs_mux.txt 2020-05-07 03:39:49 +0530 [debug]: #0 fluent/log.rb:302:debug: tailing paths: target = /home/abinitio/hdfs_mux.txt | existing = /home/abinitio/hdfs_mux.txt 2020-05-07 04:36:45 +0530 [debug]: fluent/log.rb:302:debug: fluentd supervisor process get SIGUSR1 2020-05-07 04:36:45 +0530 [debug]: #0 fluent/log.rb:302:debug: fluentd main process get SIGUSR1 2020-05-07 04:36:45 +0530 [info]: #0 fluent/log.rb:322:info: force flushing buffered events
Additional context
The logs to be sent are of the following format :
npl-ph-hd.india.itm irun 46908 09:00 /usr/java/jdk1.8.0_144/bin/java /tmp/hdfs_mux-3.3.4.6-airun/mux_46865.properties
The text was updated successfully, but these errors were encountered: