auditLog-1.7.0
less than a minute
Kosi Plugin auditLog Version 1.7.0
Summary
The auditLog plugin enables or disables audit logging for your Kubernetes cluster. This plugin allows you to control logging settings and define paths for policy and log storage.
Keys
Key | Description | |
---|---|---|
state | Mandatory | Set to on to enable or off to disable audit logging for the cluster. |
policyPath | Mandatory | Specifies the directory where the policy.yaml file is stored. |
logPath | Mandatory | Defines the directory where the audit.log file will be saved. |
Example 1 - enable auditLog
languageversion = "1.0.0";
apiversion = "kubernative/kubeops/kosi/user/v4";
name = "kosi-example-packagev3";
description = "kosi-example-package";
version = "0.1.0";
docs = "docs.tgz";
logo = "logo.png";
files =
{
input = "template.yaml";
}
containers =
{
example = ["docker.io", "nginx", "latest"];
}
install
{
auditLog
(
state = "on";
policyPath = "/root/test/policyDir/";
logPath = "/root/test/logging/";
);
}
Example 2 - disable auditLog
languageversion = "1.0.0";
apiversion = "kubernative/kubeops/kosi/user/v4";
name = "kosi-example-packagev3";
description = "kosi-example-package";
version = "0.1.0";
docs = "docs.tgz";
logo = "logo.png";
files =
{
input = "template.yaml";
}
containers =
{
example = ["docker.io", "nginx", "latest"];
}
install
{
auditLog
(
state = "off";
policyPath = "/root/test/policyDir/";
logPath = "/root/test/logging/";
);
}