You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Log Analytics Workspace is not managed with provided deployment templates. It can be created
31
-
manually in Azure Portal or from command line. All resources must be deployed in the same
32
-
resource group where Log Analytics Workspace is created. In next paragraphs this group is
33
-
referenced as `$resource_group`.
34
-
35
-
Installation requires working Azure CLI. Run `az version` to verify if tool is available.
36
-
37
-
### Create Elements API credentials
38
-
39
-
Follow user guide to create Elements API credentials. Save credentials in safe place.
40
-
41
-
### Create Azure Entra application
42
-
43
-
Create new [Entra Application](https://learn.microsoft.com/en-us/azure/azure-monitor/logs/tutorial-logs-ingestion-portal#create-microsoft-entra-application)
44
-
and credentials. Save secret key in safe place.
45
-
46
-
### Deploying connector
47
-
48
-
In this step all resources that are required by Connector are deployed and linked with
49
-
existing Log Analytics Workspace and Entra Application.
50
-
51
-
1. Adjust file `deploy/connector_app_parameters.json`. Set required values:
52
-
-`workspaceName` - name of **existing** Log Analytics Workspace,
53
-
-`entraObjectId` - principal id of Entra Application. Can be found in Entra Application,
54
-
under link `Managed application in local directory` in field `Object ID`,
55
-
-`elementsApiClientId` - client id from the WithSecure Elements Portal,
56
-
-`elementsApiClientSecret` - client secret from WithSecure Elements Portal,
57
-
-`entraTenantId`- value of `Directory (client) ID` property in Entra Application management console,
58
-
-`entraClientId`- value of `Application (client) ID` property in Entra Application management console,
59
-
-`entraClientSecret` - secret key from Application credentials.
3. Wait until new events arrive in table `WsSecurityEvents_CL`.
80
59
81
-
## Development
82
-
83
60
### Testing
84
61
85
62
1. Tests are kept in directory `tests/`. To execute whole suite run command `poetry run pytest`.
@@ -112,25 +89,3 @@ To start function in emulator it needs to be appended to Azure Functions. To do
112
89
113
90
To learn more visit:
114
91
[Quickstart: Create a function in Azure with Python using VS Code](https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-python?pivots=python-mode-decorators)
115
-
116
-
117
-
## Troubleshooting
118
-
119
-
**Security Events are missing**
120
-
121
-
1. Open invocation logs in Azure Function console.
122
-
2. Check if most recent logs contains entry starting with `Execution error`.
123
-
3. If there is no error it means that function works as expected. However in Log Analytics
124
-
workspace new events might appear with bigger delay.
125
-
4. Check if most recent logs contains entry starting with `Found 0 events since $date`.
126
-
5. Check security events in Elements Portal. If all events are older that `$date` then
127
-
connector works as expected.
128
-
6. Otherwise find transaction id (`X-Transaction`) from last request to Elements API and
129
-
contact with support team.
130
-
131
-
**Function handler is not visible in functions list**
132
-
133
-
If `upload_security_events` function is missing on list it might indicate that Azure couldn't
134
-
initialize it. It might be caused by missing dependencies, error in module initialization
135
-
or wrong runtime used to build package. There is no easy way to find reason why Azure couldn't
136
-
initialize function. The only method is `trial and error`.
0 commit comments