Prevent from filebeat to logging to /var/messages

What is your Filebeat version?

You can configure the logging path using logging.files.path: https://www.elastic.co/guide/en/beats/filebeat/current/configuration-logging.html#_logging_files_path