Class ParseJSON
- java.lang.Object
-
- software.amazon.awssdk.services.cloudwatchlogs.model.ParseJSON
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ParseJSON.Builder,ParseJSON>
@Generated("software.amazon.awssdk:codegen") public final class ParseJSON extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ParseJSON.Builder,ParseJSON>
This processor parses log events that are in JSON format. It can extract JSON key-value pairs and place them under a destination that you specify.
Additionally, because you must have at least one parse-type processor in a transformer, you can use
ParseJSONas that processor for JSON-format logs, so that you can also apply other processors, such as mutate processors, to these logs.For more information about this processor including examples, see parseJSON in the CloudWatch Logs User Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceParseJSON.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ParseJSON.Builderbuilder()Stringdestination()The location to put the parsed key value pair into.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ParseJSON.Builder>serializableBuilderClass()Stringsource()Path to the field in the log event that will be parsed.ParseJSON.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
source
public final String source()
Path to the field in the log event that will be parsed. Use dot notation to access child fields. For example,
store.book- Returns:
- Path to the field in the log event that will be parsed. Use dot notation to access child fields. For
example,
store.book
-
destination
public final String destination()
The location to put the parsed key value pair into. If you omit this parameter, it is placed under the root node.
- Returns:
- The location to put the parsed key value pair into. If you omit this parameter, it is placed under the root node.
-
toBuilder
public ParseJSON.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ParseJSON.Builder,ParseJSON>
-
builder
public static ParseJSON.Builder builder()
-
serializableBuilderClass
public static Class<? extends ParseJSON.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-