Log4j2 syslog appender ignoring facility

Hi.

I tried to configure syslog appender on elasticsearch version 6.6.

Here is my /etc/elasticsearch/log4j2.properties file

appender.syslog.type = syslog
appender.syslog.name = syslog
appender.syslog.facility = local7
appender.syslog.FacilityPrinting = true
appender.syslog.SyslogHost = localhost
appender.syslog.layout.type = PatternLayout
appender.syslog.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] [%node_name]%marker %.-10000m%n
appender.syslog.port = 514

rootLogger.level = info
rootLogger.appenderRef.syslog.ref = syslog

Here is my /etc/rsyslog.d/elastic.conf file

local7.*	-/var/log/testrsyslog/testlocal7-elastic.log
local7.* stop
user.*        -/var/log/testrsyslog/testuser-elastic.log
user.* stop

But when I restart the 2 services, all logs go to /var/log/testrsyslog/testuser-elastic.log file.

The facility "local7" in my log4j2.properties is ignoring.

Can you help me ?

Thanks.