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

Elasticsearchexporter: dynamic index #5854

Closed
leewoobin789 opened this issue Oct 21, 2021 · 7 comments
Closed

Elasticsearchexporter: dynamic index #5854

leewoobin789 opened this issue Oct 21, 2021 · 7 comments

Comments

@leewoobin789
Copy link
Contributor

Is your feature request related to a problem? Please describe.
For future usecase:
According to the existing readme of Elasticsearchexporter, which is inactivated in the current collector version , there seems to be no dynamic index capability e.g. overwriting index name with prefix and namespace etc.
This feature would make another integration component like logstash obsolete and simplifies the overall architecture.

Describe the solution you'd like
Optional configuration: overwriting index name with predefined prefix and value of a ecs field name like elasticsearch plugin in fluentd.

Describe alternatives you've considered
None

Additional context

  • configuration extension on elasticsearch exporter
@wajika
Copy link

wajika commented Aug 8, 2022

index: should support ILM or template...

@github-actions
Copy link
Contributor

Pinging code owners: @urso @faec @blakerouse. See Adding Labels via Comments if you do not have permissions to add labels yourself.

@leewoobin789
Copy link
Contributor Author

leewoobin789 commented Oct 31, 2022

@djaglowski @JaredTan95 i will be working on it. just telling you to avoid any redundant effort.

@leewoobin789
Copy link
Contributor Author

leewoobin789 commented Nov 1, 2022

Idea:

elasticsearch/log:
    endpoints: [http://localhost:9200]
    logs_index: myLogIndex
    logs_dynamic_index:
        disabled: false #default: true
        prefix: "staticPrefix-" # both static or attribute/resource based prefix (if one of prefix & suffix does not match, then fall back to logs_index"
        suffix: "-{resource['k8s.namespace']}" # both static or attribute/resource based suffix (if one of prefix & suffix does not match, then fall back to logs_index"

ex) staticPrefix-myLogIndex-someNamespace
there will be no breaking changes as it is addition of optional setting.

or

resource attribute based.

elasticsearch/log:
    endpoints: [http://localhost:9200]
    logs_index: myLogIndex
    logs_dynamic_index:
        disabled: false #default: true

which checks resource attribute named "elasticsearchexporter.logs_index_suffix", which is added to default index as a suffix.
this way, one could use resource processor of collector or add this attribute in applications to dynamically route it to different indices.

I actually prefer second one because it prevents many other error prone operations and checks only existence of dynamic or predefined resources

What do you think folks? :) @djaglowski @JaredTan95

@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2023

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 @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

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

@github-actions
Copy link
Contributor

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 @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

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

@github-actions github-actions bot added the Stale label Mar 14, 2023
@github-actions
Copy link
Contributor

This issue has been closed as inactive because it has been stale for 120 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants