-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Review system indices documentation for simplicity and consistency #79679
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
Comments
Pinging @elastic/es-core-infra (Team:Core/Infra) |
Pinging @elastic/es-docs (Team:Docs) |
Jumping on the discussion (sorry if off-topic) but have you considered at some point using the I'm in a situation where I feel spammed by those indices and it looks to me a lot of them have no purpose in my cluster; getting a short description for each could help, to know if they are safe to delete, or what they are used for. |
Is there a setting in the index itself to say it's a system one or not? Because AFAIK, all system indices are dot indices, but not all dot indices are system indices. Today, we already have a setting "settings" : {
"hidden" : "true",
"system" : "true" <--- proposed addition |
There isn't a setting and adding one might be a bit of a headache, but we do have a boolean in the index metadata. It's not currently visible in the Get Index or _cat/indices APIs, but until we can add it to those APIs, you can at least see it using {
"cluster_name": "runTask",
"cluster_uuid": "phWu8kXERXCu567gNQjjww",
"metadata": {
"cluster_uuid": "phWu8kXERXCu567gNQjjww",
"cluster_uuid_committed": false,
"cluster_coordination": {
"term": 1,
"last_committed_config": [
"8IWt0NXFRvK1aB6i0AorKQ"
],
"last_accepted_config": [
"8IWt0NXFRvK1aB6i0AorKQ"
],
"voting_config_exclusions": []
},
"templates": {},
"indices": {
".tasks": {
"version": 6,
"mapping_version": 1,
"settings_version": 2,
"aliases_version": 1,
"routing_num_shards": 1024,
"state": "open",
"settings": {"elided_for_brevity": true},
"mappings": {"elided_for_brevity": true},
"aliases": [],
"primary_terms": {
"0": 1
},
"in_sync_allocations": {
"0": [
"tmB_mz1cTFWsmSh2Edv2VQ"
]
},
"rollover_info": {},
"system": true, // <---- Here's the system flag
"timestamp_range": {
"unknown": true
}
}
},
"index-graveyard": {
"tombstones": []
}
}
} |
Thank you @gwbrown for the tip. A short request to get if indices are system or not:
|
A goal of the system indices project is to, as much as possible, allow users not to care about system indices (and system data streams). We are not there yet, so we need to figure out how to explain what system indices are and provide enough information to troubleshoot issues that users might have with them, without getting into implementation details.
We have an item about system indices on our 8.x API Conventions page. It reads:
Here are some situations where a user might interact with system indices:
.kibana
and.security
indices go? Did I lose them in the upgrade?" The answer: no, they just became hidden system indices and you can't see them anymore.superuser
privileges.allow_restricted_indices
set totrue
. (See Defining Roles: Indices Privileges.)_cat/shards
API will show shards for system indices as well as for normal indices, and system indices are listed in snapshot data.Finally, we may want to clarify that for the superuser, system indices are like hidden indices, but they have certain additional protection around their settings and mappings.
We may also want to warn about the case where legacy templates that target
*
will be applied to system indices, which can sometimes break a cluster in ways that are hard to diagnose.I'm not exactly sure how to put all this together in the documents, but, basically, we need to give users enough information that, when they run into system indices somehow, they can figure out what's going on.
cc @gwbrown, @debadair, @lockewritesdocs
The text was updated successfully, but these errors were encountered: