fangli / fluent-plugin-influxdb

A buffered output plugin for fluentd and InfluxDB
MIT License
111 stars 65 forks source link

Unauthorized Error #111

Open yangjiel opened 1 year ago

yangjiel commented 1 year ago

Hi,

I'm using influxdb 2.6 with td-agent 4.4.1 fluentd 1.15.2 (c32842297ed2c306f1b841a8f6e55bdd0f1cb27f). I believe everything is setup and when I'm trying to use fluentd to output logs to influxdb, I got this error message:

#0 failed to flush the buffer. retry_times=3 next_retry_time=2023-02-02 16:46:48 -0800 chunk="5f3c0ffac7b0ce621d1bd3597d6d4d48" error_class=InfluxDB::AuthenticationError error="{\"code\":\"unauthorized\",\"message\":\"Unauthorized\"}"

I searched online and found this InfluxDB 2.0 requires authentication using an ORG and a Token. However, the influxdb plugin doesn't have token configurable field only username and password. Is this an issue or is there any workaround? Thanks.