Skip to content

[exporter/opensearchexporter] add logstashFormat config to opensearch close #40499

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

Closed
wants to merge 10 commits into from

Conversation

sw90lee
Copy link

@sw90lee sw90lee commented Jun 5, 2025

Description

OpenSearch currently lacks date suffixing for index names. To maintain consistency with the Elasticsearch Exporter, I implemented a similar configuration mechanism for OpenSearch and documented its usage in the README.md.

Link to tracking issue

#34746
#38595

Testing

Documentation

  • logstash_format (optional): Logstash format compatibility. Logs, metrics and traces can be written into an index in Logstash format.
    • enabled(default=false): Enable/disable Logstash format compatibility. When logstash_format::enabled is true, the index name is composed using the above dynamic routing rules as prefix and the date as suffix,
      e.g: If the computed index name is logs-generic-default, the resulting index will be logs-generic-default-YYYY.MM.DD.
      The last string appended belongs to the date when the data is being generated.
    • prefix_separator(default=-): Set a separator between logstash_prefix and date.
    • date_format(default=%Y.%m.%d): Time format (based on strftime) to generate the second part of the Index name.

@sw90lee sw90lee requested a review from a team as a code owner June 5, 2025 06:41
@sw90lee sw90lee requested a review from bogdandrutu June 5, 2025 06:41
Copy link

linux-foundation-easycla bot commented Jun 5, 2025

CLA Not Signed

@sw90lee sw90lee force-pushed the opensearch/logstashformat branch from 12903b7 to c150748 Compare June 5, 2025 06:57
@sw90lee sw90lee closed this Jun 5, 2025
@sw90lee sw90lee reopened this Jun 5, 2025
@sw90lee sw90lee closed this Jun 5, 2025
@sw90lee sw90lee deleted the opensearch/logstashformat branch June 5, 2025 06:59
@sw90lee sw90lee changed the title [exporter/opensearchexporter] add logstashFormat config to opensearch [exporter/opensearchexporter] add logstashFormat config to opensearch close Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants