如何根据数据特征动态选择插件参数?
#2244
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
xuzhijvn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
如下一个典型的场景是需要根据数据特征,使用不同的
flusher_http
Auth信息,但是目前所有数据使用flusher_http
输出时,Auth等其他参数都是提前固定的:两个可能的实现方式是:
pipeline
,它们仅flusher_http
使用不同的Auth参数。缺点是:inputs
,processors
阶段数据处理是重复的,系统整体效率低。pipeline
里面定义重复的插件类型,如上面的:flusher_http
,通过其他参数唯一标记插件,如:id
,name
,不同的插件处理不同的数据。如下两个flusher_http
分别用于输出key等于alibaba
和zhongnanhai
的数据:是否还有其他方式???
Beta Was this translation helpful? Give feedback.
All reactions