Loading template command not working for topbeat

Inputting this in my ELK server:

curl -XPUT 'http://localhost:9200/_template/topbeat' -d@topbeat.template.json

I get:
{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}

Any ideas why the command is wrong?

Try adding -H 'Content-Type: application/json' as another option to your curl command.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.