The functionality described in this article is available in XRay versions 1.5 and greater.
By setting up a Slack action, you lay the framework for messages to be sent to users or channels (groups of users). Slack actions send Slack messages; email actions send emails. A Log action saves data to a log for future reference.
For information about setting up Slack actions, see step 3 of Social Integration: Slack. In Step 4 of that article, you’ll associate Slack actions with alerts so that messages are sent in certain cases.
Before creating an email action, you must set up an email provider. See Providers.
You can send an email to any email address (individual or group). Messages can include text, variables, or both.
- From Main Menu > Admin Settings > Actions, select Email.
- Click Create.
- Enter an Action Name.
- Select the Provider Name that will send emails for this action.
- Select the MIME type: Text/plain or text/html.
- Enter “from” and “to” email addresses in the Mail From and Mail To An optional Mail CC field is available to copy the message to additional addresses.
- Enter the Subject of the message to be sent.
- Enter the Message text and variables, if desired. For more information about creating and formatting messages, see Templates and Message Formatting.
- To verify that messages can be sent through the email provider, click Test. A confirmation message is displayed to inform you that the test email was sent successfully.
- Click OK.
Instead of sending a message through Slack or email, a Log action saves data to a log for future reference.
- From Main Menu > Admin Settings > Actions, select Logs.
- Click Create. The Editing Provider console opens.
- Enter the Provider Name; this name must match the Provider Name as set up in Set up a Log Provider.
- The Line is filled in automatically, as set in the Editing Provider console.
- Click Save.
To test the log action:
- In the jKQL Workbench, open any repository.
- Type “invoke action ‘<action name’>” and run the query.
- To check the log file, go to AutopilotM6/localhost. The log file can be found there.