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

# Get Traffic Log Settings by Environment

> Returns traffic log settings for a specific environment of the specified API Proxy. Includes connector settings and method-level overrides.

## Endpoint

```
GET /apiops/projects/{projectName}/apiProxies/{apiProxyName}/trafficLogSettings/{environmentName}/
```

## Authentication

Requires a Personal API Access Token.

### Header

```
Authorization: Bearer YOUR_TOKEN
```

## Request

### Headers

| Header        | Value          | Required |
| ------------- | -------------- | -------- |
| Authorization | Bearer {token} | Yes      |

### Path Parameters

| Parameter       | Type   | Required | Description      |
| --------------- | ------ | -------- | ---------------- |
| projectName     | string | Yes      | Project name     |
| apiProxyName    | string | Yes      | API Proxy name   |
| environmentName | string | Yes      | Environment name |

## Response

### Success Response (200 OK)

```json theme={null}
{
  "status": "SUCCESS",
  "resultList": [
    {
      "logParamRequestFromClient": true,
      "logHeaderRequestFromClient": true,
      "logBodyRequestFromClient": true,
      "logParamRequestToTarget": true,
      "logHeaderRequestToTarget": true,
      "logBodyRequestToTarget": true,
      "logHeaderResponseFromTarget": true,
      "logBodyResponseFromTarget": true,
      "logHeaderResponseToClient": true,
      "logBodyResponseToClient": true,
      "connectorSettingsMap": {
        "Production Elasticsearch": {
          "enabled": true,
          "logBodyRequestFromClient": true,
          "enableBodyFromClientSize": true,
          "sizeBodyFromClient": 1024
        },
        "ELASTICSEARCH_INDEX": {
          "enabled": true,
          "logBodyRequestFromClient": true
        }
      },
      "methodOverrideList": [
        {
          "apiMethodName": "/pets",
          "connectorSettingsMap": {
            "Production Elasticsearch": {
              "logBodyRequestFromClient": false
            }
          }
        }
      ]
    }
  ],
  "resultCount": 1
}
```

### Error Response (400 Bad Request)

```json theme={null}
{
  "error": "bad_request",
  "error_description": "Environment (staging) is not found!"
}
```

## cURL Example

```bash theme={null}
curl -X GET \
  "https://demo.apinizer.com/apiops/projects/MyProject/apiProxies/MyAPI/trafficLogSettings/production/" \
  -H "Authorization: Bearer YOUR_TOKEN"
```

## Permissions

User must have **`API_MANAGEMENT` + `VIEW`** permission in the project.

## Notes

* The `connectorSettingsMap` uses **connection names** as keys (e.g., `"Production Elasticsearch"`). Legacy connector type keys (e.g., `ELASTICSEARCH_INDEX`) may also appear for backward compatibility.

## Related Documentation

* [List Traffic Log Settings](/api-reference/api-proxies/traffic-log-settings/get-all) - List all environment settings
* [Update Traffic Log Settings](/api-reference/api-proxies/traffic-log-settings/update) - Update settings for environment
