msticpy
v2.10.0
  • Getting Started
  • Querying and Importing Data
  • Enriching Data
  • Analyzing Data
  • Displaying/Visualizing Data
  • msticpy API
    • Guide to Reading the API Reference
    • msticpy package
      • Getting Started
      • Package structure
      • Configuration
      • Initialization
      • Subpackages
        • msticpy.analysis package
        • msticpy.auth package
        • msticpy.common package
        • msticpy.config package
        • msticpy.context package
        • msticpy.data package
        • msticpy.datamodel package
        • msticpy.init package
        • msticpy.nbtools package
        • msticpy.nbwidgets package
        • msticpy.transform package
        • msticpy.vis package
  • Extending MSTICPy
  • MSTICPy Development Guidelines
  • Notebook Examples
  • Articles, Labs and other Resources
  • Releases
  • Contributing
  • License
msticpy
  • msticpy API
  • msticpy package
  • msticpy.context package
  • msticpy.context.azure package
  • msticpy.context.azure.sentinel_search module
  • Edit on GitHub

msticpy.context.azure.sentinel_search module

Mixin Classes for Sentinel Search Features.

class msticpy.context.azure.sentinel_search.SentinelSearchlistsMixin

Bases: object

Mixin class for Sentinel Watchlist feature integrations.

check_search_status(search_name: str) → bool

Check the status of a search job.

Parameters:

search_name (str) – The name of the search job to check.

Returns:

Returns True if search is ready.

Return type:

bool

Raises:

CloudError – If error in checking the search job status.

create_search(query: str, start: datetime | None = None, end: datetime | None = None, search_name: str | None = None, **kwargs)

Create a Search job.

Parameters:
  • query (str) – The KQL query to run as a job.

  • start (datetime, optional) – The start time for the query, by default 90 days ago.

  • end (datetime, optional) – The end time for the query, by default now.

  • search_name (str, optional) – A name to apply to the search, by default a random GUID is generated.

Raises:

CloudError – If there is an error creating the search job.

delete_search(search_name: str)

Delete a search result.

Parameters:

search_name (str) – The name of the search to delete.

Raises:

CloudError – If an error occurs when attempting to delete the search

Previous Next

© Copyright 2019, (c) Microsoft Corporation.. Revision d1c0912b.

Built with Sphinx using a theme provided by Read the Docs.