How to update the license?

Hi ALL,

curl -XPUT -u elastic 'http://localhost:9200/_xpack/license' @/tmp/license.json
Enter host password for user 'elastic':
{"error":{"root_cause":[{"type":"parse_exception","reason":"Failed to derive xcontent"}],"type":"parse_exception","reason":"Failed to derive xcontent"},"status":400}curl: (6) Could not resolve host:

Please help me to update the license

Thanks,
Raj

Is the file valid JSON?
The error suggests an issue parsing it as such.

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