NIFI-10410 Added InputRequirement annotation to ExtractGrok

Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com>

This closes #6345.
This commit is contained in:
exceptionfactory 2022-08-29 14:47:11 -05:00 committed by Pierre Villard
parent ff202122e3
commit 4f87cd770b
No known key found for this signature in database
GPG Key ID: F92A93B30C07C6D5
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ import io.krakens.grok.api.GrokCompiler;
import io.krakens.grok.api.Match;
import io.krakens.grok.api.exception.GrokException;
import org.apache.nifi.annotation.behavior.EventDriven;
import org.apache.nifi.annotation.behavior.InputRequirement;
import org.apache.nifi.annotation.behavior.SideEffectFree;
import org.apache.nifi.annotation.behavior.SupportsBatching;
import org.apache.nifi.annotation.behavior.WritesAttribute;
@ -67,6 +68,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
@EventDriven
@SupportsBatching
@SideEffectFree
@InputRequirement(InputRequirement.Requirement.INPUT_REQUIRED)
@Tags({"grok", "log", "text", "parse", "delimit", "extract"})
@CapabilityDescription("Evaluates one or more Grok Expressions against the content of a FlowFile, " +
"adding the results as attributes or replacing the content of the FlowFile with a JSON " +