logstash-plugins / logstash-output-influxdb

Apache License 2.0
58 stars 79 forks source link

How to use API token for authentication? #97

Open SomniVertix opened 1 year ago

SomniVertix commented 1 year ago

I tried setting up logstash to push to influx but I get authentication errors.

It looks like this repo only supports user/password, but is there a way to do token authentication? Influxdb works moreso off of API tokens now

dmgeurts commented 1 year ago

I think this plugin only supports InfluxDB v1, which doesn't to auth-tokens.

See https://github.com/logstash-plugins/logstash-output-influxdb/issues/96#issuecomment-981339334

kwdchol commented 1 year ago

hi you look https://github.com/kwdchol/logstash-output-influxdb_v2/blob/main/output_influxdb_v2.conf

dmgeurts commented 1 year ago

I ended up configuring Logstash to locally send to Telegraf.