I want to add some data in Influxdb via Telegraf. My input data is XML data, but, I can get it in JSON format with “accept: application/json” header. When I try adding the accept header it gives me a parsing error.
Also, I am getting: 40Z E! ERROR in input [inputs.httpjson]: Get https://x.x.x.x/suite-api/api/resources: x509: cannot validate certificate for x.x.x.x because it doesn’t contain any IP SANs. No luck.
I tried to make some changes in SSL config as per http://serverfault.com/questions/611120/failed-tls-handshake-does-not-contain-any-ip-sans
Please let me know how to tackle these issues? Also, let me know if you need more information.