Use the Append Text to File active response in SEM
Use the Append Text To File active response to append static or dynamic text to a flat text file in your network. This action helps you keep a running list of deployed SEM agents or track certain types of activity across several users and computers. You can automate this response with a SEM rule or execute it manually from the Respond menu on the SEM Console.
To use this active response, ensure that the file you want to append already exists. Follow these guidelines when creating the file:
Use a .txt file, or a similar flat-text file format.
Avoid using spaces in the file path or name.
Note the complete file path and name, because you will need it to configure the active response.
Configure the Append Text to File active response and Windows active response connectors on each SEM Agent on which you want to be able to use this active response.
Configure the Append Text to a File Active Response connector on a SEM agent
- Log in to the SEM Console.
- On the toolbar, click Configure > Nodes.
- Select your agent node, and then click Manage node connectors.
In the search box, enter:
- Select the Append Text to File Active Response connector, and then click Add Connector.
- Enter a new name, or keep the default.
- From the How to append drop-down list, select Newline to append the text to a new line, or No Newline.
- Specify a Maximum file size, or accept the default, and then click Add.
- Under Configured connectors, select your connector, and then click Start.
Configure the Append Text To File action in a rule
- Log in to the SEM Console,
- On toolbar, click Rules.
- Select an existing rule that triggers on a specific event.
- Click Edit, and then click Next.
- Under Actions, click Add new action.
- Select Append Text to File, and then click Next.
- Under Define action, begin typing to locate the event defined in your rule definition.
- Fill in the directory structure in the File Path, indicating the name of the file.
- The Text field will contain the text that you are inserting into the file. If using plain text, select String from the drop-down list.
- Click Add, and then click Save.