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

[BUG] "info deleteOldIndices" labeled as ERROR instead of INFO #1303

Closed
cpockrandt opened this issue Nov 16, 2023 · 7 comments
Closed

[BUG] "info deleteOldIndices" labeled as ERROR instead of INFO #1303

cpockrandt opened this issue Nov 16, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@cpockrandt
Copy link

cpockrandt commented Nov 16, 2023

Describe the bug

The official OpenSearch 2.11.0 docker container logs the following messages as ERROR messages:

{
  "timestamp": "2023-11-15T22:16:49,232Z",
  "level": "ERROR",
  "component": "o.o.a.a.AlertIndices",
  "message": "info deleteOldIndices"
}

To Reproduce

I have a pretty vanilla installation of OpenSearch 2.11.0 running in the official Docker image (deployed with Helm). Logging is configured to output in JSON:

opensearch.config.log4j2.properties: |
      status = error

      appender.console.type = Console
      appender.console.name = console
      appender.console.layout.type = OpenSearchJsonLayout
      appender.console.layout.type_name = server

      rootLogger.level = "{{ default "Info" .Values.global.logLevel }}"
      rootLogger.appenderRef.console.ref = console

Expected behavior

It should be logged as INFO.

@msfroh
Copy link

msfroh commented Nov 16, 2023

@opensearch-project/admin -- Can we please move this to opensearch-project/alerting?

@gaiksaya gaiksaya transferred this issue from opensearch-project/OpenSearch Nov 16, 2023
@StewartWBrown1
Copy link

Just to add, it looks like this was resolved in this ticket here, but the backport to 2.x failed here and was never resolved: opensearch-project/security-analytics#534

@StewartWBrown1
Copy link

StewartWBrown1 commented Feb 7, 2024

Should be resolved now in opensearch-project/security-analytics#833 as this has been successfully merged and backported

@jowg-amazon
Copy link
Collaborator

@cpockrandt
Copy link
Author

@jowg-amazon Even with OpenSearch 2.13 and 2.14 I get the same behavior. Is it possible that the bug still hasn't been fully fixed?

@StewartWBrown1
Copy link

StewartWBrown1 commented Jun 13, 2024

@jowg-amazon Even with OpenSearch 2.13 and 2.14 I get the same behavior. Is it possible that the bug still hasn't been fully fixed?

There were two near-identical issues in different places in OpenSearch. The one at opensearch-project/security-analytics#203 was fixed and had the 'info deleteOldIndices' message printed in logs every 12 hours from 'o.o.s.i.DetectorIndexManagementService'. This is what has been merged and is in currently released OpenSearch versions.

There was another source of the 'info deleteOldIndices' message from "o.o.a.a.AlertIndices". This is the one you reported and are still seeing. It has finally been successfully backported to 2.x as of #1230 so this error message should no longer be reported from OpenSearch 2.15!

@cpockrandt
Copy link
Author

Thank you so much for the insight!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants