Skip to content

Commit 98cff8c

Browse files
authored
Merge pull request #123947 from jcfm/patch-1
Update slack-audit.md
2 parents 5e4e338 + 32c1298 commit 98cff8c

File tree

1 file changed

+64
-7
lines changed

1 file changed

+64
-7
lines changed

articles/sentinel/data-connectors/slack-audit.md

Lines changed: 64 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,30 +49,87 @@ To integrate with Slack Audit (using Azure Functions) make sure you have:
4949

5050

5151
> [!NOTE]
52-
> This connector uses Azure Functions to connect to the Slack REST API to pull its logs into Microsoft Sentinel. This might result in additional data ingestion costs. Check the [Azure Functions pricing page](https://azure.microsoft.com/pricing/details/functions/) for details.
53-
52+
> This connector uses Azure Functions to connect to the Slack REST API to pull its logs into Microsoft Sentinel. This might result in additional data ingestion costs. Check the [Azure Functions pricing page](https://azure.microsoft.com/pricing/details/functions/) for details.
5453
5554
>**(Optional Step)** Securely store workspace and API authorization key(s) or token(s) in Azure Key Vault. Azure Key Vault provides a secure mechanism to store and retrieve key values. [Follow these instructions](/azure/app-service/app-service-key-vault-references) to use Azure Key Vault with an Azure Function App.
5655
57-
5856
> [!NOTE]
59-
> This data connector depends on a parser based on a Kusto Function to work as expected. [Follow these steps](https://aka.ms/sentinel-SlackAuditAPI-parser) to create the Kusto functions alias, **SlackAudit**
60-
57+
> This data connector depends on a parser based on a Kusto Function to work as expected. [Follow these steps](https://aka.ms/sentinel-SlackAuditAPI-parser) to create the Kusto functions alias, **SlackAudit**
6158
6259
**STEP 1 - Configuration steps for the Slack API**
6360

6461
[Follow the instructions](https://api.slack.com/web#authentication) to obtain the credentials.
6562

63+
**STEP 2 - Choose ONE from the following two deployment options to deploy the connector and the associated Azure Function**
6664

65+
> [!IMPORTANT]
66+
> Before deploying the Slack Audit data connector, have the Workspace ID and Workspace Primary Key (can be copied from the following).
6767
68-
**STEP 2 - Choose ONE from the following two deployment options to deploy the connector and the associated Azure Function**
68+
Option 1 - Azure Resource Manager (ARM) Template
69+
70+
Use this method for automated deployment of the Slack Audit data connector using an ARM Tempate.
71+
72+
1. Select the **Deploy to Azure** button below.
73+
74+
[![Deploy To Azure](https://aka.ms/deploytoazurebutton)](https://aka.ms/sentinel-SlackAuditAPI-azuredeploy)
75+
76+
2. Select the preferred **Subscription**, **Resource Group** and **Location**.
77+
78+
> [!NOTE]
79+
> Within the same resource group, you can't mix Windows and Linux apps in the same region. Select existing resource group without Windows apps in it or create new resource group.
80+
81+
4. Enter the **SlackAPIBearerToken** and deploy.
82+
5. Mark the checkbox labeled **I agree to the terms and conditions stated above**.
83+
6. Select **Purchase** to deploy.
84+
85+
Option 2 - Manual Deployment of Azure Functions
86+
87+
Use the following step-by-step instructions to deploy the Slack Audit data connector manually with Azure Functions (Deployment via Visual Studio Code).
88+
89+
**1. Deploy a Function App**
90+
91+
> [!NOTE]
92+
> You will need to [prepare VS code](/azure/azure-functions/functions-create-first-function-python#prerequisites) for Azure function development.
93+
94+
1. Download the [Azure Function App](https://aka.ms/sentinel-SlackAuditAPI-functionapp) file. Extract archive to your local development computer.
95+
2. Start VS Code. Choose File in the main menu and select Open Folder.
96+
3. Select the top level folder from extracted files.
97+
4. Choose the Azure icon in the Activity bar, then in the **Azure: Functions** area, choose the **Deploy to function app** button.
98+
99+
- If you aren't already signed in, choose the Azure icon in the Activity bar, then in the **Azure: Functions** area, choose **Sign in to Azure**
100+
- If you're already signed in, go to the next step.
101+
102+
6. Provide the following information at the prompts:
103+
104+
a. **Select folder:** Choose a folder from your workspace or browse to one that contains your function app.
105+
106+
b. **Select Subscription:** Choose the subscription to use.
107+
108+
c. Select **Create new Function App in Azure** (Don't choose the Advanced option)
109+
110+
d. **Enter a globally unique name for the function app:** Type a name that is valid in a URL path. The name you type is validated to make sure that it's unique in Azure Functions. (e.g. SlackAuditXXXXX).
111+
112+
e. **Select a runtime:** Choose Python 3.8.
69113

70-
>**IMPORTANT:** Before deploying the Slack Audit data connector, have the Workspace ID and Workspace Primary Key (can be copied from the following).
114+
f. Select a location for new resources. For better performance and lower costs choose the same [region](https://azure.microsoft.com/regions/) where Microsoft Sentinel is located.
71115

116+
7. Deployment will begin. A notification is displayed after your function app is created and the deployment package is applied.
117+
8. Go to Azure Portal for the Function App configuration.
72118

119+
**2. Configure the Function App**
73120

121+
1. In the Function App, select the Function App Name and select **Configuration**.
122+
1. In the **Application settings** tab, select **New application setting**.
123+
1. Add each of the following application settings individually, with their respective string values (case-sensitive):
124+
125+
- SlackAPIBearerToken
126+
- WorkspaceID
127+
- WorkspaceKey
128+
- logAnalyticsUri (optional)
74129

130+
> Use logAnalyticsUri to override the log analytics API endpoint for dedicated cloud. For example, for public cloud, leave the value empty; for Azure GovUS cloud environment, specify the value in the following format: `https://<CustomerId>.ods.opinsights.azure.us`.
75131
132+
1. Once all application settings have been entered, click **Save**.
76133

77134

78135
## Next steps

0 commit comments

Comments
 (0)