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
I'm currently troubleshooting a graphql authentication issue and the lack of timestamps in the logs has made correlation between mythic_sync activities and Ghostwriter more difficult than it should be.
For my issue I've added a sketchy datetime.now entry to the log exception string in sync.py, however I'm more than aware that this will not be optimal and should be done properly and more in line with the style of the code.
The text was updated successfully, but these errors were encountered:
That might be overkill for mythic_sync because it's one self-contained module. Module name (always sync), process ID, and thread don't add much except extra text. For example:
$ sudo ./mythic-cli logs mythic_sync
INFO 2022-08-03 21:26:30,950 sync 1 139654029557064 Successfully connected to Redis
INFO 2022-08-03 21:26:30,950 sync 1 139654029557064 Attempting to connect to https://mythic_nginx:7443
INFO 2022-08-03 21:26:30,973 sync 1 139654029557064 Successfully connected to https://mythic_nginx:7443
INFO 2022-08-03 21:26:30,973 sync 1 139654029557064 Trying to authenticate to Mythic
INFO 2022-08-03 21:26:30,973 sync 1 139654029557064 Authenticating to Mythic, https://mythic_nginx:7443, with username and password
INFO 2022-08-03 21:26:31,409 sync 1 139654029557064 Successfully authenticated to Mythic
INFO 2022-08-03 21:26:31,409 sync 1 139654029557064 Sending the initial Ghostwriter log entry
INFO 2022-08-03 21:26:31,455 sync 1 139654029557064 Starting subscription for tasks
INFO 2022-08-03 21:26:32,793 sync 1 139654029557064 Starting subscription for callbacks
DEBUG 2022-08-03 21:26:32,842 sync 1 139654029557064 Updating task: e5573be0-17ab-4edf-adaf-89d65d295053 - 8 : 2
DEBUG 2022-08-03 21:26:32,877 sync 1 139654029557064 Updating task: d0e96ba9-e598-4f8b-a78d-96df1d5c11c0 - 7 : 3
DEBUG 2022-08-03 21:26:32,907 sync 1 139654029557064 Updating task: 9610fc9a-4b17-420a-b20a-736939039119 - 6 : 4
I'll add asctime to the logger so logs look like this:
I'm currently troubleshooting a graphql authentication issue and the lack of timestamps in the logs has made correlation between mythic_sync activities and Ghostwriter more difficult than it should be.
For my issue I've added a sketchy datetime.now entry to the log exception string in sync.py, however I'm more than aware that this will not be optimal and should be done properly and more in line with the style of the code.
The text was updated successfully, but these errors were encountered: