-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Exporter/opensearch: logstash_format or something similar #31316
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
I don't have a lot of experience with OpenSearch, but I see it's a somewhat common use case to include the date in the name of indices for ISM. I'll remove I'll defer to code owners for implementation details, but you're welcome to submit a PR in the meantime if you'd like! |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
@simoncrowe have you considered using OpenSearch data streams? Logs is the main use case for that feature. |
Hello @simoncrowe, how to config opensearch exporter to create new data streams instead of new index.
It will create new index name |
@MaxKsyunz Can you please give an example to how to use it? Let's say I have created a data stream called
|
For anyone in the future who gets here, this is how I have configured a log data stream that rolls over every night.
opensearch/logs:
logs_index: "logs-stream"
http:
endpoint: "https://your-opensearch-endpoint:9200"
auth:
authenticator: basicauth/os
tls:
insecure: false
ca_file: /tls/ca.crt
|
I checked the document here: https://opensearch.org/docs/latest/im-plugin/ism/policies/#rollover The index pattern should only be like |
@owenchenxy Why does this matter? I have written these helpers to deal with rollover and deleting old indices. You'd never have to look into the underlying indices of the data stream. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping |
Component(s)
exporter/opensearch
Is your feature request related to a problem? Please describe.
I order to make use of OpenSearch index state management policies, it is useful to be able add a YYYY.MM.DD suffix to indexes.
Describe the solution you'd like
I would like the same
logstash_format
configuration as elasticsearchexporter.Alternatively, if feature parity for
logstash_format
doesn't make sense, I'd like some other way of adding a date suffix to indexes.Describe alternatives you've considered
My current workaround is to set the namespace of the opensearch log exporter to the current date whenever the OTel collector helm chart is installed/updated. Installs normally happen a few times daily so it's good enough to break up the index for state (lifecycle) management.
Additional context
No response
The text was updated successfully, but these errors were encountered: