In which order are config loaded?

Hi, so far as I can see, there is a path.config which pont to /etc/filebeat (on debian systems). when I put a config file in this dir, lets say custom_conf.yml. will it be load after the filebeat.yml and overwrite the settings (in fileabeat.yml)?

it looks like that the --path.config is useless maybe I create an report for this

Question answered in a Github issue: useless option path.config · Issue #27458 · elastic/beats · GitHub