Filebeat and metricbeat logs ending up in /var/log/messages

Looks like enabling --environment systemd options logs the outputs by default to stderr and stdout even though logging.to_files is set to true. Not sure if this is expected behaviour or not