Log all outgoing traffic
Log all outgoing traffic with MeshAccessLog.
Log all outgoing traffic with MeshAccessLog.
apiVersion: kuma.io/v1alpha1
kind: MeshAccessLog
metadata:
name: all-outgoing-traffic
namespace: kuma-demo
labels:
kuma.io/mesh: default
spec:
to:
- targetRef:
kind: Mesh
default:
backends:
- type: File
file:
path: "/dev/stdout"type: MeshAccessLog
name: all-outgoing-traffic
mesh: default
spec:
to:
- targetRef:
kind: Mesh
default:
backends:
- type: File
file:
path: "/dev/stdout"Adjust konnect_mesh_control_plane.my_meshcontrolplane.id and konnect_mesh.my_mesh.name according to your current configuration.
resource "konnect_mesh_access_log" "all_outgoing_traffic" {
provider = konnect-beta
type = "MeshAccessLog"
name = "all-outgoing-traffic"
spec = {
to = [
{
target_ref = {
kind = "Mesh"
}
default = {
backends = [
{
type = "File"
file = {
path = "/dev/stdout"
}
}
]
}
}
]
}
labels = {
"kuma.io/mesh" = konnect_mesh.my_mesh.name
}
cp_id = konnect_mesh_control_plane.my_meshcontrolplane.id
mesh = konnect_mesh.my_mesh.name
}