Error writing to output

Hi,

I capture some logs, they are 2 errors and would like to know if these are caused by the time out from influxdb :slight_smile:

2019-07-10T08:08:13Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:“localhost.localdomain”, Flush Interval:10s

2019-07-10T08:08:13Z D! [agent] Connecting outputs

2019-07-10T08:08:13Z D! [agent] Attempting connection to output: influxdb

2019-07-10T08:08:13Z D! [agent] Successfully connected to output: influxdb

2019-07-10T08:08:13Z D! [agent] Starting service inputs

2019-07-10T08:08:32Z D! [outputs.influxdb] wrote batch of 6338 metrics in 2.287754362s

2019-07-10T08:08:32Z D! [outputs.influxdb] buffer fullness: 6338 / 2000000 metrics.

2019-07-10T08:08:41Z D! [outputs.influxdb] wrote batch of 6338 metrics in 1.075306801s

2019-07-10T08:08:41Z D! [outputs.influxdb] buffer fullness: 6338 / 2000000 metrics.

2019-07-10T08:08:51Z D! [outputs.influxdb] wrote batch of 6338 metrics in 1.09650333s

2019-07-10T08:08:51Z D! [outputs.influxdb] buffer fullness: 6338 / 2000000 metrics.

2019-07-10T08:09:01Z D! [outputs.influxdb] wrote batch of 6338 metrics in 1.097524947s

2019-07-10T08:09:01Z D! [outputs.influxdb] buffer fullness: 6338 / 2000000 metrics.

2019-07-10T08:09:11Z D! [outputs.influxdb] wrote batch of 6338 metrics in 1.053754631s

2019-07-10T08:09:11Z D! [outputs.influxdb] buffer fullness: 6338 / 2000000 metrics.

2019-07-10T08:09:21Z D! [outputs.influxdb] wrote batch of 6338 metrics in 1.082142349s

2019-07-10T08:09:21Z D! [outputs.influxdb] buffer fullness: 6338 / 2000000 metrics.

2019-07-10T08:09:35Z E! [outputs.influxdb] when writing to [http://127.0.0.1:8086]: Post http://127.0.0.1:8086/write?db=hgw: net/http: request canceled (Client.Timeout exceeded while awaiting headers)

2019-07-10T08:09:35Z D! [outputs.influxdb] buffer fullness: 12676 / 2000000 metrics.

2019-07-10T08:09:35Z E! [agent] Error writing to output [influxdb]: could not write any address

2019-07-10T08:09:41Z D! [outputs.influxdb] wrote batch of 12676 metrics in 1.946958428s

2019-07-10T08:09:41Z D! [outputs.influxdb] buffer fullness: 6338 / 2000000 metrics.

2019-07-10T08:09:55Z E! [outputs.influxdb] when writing to [http://127.0.0.1:8086]: Post http://127.0.0.1:8086/write?db=hgw: net/http: request canceled (Client.Timeout exceeded while awaiting headers)

2019-07-10T08:09:55Z D! [outputs.influxdb] buffer fullness: 12676 / 2000000 metrics.

2019-07-10T08:09:55Z E! [agent] Error writing to output [influxdb]: could not write any address

2019-07-10T08:10:02Z D! [outputs.influxdb] wrote batch of 12676 metrics in 2.683580087s

2019-07-10T08:10:02Z D! [outputs.influxdb] buffer fullness: 6338 / 2000000 metrics.

2019-07-10T08:10:11Z D! [outputs.influxdb] wrote batch of 6338 metrics in 1.071272359s

2019-07-10T08:10:11Z D! [outputs.influxdb] buffer fullness: 6338 / 2000000 metrics.

2019-07-10T08:10:21Z D! [outputs.influxdb] wrote batch of 6338 metrics in 1.065171145s

2019-07-10T08:10:21Z D! [outputs.influxdb] buffer fullness: 6338 / 2000000 metrics.

2019-07-10T08:10:31Z D! [outputs.influxdb] wrote batch of 6338 metrics in 1.13861294s

2019-07-10T08:10:31Z D! [outputs.influxdb] buffer fullness: 6338 / 2000000 metrics.

2019-07-10T08:10:41Z D! [outputs.influxdb] wrote batch of 6338 metrics in 1.07245292s

2019-07-10T08:10:41Z D! [outputs.influxdb] buffer fullness: 6338 / 2000000 metrics.

2019-07-10T08:10:51Z D! [outputs.influxdb] wrote batch of 6338 metrics in 1.036453356s

2019-07-10T08:10:51Z D! [outputs.influxdb] buffer fullness: 6338 / 2000000 metrics.

2019-07-10T08:11:01Z D! [outputs.influxdb] wrote batch of 6338 metrics in 1.02010541s

2019-07-10T08:11:01Z D! [outputs.influxdb] buffer fullness: 6338 / 2000000 metrics.

2019-07-10T08:11:11Z D! [outputs.influxdb] wrote batch of 6338 metrics in 1.078056101s

2019-07-10T08:11:11Z D! [outputs.influxdb] buffer fullness: 20242 / 2000000 metrics.

2019-07-10T08:11:23Z D! [outputs.influxdb] wrote batch of 20242 metrics in 3.58084984s

2019-07-10T08:11:23Z D! [outputs.influxdb] buffer fullness: 20242 / 2000000 metrics.

2019-07-10T08:11:34Z D! [outputs.influxdb] wrote batch of 20242 metrics in 4.1863931s

2019-07-10T08:11:34Z D! [outputs.influxdb] buffer fullness: 20242 / 2000000 metrics.

2019-07-10T08:11:43Z D! [outputs.influxdb] wrote batch of 20242 metrics in 3.124409524s

2019-07-10T08:11:43Z D! [outputs.influxdb] buffer fullness: 20242 / 2000000 metrics.

2019-07-10T08:11:53Z D! [outputs.influxdb] wrote batch of 20242 metrics in 3.652999049s

2019-07-10T08:11:53Z D! [outputs.influxdb] buffer fullness: 20242 / 2000000 metrics.

2019-07-10T08:12:03Z D! [outputs.influxdb] wrote batch of 20242 metrics in 3.191702723s

2019-07-10T08:12:03Z D! [outputs.influxdb] buffer fullness: 20242 / 2000000 metrics.

2019-07-10T08:12:13Z D! [outputs.influxdb] wrote batch of 20242 metrics in 3.084756279s

2019-07-10T08:12:13Z D! [outputs.influxdb] buffer fullness: 20242 / 2000000 metrics.

2019-07-10T08:12:13Z D! [agent] Stopping service inputs

2019-07-10T08:12:13Z D! [agent] Input channel closed

2019-07-10T08:12:13Z I! [agent] Hang on, flushing any cached metrics before shutdown

2019-07-10T08:12:17Z D! [outputs.influxdb] wrote batch of 20242 metrics in 4.006449704s

2019-07-10T08:12:17Z D! [outputs.influxdb] buffer fullness: 0 / 2000000 metrics.

2019-07-10T08:12:17Z D! [agent] Closing outputs

2019-07-10T08:12:17Z D! [agent] Stopped Successfully

Thanks for your help

What’s strange in this log is when there is a time out from influx, telegraf doesn’t flush the buffer anymore, the buffer is increasing.