Getting Lookup error file executing telegraf cmd to the infux db

Hi Team,

I am getting below error while executing the telegraf service to connect with influxdb

" E! [outputs.influxdb_v2] When writing to [http://l0.30.150.168:8086]: Post “http://!0.30.150.168:8086/api/v2/write?bucket=PerformanceTest&org=Panamax”: dial tcp: lookup l0.30.150.168 on 8.8.8.8:53: no such host
2022-06-22T08:08:20Z E! [agent] Error writing to outputs.influxdb_v2: failed to send metrics to any configured server(s)
"
Need your assistance to resolve it

Note: Telegraf is on monitoring machine and influxdb is on another machine.

l0.30.150.168 is not an IP address.

I suspect it’s a typo for 10.30.150.168.

Antony.

Actual it is displaying like this in the error and while copy paste in some other editor it is displaying properly as 10.30.150.168

Hi @Harmeet_Singh,
I agree with @Pooh. This looks to be network/configuration error. Please make sure 10.30.150.168 is discoverable from the device running telegraf and that the configuration being used does not have a typo in it. It could potentially be an issue with the copy and paste of the editor you are using where its applying a special character to the TOML file.