plugins: build filter_expect only if FLB_RECORD_ACCESSOR is set
@@ -199,7 +199,6 @@ REGISTER_OUT_PLUGIN("out_gelf")
# FILTERS
# =======
REGISTER_FILTER_PLUGIN("filter_aws")
-REGISTER_FILTER_PLUGIN("filter_expect")
REGISTER_FILTER_PLUGIN("filter_record_modifier")
REGISTER_FILTER_PLUGIN("filter_rewrite_tag")
REGISTER_FILTER_PLUGIN("filter_throttle")
@@ -212,6 +211,10 @@ if(FLB_REGEX)
REGISTER_FILTER_PLUGIN("filter_modify")
endif()
+if(FLB_RECORD_ACCESSOR)
+ REGISTER_FILTER_PLUGIN("filter_expect")
+endif()
+
if(FLB_LUAJIT)
REGISTER_FILTER_PLUGIN("filter_lua")
endif()
