Server Logs
The following section documents settings for configuring AIStor to publish minio server
logs to an HTTP webhook endpoint.
See Publish Server Logs to HTTP Webhook for more complete documentation and tutorials on using these settings.
Example
Settings
Enable
Specify “on” to enable publishing minio server
logs to the HTTP webhook endpoint.
Requires specifying MINIO_LOGGER_WEBHOOK_ENDPOINT
.
Webhook Endpoint
The HTTP endpoint of the webhook.
Authentication Token
An authentication token of the appropriate type for the endpoint. Omit for endpoints which do not require authentication. To allow for a variety of token types, AIStor creates the request authentication header using the value exactly as specified. Depending on the endpoint, you may need to include additional information.
For example: for a Bearer token, prepend Bearer
:
export MINIO_LOGGER_WEBHOOK_AUTH_TOKEN_myendpoint="Bearer 1a2b3c4f5e"
Modify the value according to the endpoint requirements. A custom authentication format could resemble the following:
export MINIO_LOGGER_WEBHOOK_AUTH_TOKEN_xyz="ServiceXYZ 1a2b3c4f5e"
Consult the documentation for the desired service for more details.
Batch Size
Collect and send the specified number of events to the webhook as a batch. If not set, AIStor sends one event per request.
Client Certificate
The path to the mTLS certificate to use for authenticating to the webhook logger.
Client Key
The path to the mTLS certificate key to use to authenticate with the webhook logger service.
Webhook Proxy
Define a proxy to use for the webhook logger when communicating from AIStor to external webhooks.
Queue Dir
Specify the directory path, such as /opt/minio/events
, to enable MinIO’s persistent event store for undelivered messages.
The AIStor process must have read, write, and list access on the specified directory. AIStor stores undelivered events in the specified store while the webhook service is offline and replays the stored events when connectivity resumes.
Queue Size
An integer value to use for the queue size for logger webhook targets.