I want to add new prospectors to filebeat.yml and then restart Filebeat. How to restart filebeat extracted from the downloaded tar? Does running the command <./filebeat -c filebeat.yml>
again ensure previous filebeat gets stopped and filebeat starts again from where it let off?
Thanks!
If you don't want to use the init script, you need to kill the old instance, before starting the new one. You can do that by pressing Control-C in the console, or by using the kill <pid> command.
Thanks for your response @tudor . I am concerned about my access rights to /etc directory. So I would like to extract the tar in one of my directories and then execute Filebeat. Also, I want to do restart Filebeat without being concerned about killing existing Filebeat process(the way it happens in sudo /etc/init.d/filebeat restart).
Just to confirm, I tried running command <./filebeat -c filebeat.yml> every time I wanted to add a new prospector to filebeat.yml. When I checked running processes using command (ps -A) on my system after executing <./filebeat -c filebeat.yml> n times, I see n filebeat processes running.
Do you see any scope of this restart functionality be taken as an enhancement in Filebeat?
We do not plan a restarting functionality in Filebeat itself, because we see this as something that needs to happen outside of the process, but we do plan to release a configuration reloading feature. This means that you will be able to add a new prospector to an existing Filebeat instance by dropping a new file in a folder: https://www.elastic.co/guide/en/beats/filebeat/master/filebeat-configuration-reloading.html
Two questions: Is this currently IN 5.3 as experimental? And if so, how do we actually need to access it? Does the whole new file need to be dropped in / replace the existing config yml? We are looking at setting up CI/CD from a repo to change things like add a new Prospector, and this is exactly what we are needing... (and I think we are looking at or possibly already working with 5.3)
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.