Skip to main content

Troubleshooting Python Logs

This section contains some guidelines for handling errors that you may encounter when trying to collect Python logs.

Problem: No logs received

No logs are observed in your account.

Possible cause - Incorrect token and/or listener URL

Your token and/or listener URL may be incorrect.

Suggested remedy

  1. Navigate to Manage tokens > Data shipping tokens - Logs and verify your account's log shipping token and listener URL.

  2. Check in the integration code whether the token and listener URL are specified correctly.

Problem: Exception while sending logs to

The following error message appears:

Got exception while sending logs to, Try (1/4). Message: HTTPSConnectionPool(host='', port=8071): Max retries exceeded with url: /?token=<<LOG-SHIPPING-TOKEN>> (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000017839B4FD30>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions.

Possible cause - Shipper connectivity failure

Your host/server may not be connected to your listener.

Suggested remedy

Verify connectivity of your host/server as follows.

  • For Linux and Mac servers, use telnet:

    telnet <<PORT>>
  • For Windows servers running Windows 8/Server 2012 and later, use the following command in PowerShell:

    Test-NetConnection -Port <<PORT>>

    Replace <<PORT>> with the appropriate port nummber. For HTTPS communication use port 8053. For HTTP communication use port 8052.

If you see Connected to the shipper can connect to the listener. Enter ctrl+c and type quit to exit Telnet.

If you see Trying for more than 10 seconds, your machine is having trouble connecting to the listener.

Possible cause - Cannot connect to listener

Your host/server cannot connect to listener and you see Trying for more than 10 seconds, when testing the connection.

Suggested remedy

Confirm that your firewall and network settings allow communication with the correct outbound port and the listener IP addresses for your region.

Possible cause - Timeout parameter is too short

You can connect to listener, but still see no logs.

Suggested remedy

Make sure you have the timeout setting increased as follows: