"Fossies" - the Fresh Open Source Software Archive

Member "istio-1.6.5/mixer/testdata/config/accesslog.yaml" (8 Jul 2020, 2351 Bytes) of package /linux/misc/istio-1.6.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 apiVersion: "config.istio.io/v1alpha2"
    2 kind: handler
    3 metadata:
    4   name: stdio
    5   namespace: istio-system
    6 spec:
    7   compiledAdapter: stdio
    8   params:
    9     outputAsJson: true
   10 ---
   11 apiVersion: "config.istio.io/v1alpha2"
   12 kind: logentry
   13 metadata:
   14   name: accesslog
   15   namespace: istio-system
   16 spec:
   17   severity: '"Default"'
   18   timestamp: request.time | timestamp("2017-01-01T00:00:00Z")
   19   variables:
   20     sourceIp: source.ip | ip("0.0.0.0")
   21     sourceApp: source.labels["app"] | ""
   22     sourcePrincipal: source.principal | ""
   23     sourceName: source.name | ""
   24     sourceWorkload: source.workload.name | ""
   25     sourceNamespace: source.namespace | ""
   26     sourceOwner: source.owner | ""
   27     destinationApp: destination.labels["app"] | ""
   28     destinationIp: destination.ip | ip("0.0.0.0")
   29     destinationServiceHost: destination.service.host | ""
   30     destinationWorkload: destination.workload.name | ""
   31     destinationName: destination.name | ""
   32     destinationNamespace: destination.namespace | ""
   33     destinationOwner: destination.owner | ""
   34     destinationPrincipal: destination.principal | ""
   35     apiName: api.service | ""
   36     apiVersion: api.version | ""
   37     apiClaims: request.auth.raw_claims | ""
   38     apiKey: request.api_key | request.headers["x-api-key"] | ""
   39     requestOperation: api.operation | ""
   40     protocol: request.scheme | context.protocol | "http"
   41     method: request.method | ""
   42     url: request.path | ""
   43     responseCode: response.code | 0
   44     responseSize: response.size | 0
   45     requestSize: request.size | 0
   46     requestId: request.headers["x-request-id"] | ""
   47     clientTraceId: request.headers["x-client-trace-id"] | ""
   48     latency: response.duration | "0ms"
   49     connectionMtls: connection.mtls | false
   50     requestedServerName: connection.requested_server_name | ""
   51     userAgent: request.useragent | ""
   52     responseTimestamp: response.time | timestamp("2017-01-01T00:00:00Z")
   53     receivedBytes: request.total_size | 0
   54     sentBytes: response.total_size | 0
   55     referer: request.referer | ""
   56     xForwardedFor: request.headers["x-forwarded-for"] | "0.0.0.0"
   57   monitored_resource_type: '"UNSPECIFIED"'
   58 ---
   59 apiVersion: "config.istio.io/v1alpha2"
   60 kind: rule
   61 metadata:
   62   name: stdiohttp
   63   namespace: istio-system
   64 spec:
   65   match: context.protocol == "http" || context.protocol == "grpc"
   66   actions:
   67   - handler: stdio
   68     instances:
   69     - accesslog.logentry