Hi,
I'm having a problem with a forwarder on a single server. I'm using the secure-forward plugin with td-agent-2.2.1-0.el6.x86_64 on CentOS 6.5
scrubbed configuration file is as follows
<source>
type tail
path /var/log/asterisk/queue_log
pos_file /var/log/td-agent/queue_log.pos
tag xxx_yyy.queue_log
format /(?<epoch>\d*)\|(?<uniqueid>[^|]*)\|(?<queue>[^|]*)\|(?<agent>[^|]*)\|(?<event>[^|]*)\|?(?<data1>[^|]*)?\|?(?<data2>[^|]*)?\|?(?<data3>[^|]*)?\|?(?<data4>[^|]*)?\|?(?<data5>[^|]*)?/
time_format %s
</source>
<match xxx_yyy.queue_log>
type secure_forward
send_timeout 60s
self_hostname host.example.com
shared_key secret
secure yes
ca_cert_path /etc/td-agent/cert.pem
keepalive 30
flush_interval 1s
buffer_type file
buffer_path /var/log/td-agent/
disable_retry_limit true
<server>
host fluentd.example.com
</server>
</match> It was working perfectly and then suddenly stopped transmitting. Restarting
the service produces the following errors in the td-agent log file.
2015-10-05 10:53:19 +0200 [warn]: temporarily failed to flush the buffer. next_retry=2015-10-05 11:26:34 +0200 error_class="Errno::EBADF" error="Bad file descriptor" plugin_id="object:3fe1c799be50"
2015-10-05 10:53:19 +0200 [warn]: suppressed same stacktrace
2015-10-05 11:26:56 +0200 [warn]: temporarily failed to flush the buffer. next_retry=2015-10-05 12:41:50 +0200 error_class="Errno::EBADF" error="Bad file descriptor" plugin_id="object:3fe1c799be50"
2015-10-05 11:26:56 +0200 [warn]: suppressed same stacktrace
2015-10-05 12:42:26 +0200 [warn]: temporarily failed to flush the buffer. next_retry=2015-10-05 14:53:54 +0200 error_class="Errno::EBADF" error="Bad file descriptor" plugin_id="object:3fe1c799be50"
2015-10-05 12:42:26 +0200 [warn]: suppressed same stacktrace
2015-10-05 14:54:19 +0200 [warn]: temporarily failed to flush the buffer. next_retry=2015-10-05 19:52:54 +0200 error_class="Errno::EBADF" error="Bad file descriptor" plugin_id="object:3fe1c799be50"
2015-10-05 14:54:19 +0200 [warn]: suppressed same stacktrace
2015-10-05 19:52:59 +0200 [warn]: temporarily failed to flush the buffer. next_retry=2015-10-06 04:48:08 +0200 error_class="Errno::EBADF" error="Bad file descriptor" plugin_id="object:3fe1c799be50"
2015-10-05 19:52:59 +0200 [warn]: suppressed same stacktrace
2015-10-06 03:06:01 +0200 [info]: force flushing buffered events
Any idea what is causing this? I'm happy to provide more debugging
information but I just need some idea on what to send through.
Regards,
Ian Sherman