execbeat
execbeat copied to clipboard
dynamic insertion of commands
Hi Christian,
I am looking dynamic insertion/deletion of commands in execbeat.yml file. That is when I add execbeat.yml in initial build it may not have exhaustive list of commands. But when needed i should be able to add/delete a new set of commands to execbeat.yml.
Is it possible as of now?
With Best wishes, Veera
Hi Veera,
I'm not sure if I understand your request as you speak of "building" and adding commands. There are pre-build binaries available under "releases" and you don't need to rebuild Execbuild after adding new commands but just restarting one of the pre-build binaries is sufficient.
Hi Christian,
Thanks for your reply. My question is different. Rephrasing it.
I wanted to add or remove commands into execbeat.yml file at run time. That mean, for ex: today i am running x set of logging commands, maybe some day i need execbeat to run y set of logging commands. So is there a possibility to add/remove commands to execbeat.yml.
Current workaround i am doing is: have 2 .yml files (one for each x & y set) . based on need just kill current running execbeat & restart execbeat with different .yml & so on. But it may not work if set changes dynamically, as per the user request.
With Best Regards, Veera
Hi Veera, Thanks for the clarification. Currently this is not possible. As a workaround You can start the Execbeat with different configurations in parallel. The beat infrastructure has an option to automatically reload the configuration, but I haven't implemented that for Execbeat. I'm currently traveling but will look into it when back. Of course I'm also happy for any pull request :)
The automatic reloading of the configuration is still in beta. Therefore I would like to wait with the implementation until it becomes a stable feature
Hi Christian, Thanks for your inputs. I am new to GoLang, let me see if i could add this feature to execbeat. Currently i am using the workaround of restarting the execbeat with new configuration file. Again thanks for your inputs. Veera
Hi @veeragadag , @christiangalsterer
Have submitted a pull request #20 to support this requirement. Do have a check and let me know your suggestions.
Thank You