<commit_before>---
layout: docs
title: LDAP debugging
category: registry
forkurl: https://github.com/coreos/docs/blob/master/enterprise-registry/ldap-logging/index.md
weight: 5
---

# LDAP debugging
To aid in LDAP debugging you can tail the logs of the Enterprise Registry container from the Docker host as shown below:

```shell
CONTAINER_ID=$(docker ps | grep "coreos/registry:latest" | awk '{print $1}')
LOG_LOCATION=$(docker inspect -f '{{ index .Volumes "/var/log" }}' ${CONTAINER_ID})
tail -f  ${LOG_LOCATION}/gunicorn_web/* ${LOG_LOCATION}/gunicorn_registry/* ${LOG_LOCATION}/gunicorn_verbs/*
```

Alternatively you can download a simple shell script to perform the steps above:
```shell
curl --location {{site.url}}/docs/enterprise-registry/ldap-logging/tail_gunicorn_logs.sh -o /tmp/tail_gunicorn_logs.sh -#
```
Then run:
```shell
chmod -c +x /tmp/tail_gunicorn_logs.sh
/tmp/tail_gunicorn_logs.sh
```<commit_msg>Generalize the doc<commit_after>---
layout: docs
title: LDAP debugging
category: registry
forkurl: https://github.com/coreos/docs/blob/master/enterprise-registry/ldap-logging/index.md
weight: 5
---

# Enterprise Registry log debugging
To aid in debugging issues such as LDAP configuration you can tail the logs of the Enterprise Registry container from the Docker host as shown below:

```shell
CONTAINER_ID=$(docker ps | grep "coreos/registry:latest" | awk '{print $1}')
LOG_LOCATION=$(docker inspect -f '{{ index .Volumes "/var/log" }}' ${CONTAINER_ID})
tail -f  ${LOG_LOCATION}/gunicorn_web/* ${LOG_LOCATION}/gunicorn_registry/* ${LOG_LOCATION}/gunicorn_verbs/*
```

Alternatively you can download a simple shell script to perform the steps above:
```shell
curl --location {{site.url}}/docs/enterprise-registry/ldap-logging/tail_gunicorn_logs.sh -o /tmp/tail_gunicorn_logs.sh -#
```
Then run:
```shell
chmod -c +x /tmp/tail_gunicorn_logs.sh
/tmp/tail_gunicorn_logs.sh
```
{'fraction_non_alphanumeric': 0.13825857519788917, 'fraction_numerical': 0.0021108179419525065, 'mean_word_length': 5.175895765472313, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2877047', 'n_tokens_mistral': 666, 'n_tokens_neox': 604, 'n_words': 174}