I am using filebeat on my Linux machine as a service (i.e. sudo service start filebeat). The service is started with the config file from the default location:
● filebeat.service - Filebeat sends log files to Logstash or directly to Elasticsearch.
Loaded: loaded (/lib/systemd/system/filebeat.service; enabled; vendor preset: enabled)
Docs: https://www.elastic.co/products/beats/filebeat
Main PID: 4097 (filebeat)
CGroup: /system.slice/filebeat.service
└─4097 /usr/share/filebeat/bin/filebeat -c /etc/filebeat/filebeat.yml -path.home /usr/share/filebeat -path.
systemd[1]: Started Filebeat sends log files to Logstash or directly to Elasticsearch..
How can I tell the service to load the config file from another location?