I am having an issue running the command curl -XGET -k -u username:password https://localhost:9200/_cat/health
on Elasticsearch 6.2.2 with X-Pack installed. It is returning a 500 error whenever the xpack.security.audit.enabled
option is set to 'true'. However other endpoints such as "https://localhost:9200/_cat/nodes" work fine when the option is set to true.
Output from running command:
{"error":{"root_cause":[{"type":"null_pointer_exception","reason":null}],"type":"null_pointer_exception","reason":null},"status":500}
Any help would be greatly appreciated.