Skip to content

Commit

Permalink
Added a switch to control the loading of the processor_spl, which by …
Browse files Browse the repository at this point in the history
…default remains unloaded. (#1312)

* add switch
  • Loading branch information
linrunqi08 authored Jan 4, 2024
1 parent 1a3830a commit 986b947
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/plugin/PluginRegistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -231,7 +235,9 @@ void PluginRegistry::LoadStaticPlugins() {
RegisterProcessorCreator(new StaticProcessorCreator<ProcessorParseTimestampNative>());
RegisterProcessorCreator(new StaticProcessorCreator<ProcessorTagNative>());
RegisterProcessorCreator(new StaticProcessorCreator<ProcessorFilterNative>());
RegisterProcessorCreator(new StaticProcessorCreator<ProcessorSPL>());
if (BOOL_FLAG(enable_processor_spl)) {
RegisterProcessorCreator(new StaticProcessorCreator<ProcessorSPL>());
}
RegisterFlusherCreator(new StaticFlusherCreator<FlusherSLS>());
}

Expand Down

0 comments on commit 986b947

Please # to comment.