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