You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
extract.py gives rather confusing error messages when trying fetch a time range from the Redshift audit log bucket that has no data. Especially when it can take hours until the data arrives to the bucket.
python3 extract.py extract.yaml
[INFO] 2021-04-06 11:12:24 Retrieving logs from s3://my-redshift-audit-bucket/
[INFO] 2021-04-06 11:14:55 Exporting 0 transactions (0 queries) to my-workload/Extraction_2021-04-06T11:12:24.210817+00:00
[INFO] 2021-04-06 11:14:55 Generating 0 missing connections.
[INFO] 2021-04-06 11:14:55 Exporting a total of 0 connections to my-workload/Extraction_2021-04-06T11:12:24.210817+00:00
Traceback (most recent call last):
File "extract.py", line 1153, in <module>
config_file["workload_location"] + "/" + extraction_name,
File "extract.py", line 661, in save_logs
connections_dict = connection_time_replacement([connection.__dict__ for connection in sorted_connections])
File "extract.py", line 506, in connection_time_replacement
min_init_time = sorted_connections[0]['session_initiation_time']
IndexError: list index out of range
The text was updated successfully, but these errors were encountered:
extract.py gives rather confusing error messages when trying fetch a time range from the Redshift audit log bucket that has no data. Especially when it can take hours until the data arrives to the bucket.
The text was updated successfully, but these errors were encountered: