Class ParseToOCSF
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ParseToOCSF.Builder,ParseToOCSF>
This processor converts logs into Open Cybersecurity Schema Framework (OCSF) events.
For more information about this processor including examples, see parseToOCSF in the CloudWatch Logs User Guide.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ParseToOCSF.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final EventSourceSpecify the service or process that produces the log events that will be converted with this processor.final StringSpecify the service or process that produces the log events that will be converted with this processor.final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringThe version of the OCSF mapping to use for parsing log data.final OCSFVersionSpecify which version of the OCSF schema to use for the transformed log events.final StringSpecify which version of the OCSF schema to use for the transformed log events.static Class<? extends ParseToOCSF.Builder>final Stringsource()The path to the field in the log event that you want to parse.final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
source
The path to the field in the log event that you want to parse. If you omit this value, the whole log message is parsed.
- Returns:
- The path to the field in the log event that you want to parse. If you omit this value, the whole log message is parsed.
-
eventSource
Specify the service or process that produces the log events that will be converted with this processor.
If the service returns an enum value that is not available in the current SDK version,
eventSourcewill returnEventSource.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeventSourceAsString().- Returns:
- Specify the service or process that produces the log events that will be converted with this processor.
- See Also:
-
eventSourceAsString
Specify the service or process that produces the log events that will be converted with this processor.
If the service returns an enum value that is not available in the current SDK version,
eventSourcewill returnEventSource.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeventSourceAsString().- Returns:
- Specify the service or process that produces the log events that will be converted with this processor.
- See Also:
-
ocsfVersion
Specify which version of the OCSF schema to use for the transformed log events.
If the service returns an enum value that is not available in the current SDK version,
ocsfVersionwill returnOCSFVersion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromocsfVersionAsString().- Returns:
- Specify which version of the OCSF schema to use for the transformed log events.
- See Also:
-
ocsfVersionAsString
Specify which version of the OCSF schema to use for the transformed log events.
If the service returns an enum value that is not available in the current SDK version,
ocsfVersionwill returnOCSFVersion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromocsfVersionAsString().- Returns:
- Specify which version of the OCSF schema to use for the transformed log events.
- See Also:
-
mappingVersion
The version of the OCSF mapping to use for parsing log data.
- Returns:
- The version of the OCSF mapping to use for parsing log data.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<ParseToOCSF.Builder,ParseToOCSF>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-