Setting passwords for all built-in users

Hi,

When I am trying to setup password for kibana user using below command

./bin/elasticsearch-setup-passwords interactive
I receive below error
 Unexpected response code [403] from calling GET http://127.0.0.1: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.

ERROR: X-Pack Security is not available.

My Elasticsearch version is 6.5
I have edited elasticsearch.yml as guided by sites

My question is:

  1. Will I have to upgrade ELK stack to achieve security feature in BASIC License?
  2. Is there any way to achieve security feature in BASIC License?

Thanks

  1. Yes to at least 6.8.
  2. Yes by using at least version 6.8.

Thanks @martinr_ubi

If I upgrade the version, Will this activity impact on existing indexes, documents and dashboards?
or will I have to setup everything again?

Please share how can I upgrade it?

I'm sorry @Hitesh_Malhotra but I won't detail here how you should upgrade your ES stack and related components, that is not really a specific question with a specific answer :slight_smile:

There are entire sections of the documentation dedicated to upgrading the stacks and the required components, you should refer to that. In your case it's 6.5 to 6.8 so it's a minor version upgrade, which are simpler than major version upgrade like when you'll go to 7.x.

See:



https://www.elastic.co/guide/en/elasticsearch/reference/6.8/setup-upgrade.html
https://www.elastic.co/guide/en/elastic-stack/6.8/index.html
https://www.elastic.co/guide/en/elastic-stack-overview/6.8/elasticsearch-security.html
https://www.elastic.co/guide/en/elasticsearch/reference/6.8/configuring-security.html

Since your going from no security to security you should make sure to test before doing anything in prod because if you have no experience yet with setting up the security features... configuring them for the first time directly in prod after the upgrade might not be the best approach of course.
Of course you know your environment and I don't, depends on the SLA/SLO of your stack.

1 Like

Hi,

These articles are really helpful.

I have upgraded the Elastic from 6.5 to 6.8. Will I have to upgrade kibana and Logstash versions also to achieve security feature.

Thanks

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