Flume regular filter interceptor, timestamp interceptor

Regular filter interceptor:
a1.sources = s1
a1.channels = c1
a1.sinks = sk1

a1.sources.s1.type = netcat
a1.sources.s1.bind = master
a1.sources.s1.port = 44444

a1.sources.s1.interceptors = i1
a1.sources.s1.interceptors.i1.type = regex_filter //Interceptor name
a1.sources.s1.interceptors.i1.regex = (Spark) | (Hadoop) //Regular expression Formula
a1.sources.s1.interceptors.i1.excludeEvents = false //Events that meet the matching conditions are collected by default. If true, matching events will be deleted and unmatched events will be collected.

a1.channels.c1.type = memory
a1.channels.c1.capacity = 1000

a1.sinks.sk1.type = logger

a1.sinks.sk1.channel = c1
a1.sources.s1.channels = c1

timestamp interceptor
a1.sources = s1
a1.channels = c1
a1.sinks = sk1

a1.sources.s1.type = netcat
a1.sources.s1.bind = master
a1.sources.s1.port = 44444

a1.sources.s1.interceptors = i1
a1.sources.s1.interceptors.i1.type = timestamp //拦截器名称
a1.sources.s1.interceptors.i1.preserveExisting = false 

a1.channels.c1.type = memory
a1.channels.c1.capacity = 1000

a1.sinks.sk1.type = logger

a1.sinks.sk1.channel = c1
a1.sources.s1.channels = c1

Guess you like

Origin blog.csdn.net/GX_0824/article/details/126964676