How to change collector name from the collector?
Hi there, Is it possible to change a collector's name from the collector's machine post installation? We have a use case where we will be distributing an AWS Machine Image with sumologic installed, from which more AMIs will be created. I would like all of the instances created from the second set of AMIs to be updated with their IP, which means that we would need to update the collector name on first boot. I've tried updating the user.properties file with the new name but haven't had any luck. Any help is much appreciated! Thanks, Julian
-
Just in case anyone runs across this I was able to do it with the API: https://github.com/SumoLogic/sumo-api-doc/wiki/Collector-Management-API https://github.com/SumoLogic/sumo-api-doc/wiki/Collector-Management-API----Examples -
Julian: By default, the collector name is the hostname. Meta data in user.properties is only picked up during first-time registration so that file should actually exist before installation. However, user.properties is by default located inside the Sumo collector folder, so I'd say use sumo.conf instead. Alternatively, you can pass the collector name as a command line parameter: https://help.sumologic.com/Send_Data/Installed_Collectors/Step_4._Install_the_Collector/02_Quiet_Mode_Installation_Method All of these apply at installation. If you want to change the collector name post installation once, API is the way to go. If you want to do this for any new image-based deployment going forward, I'd suggest the above.
Please sign in to leave a comment.
Comments
2 comments