-
Notifications
You must be signed in to change notification settings - Fork 336
Closed
Labels
acceptedThe request/issue is accepted for a fixThe request/issue is accepted for a fixenhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requested
Description
I have received a tenant_id, client_id, client_scret, workspace_id and workspace_name.
When I use Kqlmagic to connect like the following:
%kql loganalytics://tenant='tenant_id';clientid='client_id';clientsecret='client_secret';workspace='workspace_id';alias='workspace_name'It works perfectly.
But when I use msticpy to connect using the following:
qry_prov = QueryProvider(data_environment='LogAnalytics')
qry_prov.connect(connection_str="loganalytics://tenant='tenant_id';clientid='client_id';clientsecret='client_secret';workspace='workspace_id';alias='workspace_name'")It fails to connect.
I am assuming it is because using this data environment I can only supply a tenant_id and workspace_id.
When I try
qry_prov = QueryProvider('MDATP')
qry_prov.connect(tenant_id=tenant_id, client_id=client_id, client_secret=client_secret)It connects succesfully, but then I can only access qry_prov.MDATP.* and not the qry_prov.SecurityAlert.list_alerts() that I require.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
acceptedThe request/issue is accepted for a fixThe request/issue is accepted for a fixenhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requested