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

Support for wildcard topic_key #430

Open
brsolomon-deloitte opened this issue Nov 3, 2021 · 4 comments
Open

Support for wildcard topic_key #430

brsolomon-deloitte opened this issue Nov 3, 2021 · 4 comments
Labels
enhancement Feature request

Comments

@brsolomon-deloitte
Copy link

brsolomon-deloitte commented Nov 3, 2021

Is your feature request related to a problem? Please describe.

If I have a wildcard <match zeek.**> for @type kafka2, it would be great to have a way for topic_key to simply mirror the actual topic that is picked up.

Describe the solution you'd like

<match zeek.**>
  @type kafka2

...

  # write events to this kafka topic
  topic_key TODO # < HERE
  <buffer TODO>
    @type file
    path /var/log/td-agent/buffer/td
    flush_interval 10s
  </buffer>
  default_topic TODO

</match>

Describe alternatives you've considered

none

Additional context

none

@github-actions
Copy link

github-actions bot commented Feb 2, 2022

This issue has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days

@github-actions github-actions bot added the stale label Feb 2, 2022
@ashie ashie removed the stale label Feb 2, 2022
@github-actions
Copy link

github-actions bot commented May 4, 2022

This issue has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days

@github-actions github-actions bot added the stale label May 4, 2022
@github-actions
Copy link

github-actions bot commented Jun 3, 2022

This issue was automatically closed because of stale in 30 days

@github-actions github-actions bot closed this as completed Jun 3, 2022
@cosmo0920 cosmo0920 added enhancement Feature request and removed stale labels Jun 6, 2022
@cosmo0920 cosmo0920 reopened this Jun 6, 2022
@raytung
Copy link
Member

raytung commented Aug 17, 2022

Hey @brsolomon-deloitte, we should be able to achieve the same effect by using the topic parameter

e.g.

<match **>
   # etc
   topic "${tag}"

  <buffer tag>
    # etc
 </buffer>
</match>

The topic parameter is not currently documented but we'll work on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request
Projects
None yet
Development

No branches or pull requests

4 participants