Set a Collector as Ephemeral
During the installation process, if a Collector is flagged as ephemeral, the Collector will be deleted automatically after being offline for 12 hours. This can be helpful when using certain APIs, for example, where Amazon Machine Images (AMIs) are constantly created as new Collectors, but serve a purpose for only a short while. After being offline for a while, the AMI-created Collector is automatically deleted.
If the Collector is already registered (activated) with Sumo Logic you need to use the Collector Management API to set the ephemeral property.
(Using Quiet Mode installation) To set the ephemeral flag via command line argument:
- When starting the installer from the command line, pass the argumentÂ
-Vephemeral=true
- Install the Collector.
- Verify that the generated
user.properties
file (under theconfig
directory) contains the property Âephemeral=true
.
(Using the Binary Package) To set the ephemeral flag via user.properties or sumo.conf file:
-
Create the configuration file.
- (Collector version 19.137 and newer) Create and edit the
user.properties
file (in theconfig
directory of your Collector installation). - (Collector version 19.127 and older) Create and edit the
sumo.conf
(in the/etc/sumo.conf
directory on Mac or Linux; in theC:\sumo
directory on Windows).
- (Collector version 19.137 and newer) Create and edit the
-
Type
ephemeral=true
in the file, then save and close it. -
Start the Collector.
What happens to logs collected from ephemeral Collectors?​
Logs are only deleted from Sumo Logic when your organization’s retention period expires, including data from ephemeral Collectors that have been deleted, meaning that you'll still be able to run searches against logs collected from deleted Collectors. You can also search against metadata for Collectors and Sources that have been deleted.