TMAegisBeta
More rules for yugabytedb

YugabyteDB

TMA-YUGABYTEDB-3.1.7

Ensure the correct syslog facility is selected

LowLevel 1Manual reviewyugabytedb

Description

The syslog_facility setting specifies the syslog "facility" to be used when logging to syslog is enabled. You can choose from any of the 'local' facilities: - LOCAL0 - LOCAL1 - LOCAL2 - LOCAL3 - LOCAL4 - LOCAL5 - LOCAL6 - LOCAL7 Your organization's logging policy should dictate which facility to use based on the syslog daemon in use.

How it is checked

Audit method: Manual review

This recommendation cannot be checked automatically. A scan lists it with these instructions when you pass --include-manual.

Run SHOW syslog_facility; in ysqlsh (default local0). Where syslog is a log destination, the facility must be the one your syslog configuration routes to the protected YugabyteDB log (for example local1); an unrouted or shared facility is a finding.

How it is fixed

Fix method: Guidance or infrastructure patch

Use the yb-tserver binary and its flags to configure the YB-TServer server (in this example, setting it to the LOCAL1 facility). Add the following GFLAG to YB- TServer: ./bin/yb-tserver --ysql_pg_conf_csv="syslog_facility='local1'"

Properties

Operating systems
Any
Tags
yugabytedblogging
Reference
CIS YugabyteDB Benchmark v2.0.0 - 3.1.7 Ensure the correct syslog facility is selected