Submit a ticketCall us

Have You Auto Renewed? If not, you're missing out.
The SolarWinds Renewal Program comes with a host of benefits including the most recent product updates, 24/7 technical support, virtual instructor-led training and more. Experience all of this with the convenience of Auto Renewal, and never worry about missing any of these great benefits. Learn More.

Home > Success Center > Log & Event Manager (LEM) > LEM Administrator's Guide > Use the Append Text to File active response in LEM

Use the Append Text to File active response in LEM

Updated: September 15, 2017

Use the Append Text To File active response to append static or dynamic text to a flat text file on your network. This action is useful for keeping a running list of deployed LEM Agents or tracking certain types of activity across several users and computers. You can automate this response with a LEM rule, or execute it manually from the Respond menu in the LEM 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 LEM Agent on which you want to be able to use this active response.

To configure the Append Text to File action in a rule:

  1. Open the LEM console. See Log in to the LEM web console or Log in to the LEM desktop console for steps.

  2. Create a new rule or edit an existing rule that triggers on a specific event.

  3. Open the rule to edit, and select the actions in the left column.

  4. Drag the Append Text to File action from the left to the Actions box under the rule.

  5. Open the Constants on the left, and then drag the Text field to the empty box next to File Path under the Append Text to File action.

  6. Using the same event stated in the Correlations, select the event from the Events list on the left and drag the DetectionIP field from the Fields list to the Agent under this action.

  7. Fill in the directory structure in the File Path under this action, indicating the name of the file.

  8. The Test field under the Append Text to File label will contain the text that you are inserting into the file. If using plain text, drag the Text constant from the left to the empty box in the Text field.

  9. Save the rule.

 

To configure the Append Text to File Active Response connector on a LEM Agent:

  1. Open the LEM console. See Log in to the LEM web console or Log in to the LEM desktop console for steps.

  2. Click the Manage tab, and then select Nodes.

  3. Locate the LEM Agent on which you want to enable the connector.

  4. Click the gear icon to the left of the LEM Agent, and then select Connectors.

  5. Enter Append Text to File in the Search box at the top of the Refine Results pane.

  6. Click the gear icon next to the connector, and then select New.

  7. Enter a custom Alias for the new connector, or accept the default.

  8. Specify whether you want the connector to append data to a new line in the How to append menu.

  9. Specify a Maximum file size(MB) or accept the default.

  10. Click Save.

  11. Click the gear icon next to the new connector, denoted by an icon in the Status column, and then select Start.

  12. Click Close to exit the Connector Configuration window.

To configure the Windows active response connector on a LEM Agent:

  1. Open the LEM console. See Log in to the LEM web console or Log in to the LEM desktop console for steps.

  2. Click the Manage tab, and then select Nodes.

  3. Locate the LEM Agent on which you want to enable the connector.

  4. Click the gear icon to the left of the LEM Agent, and then select Connector.

  5. Enter Windows Active Response in the Search box at the top of the Refine Results pane.

  6. Click the gear icon next to the connector and then select New.

  7. Enter a custom Alias for the new connector, or accept the default.

  8. Click Save.

  9. Click the gear icon next to the new connector, denoted by an icon in the Status column, and then select Start.

  10. Click Close to exit the Connector Configuration window.

Last modified

Tags

Classifications

Public