Skip to content

chore: compatible config for es #1204

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

Merged
merged 1 commit into from
Apr 27, 2025
Merged

Conversation

kongfei605
Copy link
Collaborator

No description provided.

@kongfei605 kongfei605 requested a review from Copilot April 27, 2025 07:01
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the Elasticsearch configuration to include compatibility for both new and legacy configuration keys.

  • Renames the deprecated "ExportIndexAliases" field to a new "ExportIndicesAliases" field while retaining backward compatibility.
  • Adds a deprecation warning and mapping to ensure the new field is used during metric collection.
Comments suppressed due to low confidence (1)

inputs/elasticsearch/elasticsearch.go:147

  • [nitpick] Consider clarifying with an inline comment that the 'ExportIndexAliases' field is deprecated in favor of 'ExportIndicesAliases' for improved clarity and maintainability.
if ins.ExportIndexAliases {

@kongfei605 kongfei605 merged commit cf34490 into flashcatcloud:main Apr 27, 2025
1 of 3 checks passed
@kongfei605 kongfei605 deleted the es_up branch April 27, 2025 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant