pycti.entities.opencti_log
Classes
Main Log class for OpenCTI |
Module Contents
- class pycti.entities.opencti_log.Log(opencti)[source]
Main Log class for OpenCTI
Reads logs in the OpenCTI platform.
- Parameters:
opencti (OpenCTIApiClient) – instance of
OpenCTIApiClient
Initialize the Log instance.
- Parameters:
opencti (OpenCTIApiClient) – OpenCTI API client instance
- properties = Multiline-String[source]
Show Value
""" id entity_type event_type event_scope event_status timestamp user_id context_uri user_metadata """
- list(**kwargs) List[Dict][source]
List Log objects.
- Parameters:
filters (dict) – the filters to apply
search (str) – the search keyword
first (int) – return the first n rows from the after ID (or the beginning if not set)
after (str) – ID of the first row for pagination
orderBy (str) – field to order results by
orderMode (str) – ordering mode (asc/desc)
customAttributes (str) – custom attributes to return
getAll (bool) – whether to retrieve all results
withPagination (bool) – whether to include pagination info
- Returns:
List of Task objects
- Return type:
list
- read(**kwargs) Dict | None[source]
Reads log details from the platform.
- Parameters:
id (str, optional) – ID of the log to fetch
customAttributes – Custom attributes to include instead of the defaults
filters (dict, optional) – Filters to apply to find a single user
search (str, optional) – Search term to use to find a single user
- Returns:
Representation of the log as a Python dictionary.
- Return type:
Optional[Dict]