@thomas
It looks like it is possible to get the API token of the ‘master’ user using scripting, I was able to do it like this:
- stop influxd from running
- $ influx --local auth find|head -2 | tail -1| cut -f2
Some may suggest not using the ‘master’ user/api-token for api access, but that’s how you can do it if needed. (you can adjust the head/tail numbers to get the token from a 2nd user, if created, for example, also)
After doing some research, it looks like it might even be easier to create/capture the token when ‘influxd’ is running:
root@120792 ~# influx setup -b bucket1 -f -o org1 -p password -u user1
Your token has been stored in /root/.influxdbv2/credentials.
User Organization Bucket
user1 org1 bucket1