- 30 Oct 2024
- 1 Minute to read
- Print
- Dark
Adapters as a Service
- Updated on 30 Oct 2024
- 1 Minute to read
- Print
- Dark
In some cases, users may need to install the LimaCharlie Adapter with persistence, to ensure that data collection survives a reboot and/or other disruptions.
To accommodate this need, the LimaCharlie adapter can be installed as a service.
Service Installation
Windows
To install the Windows LimaCharlie adapter as a service, insert the -install:<service_name>
flag in the command line, following the adapter executable name.
For example:
./lc_adapter.exe azure_event_hub client_options.identity.installation_key=...
would be replaced with
./lc_adapter.exe -install:azure_collection azure_event_hub client_options.identity.installation_key=...
This would create a service named azure_collection
with the adapter config.
Remember, adapter configurations can be provided via two methods:
In the command line, as part of a list of flags
Via a YAML config file
Note: The service will point to lc_adapter.exe
based on its path at the creation of the service. If you wish to move the adapter to a permanent location, please do so before creating the service.
Linux / systemd
To install a LimaCharlie adapter as a service on a Linux system with systemd, you will need a service file, the adapter binary, and your adapter command.
Adapter Binary
Download one of the adapter binaries and apply the necessary permissions:
Service File - /etc/systemd/system/limacharlie-adapter-name.service
You will replace $ADAPTER_COMMAND
in the service file with your actual adapter command below.
Adapter Command
Your adapter command may differ depending on your use case--this is an example of a file adapter to ingest logs from a JSON file.
Enable and Start the Service
Service Uninstallation
Windows
To remove a Windows LimaCharlie Adapter service, use the -remove:<service_name>
flag.
Linux
If your service is running with a systemd script, you can disable and remove it with the following: