Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a switch to control the loading of the processor_spl, which by default remains unloaded. #1312

Merged
merged 3 commits into from
Jan 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
linrunqi08 marked this conversation as resolved.
Show resolved Hide resolved

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
Loading