> ## Documentation Index
> Fetch the complete documentation index at: https://docs.safesquid.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Using find_client_id.sh for Connection Logs

> Use the find_client_id.sh script to extract complete connection details from SafeSquid logs for troubleshooting and forensic analysis.

## Problem

Service interruptions and policy failures increase operational risk when root cause is unclear.

## Benefits

You can diagnose faster with repeatable checks, reduce downtime, and restore expected protection.

## Advantages

You get symptom-first guidance that supports incident response and produces evidence for audit and postmortem review.

## Call to action

Follow the checks in order, capture the observed output, and apply the fix that matches your failure pattern.

# Get complete connection log with find\_client\_id.sh

Native logs are written in real time by response; entries for one connection can be scattered. To analyze a single connection from start to finish (profiles, categories, headers, errors), use the client id to pull all log lines for that connection. find\_client\_id.sh extracts complete connection details for a given client id. Below: how to obtain the client id and run the script.

To use find\_client\_id.sh you are first required to get your connection's client id.

Client id can be extracted from the response headers section in browsers network tab.

(Note: we are assuming that you know how to open developer tools in a browser)

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/PZ5D4OEI8Q1II8co/images/picture1.jpg?fit=max&auto=format&n=PZ5D4OEI8Q1II8co&q=85&s=e060aa2248c6c6ce31b77307d376ffa7" alt="find_client_id script output or connection log example" width="602" height="358" data-path="images/picture1.jpg" />

Also, client id can be extracted from SafeSquid's native logs


## Related topics

- [Troubleshooting](/troubleshooting/troubleshooting.md)
- [Connection Failure to Websites](/troubleshooting/connection_failure_on_websites.md)
- [Proxy Server Refusing Connections Error](/troubleshooting/proxy_server_refusing_connection_error.md)
- [Security Logs](/use_cases/audit_and_forensics/security_logs.md)
- [Login Issues on Specific Websites](/troubleshooting/unable_to_login_specific_website.md)
