How to find rsyslog configuration files at harbor tile
search cancel

How to find rsyslog configuration files at harbor tile

book

Article ID: 437647

calendar_today

Updated On:

Products

VMware Tanzu Kubernetes Grid Integrated Edition

Issue/Introduction

Configured the rsyslog configuration at the harbor tile and gave apply changes but those rsyslog release configurations are not updating under the /etc/rsyslog.conf

Cause

Harbor runs as a BOSH-deployed system, not as a conventional Linux service. Log forwarding is configured and managed within the Harbor BOSH deployment.

As a result, OS-level files such as /etc/rsyslog.conf or files under /etc/rsyslog.d are not expected to change when updating Log Insight settings via the Harbor tile.

This is an expected behavior. 

Resolution

The tile properties are rendered at deploy time into job-specific rsyslog configuration files, which can be found under:

/var/vcap/jobs/harbor/packages/harbor-app/common/config/log

 

This is a sample

harbor-app/######:/var/vcap/jobs/harbor/packages/harbor-app/common/config/log$ sudo cat rsyslog_docker.conf
# Rsyslog configuration file for docker.

template(name="DynaFile" type="string" string="/var/log/docker/%programname%.log")

if $programname != "rsyslogd" then {
	action(type="omfwd" Target="192.168.#.#" Port="514" Protocol="tcp" Template="RSYSLOG_SyslogProtocol23Format")
}