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

Set partition id as option #44

Open
ram-pi opened this issue Oct 28, 2019 · 2 comments
Open

Set partition id as option #44

ram-pi opened this issue Oct 28, 2019 · 2 comments

Comments

@ram-pi
Copy link

ram-pi commented Oct 28, 2019

It would be very useful to have the possibility of selecting the partition id.
So it could possible to read from a particular partition.

@moritz-tr
Copy link

moritz-tr commented Nov 29, 2019

I think you can handle this via a condition on the @metadata field. Make sure to set the decorate_events => true on the azure_event input to access this field. Your output should look like this:

output {
if [@metadata][azure_event_hubs][partition] == "0" {
    elasticsearch { ... }
  }
}

@ram-pi
Copy link
Author

ram-pi commented Feb 3, 2020

Is there something similar on the input side I can do?

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

No branches or pull requests

2 participants