Class DynamicModuleAccessLog
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.access_loggers.dynamic_modules.v3.DynamicModuleAccessLog
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,DynamicModuleAccessLogOrBuilder,Serializable
public final class DynamicModuleAccessLog
extends com.google.protobuf.GeneratedMessageV3
implements DynamicModuleAccessLogOrBuilder
Configuration for the Dynamic Modules Access Logger. This logger allows loading shared object files via ``dlopen`` to implement custom access logging behavior. A module can be loaded by multiple access loggers; the module is loaded only once and shared across multiple logger instances. The access logger receives completed request information including request/response headers, stream info (timing, upstream info, response codes), and the log context type.Protobuf type
envoy.extensions.access_loggers.dynamic_modules.v3.DynamicModuleAccessLog- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfiguration for the Dynamic Modules Access Logger.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic DynamicModuleAccessLogstatic final com.google.protobuf.Descriptors.DescriptorSpecifies the shared-object level configuration.Specifies the shared-object level configuration.com.google.protobuf.AnyThe configuration for the logger chosen by ``logger_name``.com.google.protobuf.AnyOrBuilderThe configuration for the logger chosen by ``logger_name``.The name for this logger configuration.com.google.protobuf.ByteStringThe name for this logger configuration.com.google.protobuf.Parser<DynamicModuleAccessLog>intbooleanSpecifies the shared-object level configuration.inthashCode()booleanThe configuration for the logger chosen by ``logger_name``.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(DynamicModuleAccessLog prototype) protected DynamicModuleAccessLog.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static DynamicModuleAccessLogparseDelimitedFrom(InputStream input) static DynamicModuleAccessLogparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DynamicModuleAccessLogparseFrom(byte[] data) static DynamicModuleAccessLogparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DynamicModuleAccessLogparseFrom(com.google.protobuf.ByteString data) static DynamicModuleAccessLogparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DynamicModuleAccessLogparseFrom(com.google.protobuf.CodedInputStream input) static DynamicModuleAccessLogparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DynamicModuleAccessLogparseFrom(InputStream input) static DynamicModuleAccessLogparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DynamicModuleAccessLogparseFrom(ByteBuffer data) static DynamicModuleAccessLogparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<DynamicModuleAccessLog>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
DYNAMIC_MODULE_CONFIG_FIELD_NUMBER
public static final int DYNAMIC_MODULE_CONFIG_FIELD_NUMBER- See Also:
-
LOGGER_NAME_FIELD_NUMBER
public static final int LOGGER_NAME_FIELD_NUMBER- See Also:
-
LOGGER_CONFIG_FIELD_NUMBER
public static final int LOGGER_CONFIG_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasDynamicModuleConfig
public boolean hasDynamicModuleConfig()Specifies the shared-object level configuration. This field is required.
.envoy.extensions.dynamic_modules.v3.DynamicModuleConfig dynamic_module_config = 1 [(.validate.rules) = { ... }- Specified by:
hasDynamicModuleConfigin interfaceDynamicModuleAccessLogOrBuilder- Returns:
- Whether the dynamicModuleConfig field is set.
-
getDynamicModuleConfig
Specifies the shared-object level configuration. This field is required.
.envoy.extensions.dynamic_modules.v3.DynamicModuleConfig dynamic_module_config = 1 [(.validate.rules) = { ... }- Specified by:
getDynamicModuleConfigin interfaceDynamicModuleAccessLogOrBuilder- Returns:
- The dynamicModuleConfig.
-
getDynamicModuleConfigOrBuilder
Specifies the shared-object level configuration. This field is required.
.envoy.extensions.dynamic_modules.v3.DynamicModuleConfig dynamic_module_config = 1 [(.validate.rules) = { ... }- Specified by:
getDynamicModuleConfigOrBuilderin interfaceDynamicModuleAccessLogOrBuilder
-
getLoggerName
The name for this logger configuration. If not specified, defaults to an empty string. This can be used to distinguish between different logger implementations inside a dynamic module. For example, a module can have completely different logger implementations (e.g., file logger, gRPC logger, metrics logger). When Envoy receives this configuration, it passes the ``logger_name`` to the dynamic module's access logger config init function together with the ``logger_config``. That way a module can decide which in-module logger implementation to use based on the name at load time.
string logger_name = 2;- Specified by:
getLoggerNamein interfaceDynamicModuleAccessLogOrBuilder- Returns:
- The loggerName.
-
getLoggerNameBytes
public com.google.protobuf.ByteString getLoggerNameBytes()The name for this logger configuration. If not specified, defaults to an empty string. This can be used to distinguish between different logger implementations inside a dynamic module. For example, a module can have completely different logger implementations (e.g., file logger, gRPC logger, metrics logger). When Envoy receives this configuration, it passes the ``logger_name`` to the dynamic module's access logger config init function together with the ``logger_config``. That way a module can decide which in-module logger implementation to use based on the name at load time.
string logger_name = 2;- Specified by:
getLoggerNameBytesin interfaceDynamicModuleAccessLogOrBuilder- Returns:
- The bytes for loggerName.
-
hasLoggerConfig
public boolean hasLoggerConfig()The configuration for the logger chosen by ``logger_name``. If not specified, an empty configuration is passed to the module. This is passed to the module's access logger initialization function. Together with the ``logger_name``, the module can decide which in-module logger implementation to use and fine-tune the behavior of the logger. For example, if a module has two logger implementations, one for file output and one for sending to an external service, ``logger_name`` is used to choose either file or external. The ``logger_config`` can be used to configure file paths, service endpoints, batching parameters, format strings, etc. ``google.protobuf.Struct`` is serialized as JSON before passing it to the module. ``google.protobuf.BytesValue`` and ``google.protobuf.StringValue`` are passed directly without the wrapper. .. code-block:: yaml # Passing a JSON struct configuration logger_config: "@type": "type.googleapis.com/google.protobuf.Struct" value: output_path: "/var/log/envoy/access.log" format: "json" buffer_size: 1000 # Passing a simple string configuration logger_config: "@type": "type.googleapis.com/google.protobuf.StringValue" value: "/var/log/envoy/access.log".google.protobuf.Any logger_config = 3;- Specified by:
hasLoggerConfigin interfaceDynamicModuleAccessLogOrBuilder- Returns:
- Whether the loggerConfig field is set.
-
getLoggerConfig
public com.google.protobuf.Any getLoggerConfig()The configuration for the logger chosen by ``logger_name``. If not specified, an empty configuration is passed to the module. This is passed to the module's access logger initialization function. Together with the ``logger_name``, the module can decide which in-module logger implementation to use and fine-tune the behavior of the logger. For example, if a module has two logger implementations, one for file output and one for sending to an external service, ``logger_name`` is used to choose either file or external. The ``logger_config`` can be used to configure file paths, service endpoints, batching parameters, format strings, etc. ``google.protobuf.Struct`` is serialized as JSON before passing it to the module. ``google.protobuf.BytesValue`` and ``google.protobuf.StringValue`` are passed directly without the wrapper. .. code-block:: yaml # Passing a JSON struct configuration logger_config: "@type": "type.googleapis.com/google.protobuf.Struct" value: output_path: "/var/log/envoy/access.log" format: "json" buffer_size: 1000 # Passing a simple string configuration logger_config: "@type": "type.googleapis.com/google.protobuf.StringValue" value: "/var/log/envoy/access.log".google.protobuf.Any logger_config = 3;- Specified by:
getLoggerConfigin interfaceDynamicModuleAccessLogOrBuilder- Returns:
- The loggerConfig.
-
getLoggerConfigOrBuilder
public com.google.protobuf.AnyOrBuilder getLoggerConfigOrBuilder()The configuration for the logger chosen by ``logger_name``. If not specified, an empty configuration is passed to the module. This is passed to the module's access logger initialization function. Together with the ``logger_name``, the module can decide which in-module logger implementation to use and fine-tune the behavior of the logger. For example, if a module has two logger implementations, one for file output and one for sending to an external service, ``logger_name`` is used to choose either file or external. The ``logger_config`` can be used to configure file paths, service endpoints, batching parameters, format strings, etc. ``google.protobuf.Struct`` is serialized as JSON before passing it to the module. ``google.protobuf.BytesValue`` and ``google.protobuf.StringValue`` are passed directly without the wrapper. .. code-block:: yaml # Passing a JSON struct configuration logger_config: "@type": "type.googleapis.com/google.protobuf.Struct" value: output_path: "/var/log/envoy/access.log" format: "json" buffer_size: 1000 # Passing a simple string configuration logger_config: "@type": "type.googleapis.com/google.protobuf.StringValue" value: "/var/log/envoy/access.log".google.protobuf.Any logger_config = 3;- Specified by:
getLoggerConfigOrBuilderin interfaceDynamicModuleAccessLogOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DynamicModuleAccessLog parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DynamicModuleAccessLog parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DynamicModuleAccessLog parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DynamicModuleAccessLog parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DynamicModuleAccessLog parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DynamicModuleAccessLog parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static DynamicModuleAccessLog parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static DynamicModuleAccessLog parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static DynamicModuleAccessLog parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static DynamicModuleAccessLog parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DynamicModuleAccessLog.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-