Cloudwatch Logs
Botree AWS Logs utilities.
Classes
botree.logs.Logs(session)
AWS CloudWatch Logs operations.
Logs class init.
Parameters:
-
session
(
boto3.Session
) –The authenticated session to be used for CloudWatch Logs operations.
Source code in botree/logs.py
Functions
execute_query(log_group_names, query_string, start_time, end_time, **kwargs)
Execute a query to retrieve logs and get the query results.
Parameters:
-
log_group_names
(
list
) –The list of log group names to query.
query_string : str The query string to search logs.
start_time : int The start time of the logs to query (in milliseconds).
end_time : int The end time of the logs to query (in milliseconds).
kwargs : dict, optional
Additional optional parameters to be passed to the start_query
method.
Returns:
-
dict
–The response containing the query results.