MeshAccessLog
Returns MeshAccessLog entity
get/v1/mesh/control-planes/{cpId}/api/meshes/{mesh}/meshaccesslogs/{name}
Path parameters
meshstring required
name of the mesh
namestring required
name of the MeshAccessLog
Response
Successful response
Example response
{
"kri": "kri_mal_default_zone-east_kuma-demo_mypolicy1_",
"spec": {
"from": [
{
"default": {
"backends": [
{
"file": {
"format": {
"json": [
{
"key": "start_time",
"value": "%START_TIME%"
},
{
"key": "bytes_received",
"value": "%BYTES_RECEIVED%"
}
],
"plain": "[%START_TIME%] %KUMA_MESH% %UPSTREAM_HOST%"
},
"path": "/tmp/access.log"
},
"openTelemetry": {
"attributes": [
{
"key": "mesh",
"value": "%KUMA_MESH%"
}
],
"body": {
"kvlistValue": {
"values": [
{
"key": "mesh",
"value": {
"stringValue": "%KUMA_MESH%"
}
}
]
}
},
"endpoint": "otel-collector:4317"
},
"tcp": {
"address": "127.0.0.1:5000",
"format": {
"json": [
{
"key": "start_time",
"value": "%START_TIME%"
},
{
"key": "bytes_received",
"value": "%BYTES_RECEIVED%"
}
],
"plain": "[%START_TIME%] %KUMA_MESH% %UPSTREAM_HOST%"
}
}
}
]
}
}
],
"rules": [
{
"default": {
"backends": [
{
"file": {
"format": {
"json": [
{
"key": "start_time",
"value": "%START_TIME%"
},
{
"key": "bytes_received",
"value": "%BYTES_RECEIVED%"
}
],
"plain": "[%START_TIME%] %KUMA_MESH% %UPSTREAM_HOST%"
},
"path": "/tmp/access.log"
},
"openTelemetry": {
"attributes": [
{
"key": "mesh",
"value": "%KUMA_MESH%"
}
],
"body": {
"kvlistValue": {
"values": [
{
"key": "mesh",
"value": {
"stringValue": "%KUMA_MESH%"
}
}
]
}
},
"endpoint": "otel-collector:4317"
},
"tcp": {
"address": "127.0.0.1:5000",
"format": {
"json": [
{
"key": "start_time",
"value": "%START_TIME%"
},
{
"key": "bytes_received",
"value": "%BYTES_RECEIVED%"
}
],
"plain": "[%START_TIME%] %KUMA_MESH% %UPSTREAM_HOST%"
}
}
}
]
}
}
],
"to": [
{
"default": {
"backends": [
{
"file": {
"format": {
"json": [
{
"key": "start_time",
"value": "%START_TIME%"
},
{
"key": "bytes_received",
"value": "%BYTES_RECEIVED%"
}
],
"plain": "[%START_TIME%] %KUMA_MESH% %UPSTREAM_HOST%"
},
"path": "/tmp/access.log"
},
"openTelemetry": {
"attributes": [
{
"key": "mesh",
"value": "%KUMA_MESH%"
}
],
"body": {
"kvlistValue": {
"values": [
{
"key": "mesh",
"value": {
"stringValue": "%KUMA_MESH%"
}
}
]
}
},
"endpoint": "otel-collector:4317"
},
"tcp": {
"address": "127.0.0.1:5000",
"format": {
"json": [
{
"key": "start_time",
"value": "%START_TIME%"
},
{
"key": "bytes_received",
"value": "%BYTES_RECEIVED%"
}
],
"plain": "[%START_TIME%] %KUMA_MESH% %UPSTREAM_HOST%"
}
}
}
]
}
}
]
},
"creationTime": "0001-01-01T00:00:00Z",
"modificationTime": "0001-01-01T00:00:00Z"
}