Package org.graylog2.inputs.extractors
Class JsonExtractor
java.lang.Object
org.graylog2.plugin.inputs.Extractor
org.graylog2.inputs.extractors.JsonExtractor
- All Implemented Interfaces:
EmbeddedPersistable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static final classNested classes/interfaces inherited from class org.graylog2.plugin.inputs.Extractor
Extractor.ConditionType, Extractor.CursorStrategy, Extractor.ReservedFieldException, Extractor.Result, Extractor.Type -
Field Summary
Fields inherited from class org.graylog2.plugin.inputs.Extractor
conditionType, conditionValue, converterExceptions, converters, creatorUserId, cursorStrategy, exceptions, extractorConfig, FIELD_CONDITION_TYPE, FIELD_CONDITION_VALUE, FIELD_CONVERTER_CONFIG, FIELD_CONVERTER_TYPE, FIELD_CONVERTERS, FIELD_CREATOR_USER_ID, FIELD_CURSOR_STRATEGY, FIELD_EXTRACTOR_CONFIG, FIELD_ID, FIELD_ORDER, FIELD_SOURCE_FIELD, FIELD_TARGET_FIELD, FIELD_TITLE, FIELD_TYPE, id, order, regexConditionPattern, sourceField, superType, targetField, title -
Constructor Summary
ConstructorsConstructorDescriptionJsonExtractor(com.codahale.metrics.MetricRegistry metricRegistry, String id, String title, long order, Extractor.CursorStrategy cursorStrategy, String sourceField, String targetField, Map<String, Object> extractorConfig, String creatorUserId, List<Converter> converters, Extractor.ConditionType conditionType, String conditionValue) -
Method Summary
Modifier and TypeMethodDescriptionextractJson(String value) protected Extractor.Result[]Performs the extractor run.Methods inherited from class org.graylog2.plugin.inputs.Extractor
converterConfigMap, getCompleteTimerName, getConditionHitsCounterName, getConditionMissesCounterName, getConditionTimerName, getConditionType, getConditionValue, getConverterExceptionCount, getConverters, getConverterTimerName, getCreatorUserId, getCursorStrategy, getExceptionCount, getExecutionTimerName, getExtractorConfig, getId, getOrder, getPersistedFields, getSourceField, getTargetField, getTitle, getType, incrementExceptions, runExtractor, setOrder
-
Constructor Details
-
JsonExtractor
public JsonExtractor(com.codahale.metrics.MetricRegistry metricRegistry, String id, String title, long order, Extractor.CursorStrategy cursorStrategy, String sourceField, String targetField, Map<String, Object> extractorConfig, String creatorUserId, List<Converter> converters, Extractor.ConditionType conditionType, String conditionValue) throws Extractor.ReservedFieldException, ConfigurationException
-
-
Method Details
-
run
Description copied from class:ExtractorPerforms the extractor run. -
extractJson
- Throws:
IOException
-