Audit Logging
Audit logging is an optional part of the platform which can be enabled or disabled based on your requirements. With audit logging all requests to Seldon Enterprise Platform will be logged to a configurable place.
Configuration
Please refer to the production installation setup guide.
Log schema
Seldon Enterprise Platform uses a structured log schema. Each request to Enterprise Platform will produce a single JSON message containing the following fields:
Host
string
The host which serves this request.
Method
string
The HTTP method (GET, POST, PUT, etc.).
Referer
string
The referring URL, if sent in the request.
RequestID
string
A randomly generated version 4 UUID.
ResponseBody
string
The response body that the server returns for this request.
ResponseSize
number
The size of the response body in bytes.
ResponseStatus
number
The HTTP response status code.
SourceAddress
string
The IP of the sender of the request.
Timestamp
string
UTC timestamp of the request.
URI
string
The endpoint called in the request.
UserAgent
string
The user agent of the caller.
UserInfo
object
The authentication information of the caller.
Where UserInfo
has the following fields:
Id
string
The ID of the caller.
Name
string
The Name of the caller.
string
The Email of the caller.
Groups
array of strings
The Groups that the caller belongs to.
Example log entry:
Operations
Enterprise Platform exports Prometheus metrics that can be used to diagnose the operational health of the audit logging pipeline.
The metric is a counter called deploy_audit_logs_total
. It has 2 additional labels:
output
- one ofwriter
(indicating writing to stdout) orfluentd
(indicating forwarding to Fluentd).status
- one ofsuccess
orfailure
.
Additionally, Fluentd can be configured to export metrics itself to help observe the rest of the storage pipeline - how Fluentd stores the logs in your desired storage solution. Please refer to the official documentation for setting this up.
Limitations
Audit logging in Seldon Enterprise Platform covers all of its endpoints, including model metadata management and deployment management. Any requests outside of Seldon Enterprise Platform will not be present in the audit logs. This includes requests that are made directly to the ML deployments managed by Enterprise Platform.
Last updated