Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User guide content is outdated for index pattern/namespace. #23351

Closed
dikshachauhan-qasource opened this issue Dec 30, 2020 · 6 comments · Fixed by #23352
Closed

User guide content is outdated for index pattern/namespace. #23351

dikshachauhan-qasource opened this issue Dec 30, 2020 · 6 comments · Fixed by #23352
Assignees
Labels
docs Team:Docs Label for the Observability docs team

Comments

@dikshachauhan-qasource
Copy link

Description: User guide content is outdated for index pattern/namespace.

As per comment at #79818Comment, information related to index creation for namespace needs to be updated at the below referral links.

Further, we have noticed that same out-dated information is provided in elastic-agent.yml files when extracted and downloaded from elastic-agent packages[includes all packages].

Artifact link: https://snapshots.elastic.co/7.10.2-31a765b2/downloads/beats/elastic-agent/elastic-agent-7.10.2-SNAPSHOT-windows-x86_64.zip

Please refer attached screenshot.
Documention_error

Reference ticket Id:
elastic/kibana#79818 (comment)

Actual Result
Information at user guide and elastic-agent.yml is out-dated.

Expected Result
User guides should be updated with latest information applicable for valid index namespace creation.

What's working

  • As per information provided at above mentioned comment, we are able to create namespace as per rules.
  • Proper validation message is displayed for incorrect entries.

What's not working
Also currently, we are able to create namespace for policies and integrations using below points from referral guide.
[Link: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html#indices-create-api-path-params]

Cannot start with -, _, +

  • Able to create namespace starting with _ and + symbols

Cannot be . or ..

  • Able to create namespace starting with . and ..

Names starting with . are deprecated, except for hidden indices and internal indices managed by plugins

  • Able to create namespace starting with .

Here, could you please confirm us expected behavior on our above observations.

@manishgupta-qasource
Copy link

Reviewed & Assigned to @jmikell821

@EricDavisX
Copy link
Contributor

@dedemorton is this on the Ingest side for us to update, I think?

@dedemorton
Copy link
Contributor

@EricDavisX Yes, it is. This issue seems to impact the Elastic Agent and Elasticsearch docs, not the security docs. With all the cross-team work that's happening right now, though, it's understandable that folks might not know where to open issues. The agent docs live in the observability-docs repo right now. @jmikell821 Should we just transfer this issue to observability-docs?

@debadair
Copy link
Contributor

debadair commented Jan 4, 2021

I just verified that the documented limitations are correct. You cannot create an Elasticsearch index with a name that starts with _ or +, or name your index . or .. You can still create indices that begin with a dot, but that is deprecated and will be disallowed in the future.

@dedemorton
Copy link
Contributor

So it sounds like the Elasticsearch docs are good, but that we need to update the docs in the Elastic Agent YAML file. Since the Elastic Agent source currently lives in the Beats repo, I will transfer this issue to that repo (and not observability-docs as I stated previously).

I don't think we want the YAML to repeat all the Elasticsearch index naming restrictions plus the agent namespace restrictions. We just need to mention the restrictions that are added for agent. Deb suggested: Must conform to the naming conventions for Elasticsearch indices and cannot exceed 100 bytes.

@dedemorton dedemorton transferred this issue from elastic/security-docs Jan 5, 2021
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jan 5, 2021
@dedemorton dedemorton added docs Team:Docs Label for the Observability docs team labels Jan 5, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/obs-docs (Team:Docs)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Team:Docs Label for the Observability docs team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants