Documentation forSecurity Event Manager

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.

Requirements

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

  1. Log in to the SEM Console.
  2. On the toolbar, click Configure > Nodes.
  3. Select your agent node, and then click Manage node connectors.
  4. In the search box, enter:

    append

  5. Select the Append Text to File Active Response connector, and then click Add Connector.
  6. Enter a new name, or keep the default.
  7. From the How to append drop-down list, select Newline to append the text to a new line, or No Newline.
  8. Specify a Maximum file size, or accept the default, and then click Add.
  9. Under Configured connectors, select your connector, and then click Start.

Configure the Append Text To File action in a rule

  1. Log in to the SEM Console,
  2. On toolbar, click Rules.
  3. Select an existing rule that triggers on a specific event.
  4. Click Edit, and then click Next.
  5. Under Actions, click Add new action.
  6. Select Append Text to File, and then click Next.
  7. Under Define action, begin typing to locate the event defined in your rule definition.
  8. Fill in the directory structure in the File Path, indicating the name of the file.
  9. 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.
  10. Click Add, and then click Save.