Dyanamic Routing with route or exclusive_route #22423
-
Is there any way to do dynamic routing? example of what im looking for. type: exclusive_route
inputs:
- vector
route:
- name: "{{ .source }}"
condition:
type: vrl
source: exists(.source) Background: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @satellite-no, that is very interesting use case, but it is not currently supported. The It is doable though, it will need some guard rails around managing a dynamic set of routes. Also, some thought around performance. But overall, not that complex to do. Can you a new issue? |
Beta Was this translation helpful? Give feedback.
-
Hey @pront |
Beta Was this translation helpful? Give feedback.
Hi @satellite-no, that is very interesting use case, but it is not currently supported. The
name
is just a string as you can see here:vector/src/transforms/exclusive_route/config.rs
Line 26 in 1d65736
It is doable though, it will need some guard rails around managing a dynamic set of routes. Also, some thought around performance. But overall, not that complex to do. Can you a new issue?