​
Select Service
ves-io-schema-log-CustomAPI-K8SAuditLogQuery
Published April 5, 2023 | Last modified November 14, 2025
Examples of performing log CustomAPI K8SAuditLogQuery
Usecase:
Perform K8SAuditLogQuery on log
Request:
Request using vesctl:
vesctl request rpc log.CustomAPI.K8SAuditLogQuery -i request.yaml --uri /public/namespaces/namespace-literal/site/site-literal/k8s_audit_logs --http-method POST
where file request.yaml has following contents:
{}
Copied!
vesctl yaml response:
aggs: {}
logs: []
Copied!
Request using curl:
curl -X 'POST' -d '{}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_var_folders_q2_3kp8z3zs0x5_m7pk1bgb0_ph0000gp_T_go-build4194363419_b001_apidocs.test/host=MTY6VVHQPH/svc=S:examplesvc/site=mytestce01' 'https://acmecorp.console.ves.volterra.io/api/data/namespaces/namespace-literal/site/site-literal/k8s_audit_logs'
Copied!
curl response:
HTTP/1.1 200 OK
Content-Length: 76
Content-Type: application/json
Date: Thu, 13 Nov 2025 23:06:24 GMT
Vary: Accept-Encoding
{
"logs": [
],
"total_hits": "0",
"aggs": {
},
"scroll_id": ""
}
Copied!