> ## 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.

# API Traffic Tab

> You can view and analyze all request and response messages coming to and going from the API Proxy. You can filter message traffic, examine log records, view in JSON format, and perform quick tests.

In the API Traffic tab, the message traffic of the API Proxy can be viewed and filtered, and log records of each message can be examined.

<img src="https://mintcdn.com/apinizer/Ku5drz7BLIhaC8K7/images/develop/izleme-analiz/api-traffic-tab.png?fit=max&auto=format&n=Ku5drz7BLIhaC8K7&q=85&s=c0297f1208bb94300b8d9854157b6767" alt="API Traffic Tab" width="800" style={{maxWidth: '800px', width: '100%', height: 'auto'}} data-path="images/develop/izleme-analiz/api-traffic-tab.png" />

Each of the log records shown in the table belongs to a request coming from a client to this API Proxy and the response message given to that request. The following operations can be performed on this message.

<Warning>
  Since WebSocket and gRPC requests are kept as data coming to and going from Apinizer, there are only 2 areas in these types of API Proxies.
</Warning>

## Routing Address

This field holds the address information where the relevant API Proxy is routed. If this field is empty, it indicates that the request did not go to the backend address.

Services using Apinizer as backend are shown with the **"apinizer://"** prefix, it will write exactly **"apinizer://\<COMPONENT\_NAME>/\<METHOD\_NAME>"**.

This also applies to proxies where routing is closed to prevent going to backend.

Possible values are;

| Routing Address                                                                 | Condition                                                                                                                                          |
| ------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| `apinizer://mirror.routing/<METOT_ADI>`                                         | API Proxy type Swagger 2.x, OpenAPI/Swagger 3.0.x, WSDL, Reverse Proxy or No-Spec API and **Routing option is closed and Mirror option is open**   |
| `apinizer://specresponse.routing/<METOT_ADI>`                                   | API Proxy type Swagger 2.x, OpenAPI/Swagger 3.0.x, WSDL, Reverse Proxy or No-Spec API and **Routing option is closed and Mirror option is closed** |
| `apinizer://db2api.apicreator/<METOT_ADI>`                                      | API Proxy type DB2API                                                                                                                              |
| `apinizer://script2api.apicreator/<METOT_ADI>`                                  | API Proxy type Script2API                                                                                                                          |
| `apinizer://mockapi.apicreator/<METOT_ADI>`                                     | API Proxy type Mock API                                                                                                                            |
| `apinizer://connector/<METOT_ADI>`                                              | API Proxy type Connector                                                                                                                           |
| `apinizer://maintenance`                                                        | API Proxy in maintenance mode                                                                                                                      |
| `apinizer://cache/<METOT_ADI>`                                                  | In any API Proxy type and **Caching is open**                                                                                                      |
| `http://<BACKEND_ADRESİ>/<METOT_ADI>` or `https://<BACKEND_ADRESİ>/<METOT_ADI>` | API Proxy type Swagger 2.x, OpenAPI/Swagger 3.0.x, WSDL, Reverse Proxy, No-Spec API or KPS and **Routing option is open**                          |
| `apinizer://spec`                                                               | API Proxy type Swagger 2.x, OpenAPI/Swagger 3.0.x, WSDL, Reverse Proxy, No-Spec API and access to spec address                                     |
| *(Empty)*                                                                       | Request cannot go to backend address for various reasons                                                                                           |

## Filtering

Search can be performed in 2 different types (Basic, Advanced) with the **More options** option

In the **Basic** tab, filtering is applied to records with determined criteria such as a specific time range, endpoint, or HTTP method.

<img src="https://mintcdn.com/apinizer/Ku5drz7BLIhaC8K7/images/develop/izleme-analiz/api-traffic-basic-filter.png?fit=max&auto=format&n=Ku5drz7BLIhaC8K7&q=85&s=0589661fef3a72809d06a4f798f42a54" alt="Basic Filtering" width="1000" style={{maxWidth: '1000px', width: '100%', height: 'auto'}} data-path="images/develop/izleme-analiz/api-traffic-basic-filter.png" />

In the **Advanced** tab, users can create nested filters.

<img src="https://mintcdn.com/apinizer/Ku5drz7BLIhaC8K7/images/develop/izleme-analiz/api-traffic-advanced-filter.png?fit=max&auto=format&n=Ku5drz7BLIhaC8K7&q=85&s=2b8ed705652cfc366c11bd34b78108d2" alt="Advanced Filtering" width="1000" style={{maxWidth: '1000px', width: '100%', height: 'auto'}} data-path="images/develop/izleme-analiz/api-traffic-advanced-filter.png" />

Search can be performed with the following options in the **Advanced** tab.

<img src="https://mintcdn.com/apinizer/Ku5drz7BLIhaC8K7/images/develop/izleme-analiz/api-traffic-advanced-filter-options.png?fit=max&auto=format&n=Ku5drz7BLIhaC8K7&q=85&s=7b43b7a6f5634c0570a22d262ff3af5c" alt="Advanced Filtering Options" width="1000" style={{maxWidth: '1000px', width: '100%', height: 'auto'}} data-path="images/develop/izleme-analiz/api-traffic-advanced-filter-options.png" />

## Detailed View

The first one in the menu at the end of the row of the request message to be examined opens a window displaying the log records of that message.

<img src="https://mintcdn.com/apinizer/Ku5drz7BLIhaC8K7/images/develop/izleme-analiz/api-traffic-detailed-view.png?fit=max&auto=format&n=Ku5drz7BLIhaC8K7&q=85&s=5530be512c1cee4b0f83ed9889e292b7" alt="Detailed View" width="600" data-path="images/develop/izleme-analiz/api-traffic-detailed-view.png" />

In the window that opens, it is seen that logs are divided into sections related to message flow. When the name of the section to be examined (for example, the **Request From Client to API Proxy** section) is clicked, log records related to this area are displayed. By default, the **Overview** section is open.

<img src="https://mintcdn.com/apinizer/Ku5drz7BLIhaC8K7/images/develop/izleme-analiz/api-traffic-detailed-view-dialog.png?fit=max&auto=format&n=Ku5drz7BLIhaC8K7&q=85&s=809134ff25105158862e618135582d7f" alt="Detailed View Dialog" width="800" height="795" data-path="images/develop/izleme-analiz/api-traffic-detailed-view-dialog.png" />

## JSON View

The button below the Detailed View button displays log records in JSON format.

<img src="https://mintcdn.com/apinizer/Ku5drz7BLIhaC8K7/images/develop/izleme-analiz/api-traffic-json-view.png?fit=max&auto=format&n=Ku5drz7BLIhaC8K7&q=85&s=8995e11a3759274b39a0e0cb7e8eb023" alt="JSON View" width="600" data-path="images/develop/izleme-analiz/api-traffic-json-view.png" />

**The visual containing the dialog opened when JSON View is clicked is shown below:**

<img src="https://mintcdn.com/apinizer/Ku5drz7BLIhaC8K7/images/develop/izleme-analiz/api-traffic-json-dialog.png?fit=max&auto=format&n=Ku5drz7BLIhaC8K7&q=85&s=530d50f4af089ecdcc41f718649f413b" alt="JSON Dialog" style={{maxWidth: '1000px', width: '100%', height: 'auto'}} height="250" data-path="images/develop/izleme-analiz/api-traffic-json-dialog.png" />

<Info>
  Key values in this field are written in a readable format, not as they are in the log file, to facilitate reading.

  For example, the "apiProxyId" value is kept as "api" in the log record, when the log record is downloaded, the actual log record will be displayed.

  For the actual log file format, you can examine the "Template Data Structure Table" on the [Elasticsearch Manual ILM Policy and Template Creation](/en/setup/elasticsearch/manual-ilm-policy-and-template-creation) page.
</Info>

## Download

It is also possible to download log records for more detailed examination.

<img src="https://mintcdn.com/apinizer/Ku5drz7BLIhaC8K7/images/develop/izleme-analiz/api-traffic-download.png?fit=max&auto=format&n=Ku5drz7BLIhaC8K7&q=85&s=72ccdf2978229d4c85e7b9ea34c5580c" alt="Download" width="600" data-path="images/develop/izleme-analiz/api-traffic-download.png" />

## Quick Test

The Quick Test button on the relevant row opens the [Test Console](/en/develop/test-debug-tools/test-console) formatted so that the sent request can be tested immediately by resending it.

<img src="https://mintcdn.com/apinizer/Ku5drz7BLIhaC8K7/images/develop/izleme-analiz/api-traffic-quick-test.png?fit=max&auto=format&n=Ku5drz7BLIhaC8K7&q=85&s=c39770160886ff5380e8315f236b664a" alt="Quick Test" width="600" data-path="images/develop/izleme-analiz/api-traffic-quick-test.png" />

<Warning>
  **"Quick Test"** button must be enabled in general settings to be visible.
</Warning>
