diff --git a/core/plugin/PluginRegistry.cpp b/core/plugin/PluginRegistry.cpp index c3cac9114a..ee1eb99a9f 100644 --- a/core/plugin/PluginRegistry.cpp +++ b/core/plugin/PluginRegistry.cpp @@ -47,6 +47,10 @@ #include "processor/ProcessorSplitRegexNative.h" #include "processor/ProcessorTagNative.h" #include "processor/ProcessorSPL.h" +#include "common/Flags.h" + + +DEFINE_FLAG_BOOL(enable_processor_spl, "", false); using namespace std; @@ -231,7 +235,9 @@ void PluginRegistry::LoadStaticPlugins() { RegisterProcessorCreator(new StaticProcessorCreator()); RegisterProcessorCreator(new StaticProcessorCreator()); RegisterProcessorCreator(new StaticProcessorCreator()); - RegisterProcessorCreator(new StaticProcessorCreator()); + if (BOOL_FLAG(enable_processor_spl)) { + RegisterProcessorCreator(new StaticProcessorCreator()); + } RegisterFlusherCreator(new StaticFlusherCreator()); }