Skip to content

Fluentd Config Schema

Note

This is auto-generated documentation from a JSON schema that is under construction, this will improve over time.

Return to the root config schema

https://raw.githubusercontent.com/elastisys/compliantkubernetes-apps/main/config/schemas/config.yaml#/properties/fluentd

Configuration for Fluentd.

Fluentd automatically collects logs from all containers running in the environment.

In the service cluster audit, application, and platform logs can be shipped to object storage. In the workload cluster audit logs can be shipped to object storage and application and platform logs to OpenSearch running in the service cluster.

Logs are collected using a daemon set, and in the workload cluster two sets are deployed, one for the system nodes and one for the worker nodes. Application developer can modify two ConfigMaps to add additional configuration and plugins to the set running on the worker nodes.

When logs are shipped to object storage a stateful aggregator is deployed that buffers logs with persistence before they are shipped. When logs are shipped to OpenSearch it is done directly from the forwarder daemons.

Shipping audit and service cluster logs requires that objectStorage is configured, and will use the bucket or container set in objectStorage.buckets.audit and objectStorage.buckets.scLogs respectively.

Note

Fluentd is installed in both service cluster and workload cluster, so this configuration applies there with some exceptions.

Abstract Extensible Status Identifiable Custom Properties Additional Properties Access Restrictions Defined In
Can be instantiated No Unknown status No Forbidden Forbidden none config/schemas/config.yaml*

TYPE:

object (Fluentd Config)

PROPERTIES:

Property Type Required Nullable Defined by
enabled boolean Optional cannot be null Welkin Apps Config
audit object Optional cannot be null Welkin Apps Config
scLogs object Optional cannot be null Welkin Apps Config
aggregator object Optional cannot be null Welkin Apps Config
forwarder object Optional cannot be null Welkin Apps Config
user object Optional cannot be null Welkin Apps Config
logManager object Optional cannot be null Welkin Apps Config
extraConfigMaps object Optional cannot be null Welkin Apps Config

enabled

enabled

TYPE:

boolean (Fluentd Enabled)

DEFAULTS:

The default value is:

true

audit

Configure Fluentd audit log collection.

audit

TYPE:

object (Fluentd Audit)

scLogs

Configure Fluentd service cluster log collection.

scLogs

TYPE:

object (Fluentd SC Logs)

aggregator

Configure Fluentd aggregator, used to buffer logs with persistence before they are shipped to object storage.

aggregator

TYPE:

object (Fluentd Aggregator)

forwarder

Configure Fluentd forwarder, used to collect and forward logs on system nodes.

forwarder

TYPE:

object (Fluentd Forwarder)

user

Configure Fluentd forwarder, used to collect and forward logs on worker nodes.

user

TYPE:

object (Fluentd Forwarder User)

logManager

Configure log-manager, used to manage compaction and retention of logs store in object storage.

logManager

TYPE:

object (Log Manager)

extraConfigMaps

Configure extra ConfigMaps for Fluentd.

Note

This is only applicable for Fluentd forwarder running on system nodes in the workload cluster.

extraConfigMaps

TYPE:

object (Fluentd Extra ConfigMaps)

Definitions

logManager

Reference this group by using

{"$ref":"https://raw.githubusercontent.com/elastisys/compliantkubernetes-apps/main/config/schemas/config.yaml#/properties/fluentd/$defs/logManager"}
Property Type Required Nullable Defined by
compaction object Optional cannot be null Welkin Apps Config
retention object Optional cannot be null Welkin Apps Config
jobEnabled boolean Optional cannot be null Welkin Apps Config
jobDays number Optional cannot be null Welkin Apps Config
jobSchedule string Optional cannot be null Welkin Apps Config
jobEphemeralVolumes object Optional cannot be null Welkin Apps Config

compaction

Configure the compaction of logs stored in object storage.

compaction

TYPE:

object (Log Manager Compaction)

retention

Configure the retention of logs stored in object storage.

retention

TYPE:

object (Log Manager Retention)

jobEnabled

jobEnabled

TYPE:

boolean (Log Manager Job Enabled)

DEFAULTS:

The default value is:

true

jobDays

Configure the days to consider for compaction or the days to retain.

jobDays

TYPE:

number (Log Manager Job Enabled)

jobSchedule

jobSchedule

TYPE:

string (Log Manager Job Schema)

jobEphemeralVolumes

Configure the job to run with an ephemeral volume if the nodes risk running out of storage.

jobEphemeralVolumes

TYPE:

object (Log Manager Job Ephemeral Volume)

Return to the root config schema


Generated Sun Nov 17 03:51:36 UTC 2024 from elastisys/compliantkubernetes-apps@main