Collector name can be changed after installation using the following two methods:
A.) Update the Collector Name from the Sumo Logic UI
1.) Login to Sumo Logic UI, in the Sumo Logic Web Application select "Manage Data" > Collection > Collection (tab).
2.) Click the installed collector name, or click the Edit link to the right of the collector name.
3.) Change the name or change the metadata fields as needed.
Note: The updated collector name is only be applied to newly ingested data; previously uploaded data retains its original collector name.
B.) Using the Collector Management API to update collector name
1.) Get a list of Collectors with optional limit and offset.
curl -u 'accessid:accesskey' -X GET https://api.sumologic.com/api/v1/collectors?limit=10
Where https://api.sumologic.com is your deployment URL.
2.) Using PUT method with your JSON file, you can update an existing collector. The JSON request file must specify values for all required fields. Not modifiable fields must match their current values in the system. Updating a Collector also requires the "If-Match" header to be specified with the "ETag" provided in the headers of a previous GET request.
First, use a GET request with -v flag to obtain the "ETag" header value.
Initial GET Request:
curl -v -u 'accessid:accesskey' -X GET https://api.sumologic.com/api/v1/collectors/15
Where "15" is replaced by your collector ID.
3.) Next, modify the Collector's JSON attributes as needed and use a PUT request, passing the "ETag" value obtained above with the "If-Match" header.
curl -u 'accessid:accesskey' -X PUT -H "Content-Type: application/json" -H "If-Match: \"f58d12c6986f80d6ca25ed8a3943daa9\"" -T updated_collector.json https://api.sumologic.net/api/v1/collectors/15
You can read more about the steps to update a collector using Collector Management API and find additional examples here: Documentation
Note: A User needs to have "Manage Collectors" capabilities to update any collector.