syslog-ng: Error setting capabilities

Q & Asyslog-ng: Error setting capabilities
marxper asked 1 month ago

Hello every one,
I’m installing the syslog-ng using docker , this is the commande:
docker run –name=syslog-ng-server –restart=unless-stopped -d -v /mypath/syslog-ng.conf:/etc/syslog-ng/syslog-ng.conf -v /var/log/remote:/var/log/remote -p 514:514 -p 601:601 syslog-ng-server:3.7

This is the error that i found in the log:

syslog-ng: Error setting capabilities, capability management disabled; error=’Operation not permitted’
WARNING: Configuration file format is too old, syslog-ng is running in compatibility mode Please update it to use the syslog-ng 3.12 format at your time of convenience, compatibility mode can operate less efficiently in some cases. To upgrade the configuration, please review the warnings about incompatible changes printed by syslog-ng, and once completed change the @version header at the top of the configuration file.;

This is the syslog-ng conf file look’s like:

@version: 3.9
@include “scl.conf”
@include “`scl-root`/system/tty10.conf”

# Syslog-ng configuration file, compatible with default Debian syslogd
# installation.

# First, set some global options.
options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no);
owner(“root”); group(“adm”); perm(0644); stats_freq(0);
bad_hostname(“^gconfd$”); create-dirs(yes); dir-perm(0755);
};

########################
# Sources
########################

# If you wish to get logs from remote machine you should uncomment
# this and comment the above source line.
#
source s_net { network(); };

########################
# Destinations
########################
# First some standard logfile
#
destination d_apache_error { file(“/var/log/remote/apache2/${YEAR}/${MONTH}/${DAY}/error.log”); };

Any one can help me to know what is this and what i can do ?