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

How to config opensearch exporter to create new data streams, instead of new index? #33909

Closed
PDCuong opened this issue Jul 4, 2024 · 3 comments
Labels
exporter/opensearch needs triage New item requiring triage

Comments

@PDCuong
Copy link

PDCuong commented Jul 4, 2024

Component(s)

exporter/opensearch

Describe the issue you're reporting

When i set :

exporters:
   opensearch/log:
      logs_index: user-abcd

It will create new index name user-abcd. But i want to create new data streams. Can you help me?

@PDCuong PDCuong added the needs triage New item requiring triage label Jul 4, 2024
Copy link
Contributor

github-actions bot commented Jul 4, 2024

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@flenoir
Copy link

flenoir commented Jul 12, 2024

Hi @PDCuong , did you manage to solve your issue ? i'm kind have same question

@PDCuong
Copy link
Author

PDCuong commented Jul 12, 2024

First, just create new index template type datastream, in which index pattern contain logs_index: user-abcd . After that, push logs from otel-collector with logs_index: user-abcd`. It will automatically create new data stream. sorry for my bad English.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exporter/opensearch needs triage New item requiring triage
Projects
None yet
Development

No branches or pull requests

2 participants