LogEntry represents an individual entry within a log.
When writing the configuration, the value for the fields associated with this template can either be a literal or an expression. Please note that if the datatype of a field is not istio.mixer.v1.config.descriptor.ValueType, then the expression’s inferred type must match the datatype of the field.
apiVersion: "config.istio.io/v1alpha2" kind: logentry metadata: name: accesslog namespace: istio-config-default spec: severity: '"Default"' timestamp: request.time variables: sourceIp: source.ip | ip("0.0.0.0") destinationIp: destination.ip | ip("0.0.0.0") sourceUser: source.user | "" method: request.method | "" url: request.path | "" protocol: request.scheme | "http" responseCode: response.code | 0 responseSize: response.size | 0 requestSize: request.size | 0 latency: response.duration | "0ms" monitoredResourceType: '"UNSPECIFIED"'
||repeated map<string, ValueType>||Variables that are delivered for each log entry.|
||Timestamp||Timestamp is the time value for the log entry|
||string||Severity indicates the importance of the log entry.|
||string||Optional. An expression to compute the type of the monitored resource this log entry is being recorded on. If the logging backend supports monitored resources, these fields are used to populate that resource. Otherwise these fields will be ignored by the adapter.|
||repeated map<string, ValueType>||Optional. A set of expressions that will form the dimensions of the monitored resource this log entry is being recorded on. If the logging backend supports monitored resources, these fields are used to populate that resource. Otherwise these fields will be ignored by the adapter.|