My ELK 6.3.1 working well logs indexed to elasticsearch and these logs are vailable in kibana.
Then i am added this line in elasticsearch.yml as last line
xpack.security.enabled: true
Then tried to create passwords for ELK
./bin/elasticsearch-setup-passwords interactive
Then error message showing
[elastic@localhost elasticsearch-6.3.1]$ ./bin/elasticsearch-setup-passwords interactive
Unexpected response code [403] from calling GET http://192.168.1.15:9200/_xpack/security/_authenticate?pretty
It doesn't look like the X-Pack security feature is available on this Elasticsearch node.
Please check if you have installed a license that allows access to X-Pack Security feature.