I tried to reproduce this but couldn’t. I get the following errors:
2018-09-04T19:59:48Z E! Error writing to output [influxdb]: could not write any address
2018-09-04T19:59:50Z E! [outputs.influxdb] when writing to [http://localhost:8086]: database "telegraf" not found and failed to recreate
2018-09-04T19:59:50Z E! [outputs.influxdb]: when writing to [http://localhost:8086]: 404 Not Found: database not found: "telegraf"