Newbie Question - how to create an API Key

Good Evening everybody,

i am new to influx and i have the following question:

How do i create an API Key ??

I´m running Influx 1.8 and i want to do some Queries from Excel to the Influx-Database. The Influx-Database runs on an Ubuntu-System and i have SSH-Access to the Machine.

Thanks in advance

Chakoe

Hello @Chakoe,
Welcome!
If you’re running 1.x locally,
You shouldn’t need a token. You can just do:

curl -XPOST "localhost:8086/api/v2/write?bucket=db/rp&precision=s" \
  --data-raw "mem,host=host1 used_percent=23.43234543 1556896326"
``
For example. 
If you do have auth enabled you'd do:
curl -XPOST "localhost:8086/api/v2/write?bucket=db/rp&precision=s" \
  -H 'Authorization: Token <username>:<password>' \
  --data-raw "mem,host=host1 used_percent=23.43234543 1556896326"

Do you use a username and password to login?

Thanks

Also of relevance in case you do, but you don’t remember it:

Good Morning,

the 1.xInflux runs on a remote Ubuntu-Machine, auth is enabled :slight_smile:

So: yes, the database actually needs UserName/Password for authentication

Greets

Chakoe

Any idea how to solve my newbie-„Problem“? :wink:

Hello @Chakoe,
You should be able to use the auth as described in the second code block.