--- title: "Import alarms and data sources automatically" slug: "import-alarms-and-data-sources-automatically" tags: ["ESM", "Product Usage"] updated: 2026-09-12T21:19:32Z published: 2026-09-12T21:19:32Z canonical: "docs.trellix.com/import-alarms-and-data-sources-automatically" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Import alarms and data sources automatically You can use the command line to automatically import data sources and alarms. When you restart the CPService, it looks for a configuration file which, if present, automatically imports any alarms and data sources. The configuration file must include the full path name to the import files. The following example shows how the `autoimport.conf` file should be written. ```plaintext ds_importfile=/var/dsimport.csv alarm_importfile=/var/alarm.xml ``` > ### Important > > You must use the key `ds_importfile` for data sources and the key `alarm_importfile` for alarms. **To automatically import alarms or data sources:** 1. Put the `autoimport.conf` file in the folder `/etc/NitroGuard`. > ### Note > > Trellix ESM must be able to access this folder. If it is a shared folder, you must first mount the folder in Trellix ESM. 2. On the command line, run the following command to restart the CPService: ```plaintext service cpservice restart ``` The script runs and imports any alarms or data sources. If the import fails, fix the errors listed in the file `/var/logs/messages` and repeat this procedure.