-
Notifications
You must be signed in to change notification settings - Fork 974
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
[BUG] Index pattern missing after recreating several times #1270
Comments
Hello @psciacca2inno , Thanks for opening this! Could you please provide more details? How are you running the application? OpenSearch and OpenSearch Dashboards version? Which plugins do you have installed? Thank you! |
Hi,
Suddenly the missing pattern issue appeared again.
I'm using the dashboard of opensearch directly in AWS.
Opensearch version is:1.0
Opensearch Dashboard version is: v 1.0.0-SNAPSHOT
I worked with these logs several days this week. But now I have again
problems:
[image: image.png]
Thanks in advance.
…On Wed, Feb 23, 2022 at 12:58 AM Kawika Avilla ***@***.***> wrote:
Hello @psciacca2inno <https://github.com/psciacca2inno> ,
Thanks for opening this! Could you please provide more details? How are
you running the application? OpenSearch and OpenSearch Dashboards version?
Which plugins do you have installed?
Thank you!
—
Reply to this email directly, view it on GitHub
<#1270 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWWPZM24UC7LLH6HZMB62QLU4RLORANCNFSM5O6ZSZQA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
--
Si usted ha recibido este e-mail por error, comuníquelo inmediatamente
por esta vía y elimínelo de su sistema; cualquier revelación, copia o
distribución de su contenido está estrictamente prohibido.
El mensaje
expresa la opinión de su autor pero no necesariamente expresa la opinión
oficial de 2Innovate IT.
*The information included on this
message is intended only for the personal and confidential use of the
designated recipient(s) named above.*
*If you have received it by mistake
please let us know by e-mail immediately and destroy or delete it from your
files or system; any disclose, copy or distribution of its contents is
prohibited.*
*This message reflects the opinion of its author but not
necessarily express an official statement of 2Innovate IT.*
|
Hello @psciacca2inno, Within AWS, OpenSearch Dashboards runs with a number of OpenSearch Project plugins, including the Security plugin. My initial reaction is that perhaps the index pattern is being created for one tenant when you are in another tenant. To explain, when creating an index pattern the data is saved within OpenSearch Dashboards' system index, for reasons it is Another thing to check is if the user you have logged into has the correct roles-based permissions. If they do not, it will filter out system indices. [DOCS] If you knew all this and checked all of this, my apologies for assuming. If checked and verified all the system indices and your index-pattern does not exist still, please close this issue and contact your cloud support provider. They should to provide more specific insight on your clusters. If you checked and find the index-patterns you were looking I'd suggest we route this to doc repo to provide a deeper explanation on multi-tenancy within OpenSearch Dashboards security plugin. Thank you! |
Will be closing out this issue due to no activity for over a month. You can reopen the issue if you have anything more questions or traction. |
I have also been experiencing this issue for over a year now. The issue almost always presents when a new update becomes available for Elastic/OpenSearch and then only applying the update will sometimes resolve it. vivaldi_IwYDxLyEF8.mp4 |
I'm seeing the exact same behavior as @begna112 now. Seeing as there's no pending update in my domain, I don't have a clear way to resolve this issue. Edit: I found a workaround! By adding a newline to my access policy, I was able to trigger a blue/green deploy. When the system cut over to the new instance, everything was working again. |
I have seen a similar behaviour. I found out that the problem is temporary resolvable by restarting one (of three) Opensearch Dashboards instances. In the logs there are appearing some migration tasks on startup for "my-new-tenant". After that the index pattern is visible.
How can I solve this without a restart? |
While this is tagged for docs, it seems like there still may be some unintended behavior here. |
Hi, Adding to @kavilla's above comment, we don't delete the index pattern behind the scene. Other reason I can think of is Cluster can be configured in such way that it deletes indices after several days. Another reason can be |
When I ran into this, I deleted the .kibana index, wondering if it was corrupted. The new index that it created didn't alleviate the issue. |
Same problem here. I logged into Kibana and my index pattern and dashboards are all missing. Makes me worried that if i make changes / add things in Kibana that i will one day lose them again? |
@DBendit @nmaludy can you run |
|
Also, turns out that whitespace changes to the access policy no longer trigger deploys, so that workaround is no longer valid. |
Per AWS Support, the issue is that the Kibana alias is missing for the domain. |
Is there any solution yet to this issue? I am still facing it with opensearch v2.0.1 |
The only time I have seen this exact symptom of index pattern vanishing after being created is when there is This could be related to opensearch-project/security-dashboards-plugin#1222 |
@AMoo-Miki doesn't seems to be the case on my hand: |
If you ever delete |
@Julien-athstat, based on your previous comment, i think the issue you are facing is because Also, I agree with you that it feels useless that any of the older |
Close this issue, and @AMoo-Miki will create a new issue on researching on the reason we are keeping all historical data of Kibana. |
@Julien-athstat I have created #3236 to research to retaining issue. @psciacca2inno, we haven't heard from you in a long time; please re-open if you need more help. |
This issue is still occurring - we just lost access to our OpenSearch instance again. |
@DBendit Can you provide more specifics, along with any of the mitigations listed above you tried? |
It's the issue as described initially: going to our Kibana URL, then trying to access "discover", I'm prompted to create a new index pattern. Creating a new index pattern seems to succeed, but then it is unlisted and the behavior trying to use "discover" is unchanged. I've got a ticket open to AWS support right now, so I haven't done any attempt at mitigation to provide them with a pristine case to look at. |
|
I'm also observing this exact behaviour with no clear cause. All the logs seem to indicate all is going well, even more, refreshing the link after the index pattern has been created leads to the same page, meaning it seems it is being created in the background. |
yup same issue here. |
I have found the issue for me. I was using the master account in "private tenant" mode. I don't know why, but it just wouldn't save the index pattern there. When I switched to "global tenant" (press your account icon on the top right -> switch tenants), it started working. |
What version of OpenSearch are you using @blaargh ? I'm on 1.3 and do not have that option. |
I've just upgraded to 2.5.0 and unfortunately I still can't make this multitenancy work. I noticed in the communication that it tries to fetch the index patterns as a saved object (with a filter for index patterns). I'm guessing my dashboard role is configured incorrectly (but at this exact moment in time it's unclear which configuration is incorrect exactly) This my current config:
|
@begna112 I am actually using ElasticSearch 7.9 as backend. I was logged in with the master user. |
AWS Support finally helped us identify this issue for us. We had deployed a lambda to complete periodic index deletion following the guidance from the recommended "Curator". The default Curator has the following: # Filters by age, anything with a time stamp older than 30 days in the index name.
index_list.filter_by_age(source='name', direction='older', timestring='%Y.%m.%d', unit='days', unit_count=30) This coincidentally filters out the kibana index which does not have a timestring. However, we had customized our Curator to the following: #index_list.filter_by_age(source='name', direction='older', timestring='%Y.%m.%d', unit='days', unit_count=30)
index_list.filter_by_age(source='creation_date', direction='older', unit='months', unit_count=1) The fix was to add another filter to only include our indexes, and exclude the kibana index from deletion: index_list.filter_by_regex(kind='prefix', value='cwl-') I imagine a similar filter could be created to specifically exclude the kibana index as well. Hopefully this helps someone else that's having this issue. |
This tells me that |
I would strongly encourage the rest of you to use the forum to get quicker help from the community. |
I need to use an Index pattern and I created an Index pattern cwl-*
Then I leave the opensearch Dashboard.
When I go back again to Stack Management my index pattern is missing,
The text was updated successfully, but these errors were encountered: