Logstash Logs to Syslog

Why is logstash writing logs to syslog even though i have this in the yml file:

log.level: fatal
path.logs: /var/log/logstash/
logging.to_syslog: false
logging.to_stderr: false

not to mention the fact that i also removed stdout { codec => rubydebug } from the conf file as well.

and also for some reason it doesn’t log anything to /var/log/logstash/ it only logs to syslog. Not to mention that I have the same issue with Metricbeat as well.

Can someone please give me an example of how to fix this?