Filebeat is successfully set up as service, but the filebeat related files like filebeat.yml is created under /etc/filebeat/filebeat.yml and log file in /var/log/filebeat.
My question is can i install filebeat as service as above but all the filebeat related files should be under my custom folder say /opt/ELK/filebeat instead of /etc/filebeat/filebeat.yml or /var/log/filebeat.
Have you considered to install filebeat from the tgz file or create your own rpm based on the tgz file? When installing via rpm, the rpm database tracks installed packages and files/locations. Moving files kind of messes with these meta-data. Plus, when updating filebeat via rpm you don't want it to overwrite your systemd script.
I installed filebeat from .tar.gz .
I have unzipped the tar.gz in my custom location it and made necessary changes to .yml file.
Then i have created services as per my requirement.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.