I'm trying to wrap my head around "filebeat setup -e". Let's say I've already got filebeat up and running with a couple of modules, and I want to roll out a new module to a bunch of servers. Which of these would make sense?
-
On all of the servers, change output.elasticsearch.username to filebeat_internal, run "filebeat setup -e", then change output.elasticsearch.username back to filebeat_writer.
-
On one of the servers, change output.elasticsearch.username to filebeat_internal, run "filebeat setup -e", then change output.elasticsearch.username back to filebeat_writer.
-
On a server where I have filebeat set up but not running, always use filebeat_internal for output.elasticsearch.username, and run "filebeat setup -e" only on that server after enabling a new module on it.
-
Only run "filebeat setup -e" the first time that filebeat is installed anywhere; don't run it again after new modules are enabled.
Would one or more of those strategies work?
I'm hoping that #3 would work, since that would save me from having to switch the username back and forth between filebeat_internal and filebeat_writer every time I roll out a new module. Would it?
Thanks.