Issue is resolved for my case. Was trying to get O365 MessageTrace logs which are older than 10 days (https://docs.microsoft.com/en-us/powershell/module/exchange/get-messagetrace?view=exchange-ps) so was getting the http 400 bad request code . Did a completely new install of the newest TA version 1.2.1 and set the Start date/time to 10 days ago 2020-07-02T19:00:00 . Lesson learnt to have an alert for no O365 MessageTrace log because cannot get logs older than 10 days. Log of the successful run: 2020-07-12 18:53:20,548 DEBUG pid=9848 tid=MainThread file=base_modinput.py:log_debug:288 | Start date: 2020-07-02 19:00:00, End date: 2020-07-02 20:00:00 2020-07-12 18:53:20,548 DEBUG pid=9848 tid=MainThread file=base_modinput.py:log_debug:288 | Endpoint URL: https://reports.office365.com/ecp/reportingwebservice/reporting.svc/MessageTrace?$filter=StartDate eq datetime'2020-07-02T19:00:00Z' and EndDate eq datetime'2020-07-02T20:00:00Z' 2020-07-12 18:53:20,548 INFO pid=9848 tid=MainThread file=setup_util.py:log_info:117 | Proxy is not enabled! 2020-07-12 18:53:20,549 DEBUG pid=9848 tid=MainThread file=connectionpool.py:_new_conn:959 | Starting new HTTPS connection (1): reports.office365.com:443 2020-07-12 18:53:23,059 DEBUG pid=9848 tid=MainThread file=connectionpool.py:_make_request:437 | https://reports.office365.com:443 "GET /ecp/reportingwebservice/reporting.svc/MessageTrace?$filter=StartDate%20eq%20datetime'2020-07-02T19:00:00Z'%20and%20EndDate%20eq%20datetime'2020-07-02T20:00:00Z' HTTP/1.1" 200 None 2020-07-12 18:53:23,171 DEBUG pid=9848 tid=MainThread file=base_modinput.py:log_debug:288 | Next URL is https://reports.office365.com/ecp/reportingwebservice/reporting.svc/MessageTrace?$filter=StartDate%20eq%20datetime'2020-07-02T19%3A00%3A00Z'%20and%20EndDate%20eq%20datetime'2020-07-02T20%3A00%3A00Z'&$skiptoken=1999 .... 2020-07-12 18:54:11,931 DEBUG pid=9848 tid=MainThread file=connectionpool.py:_make_request:437 | https://reports.office365.com:443 "GET /ecp/reportingwebservice/reporting.svc/MessageTrace?$ filter=StartDate%20eq%20datetime'2020-07-02T19%3A00%3A00Z'%20and%20EndDate%20eq%20datetime'2020-07-02T20%3A00%3A00Z'&$skiptoken=51999 HTTP/1.1" 200 37202 2020-07-12 18:54:11,939 DEBUG pid=9848 tid=MainThread file=base_modinput.py:log_debug:288 | Number of messages returned: 52751 2020-07-12 18:54:11,939 DEBUG pid=9848 tid=MainThread file=base_modinput.py:log_debug:288 | Max date before getting message: 2020-07-02 19:00:00 2020-07-12 18:54:20,879 DEBUG pid=9848 tid=MainThread file=base_modinput.py:log_debug:288 | Max date after getting messages: 2020-07-02 19:59:59.850906 2020-07-12 18:54:20,879 DEBUG pid=9848 tid=MainThread file=binding.py:post:750 | POST request to https://127.0.0.1:8089/servicesNS/nobody/TA-MS_O365_Reporting/storage/collections/data/TA_MS_O365_Reporting_checkpointer/batch_save (body: {'body': '[{"_key": "Company_O365_Reporting_checkpoint", "state": "{\\"max_date\\": \\"2020-07-02 19:59:59.850906\\"}"}]'}) 2020-07-12 18:54:20,884 DEBUG pid=9848 tid=MainThread file=connectionpool.py:_make_request:437 | https://127.0.0.1:8089 "POST /servicesNS/nobody/TA-MS_O365_Reporting/storage/collections/data/TA_MS_O365_Reporting_checkpointer/batch_save HTTP/1.1" 200 45 2020-07-12 18:54:20,885 DEBUG pid=9848 tid=MainThread file=binding.py:new_f:73 | Operation took 0:00:00.005899
... View more