The API Traffic log data structure fields, which include requests to and from Apinizer, and various metadata information are given below.

These fields are included in the JSON messages that are sent to the log integration tools.

Field Name

Data/Description Retained in the Field

Java Mapping Type

The field that needs to be activated in the settings to be included in the message

@timestamp

Time Stamp

InstantIdentification Metadata

aci

Apinizer Correlation ID

StringIdentification Metadata

ei

Environment ID

StringIdentification Metadata

pi

Project ID

StringIdentification Metadata

api

API Proxy ID

StringAPI Proxy Metadata
apnAPI Proxy NameStringAPI Proxy Metadata

apmi

API Proxy Method ID

StringAPI Proxy Metadata

apmn

API Proxy Method Name

StringAPI Proxy Metadata

hr1ra

HTTP Request Remote Address

StringRequest Metadata

hr1hm

HTTP Request HTTP Method

StringRequest Metadata

uok

Username or Key

StringRequest Metadata

sc

Status Code

intResponse Metadata

et

Error Type

EnumResponse Metadata

pet

Parent Error Type

EnumResponse Metadata

rt

Result Type

EnumResponse Metadata

trt

Time Routing Total

IntegerMetrics

tapt

Time API Proxy Total

IntegerMetrics

sr1t

Size Request Total

IntegerMetrics

sr2t

Size Response Total

IntegerMetrics

ch

Cache Hit

BooleanMetrics

fcrp

From Client Read Only Parameter

StringHeader from Client

fcrh

From Client Read Only Header

StringParam from Client

fcrb

From Client Read Only Body

StringBody from Client

tbap

To Backend API Parameter

String

tbah

To Backend API Header

String

tba

To Backend API Body

String

ra

Routing/Backend API Address

String

fbarh

From Backend API Read Only Header

StringHeader from Target

fbarb

From Backend API Read Only Body

StringBody from Target

tch

To Client Header

StringHeader to Client

tcb

To Client Body

StringBody to Client

The resulting sample JSON data:

{
  "@timestamp" : "2023-03-16T14:16:41.832Z",  
  "aci" : "<correlation id>",
  "ei" : "<environment id>",
  "pi" : "<project id>",
  "api" : "<api proxy id>",
  "apmi" : "<api proxy method id>",
  "apmn" : "<api proxy method name>",
  "hr1ra" : "<client address>",
  "hr1hm" : "<HTTP Method>",
  "uok" : "<username or key>",
  "fcrh" : {
    "key1" : "value1",
    "key2" : "value2",
    "key3" : "value3"
  },
  "fcrp" : {
    "key1" : "value1",
    "key2" : "value2",
    "key3" : "value3"
  },
  "fcrb" : "<request body from client>",
  "tbah" : {
    "key1" : "value1",
    "key2" : "value2",
    "key3" : "value3"
  },
  "tbap" : {
    "key1" : "value1",
    "key2" : "value2",
    "key3" : "value3"
  },
  "tba" : "<request body to backend api>",
  "ra" : "<backend api address>",
  "fbarh" : {
    "key1" : "value1",
    "key2" : "value2",
    "key3" : "value3"
  },
  "fbarb" : "<body response from backend api>",
  "tch" : {
    "key1" : "value1",
    "key2" : "value2",
    "key3" : "value3"
  },
  "tcb" : "<body response to client>",
  "trt" : 100,
  "tapt" : 150,
  "ch" : false,
  "sr1t" : 100,
  "sr2t" : 250,
  "sc" : 200,
  "rt" : "SUCCESS",
  "et" : "APIPROXY",
  "pet" : "API_PROXY"
}
JS

You can view the list of values in the "rt" field in the "Result Type Enum Values" table on the Error Messages page.

You can view the list of values in the "pet" field in the "Parent Error Type Values" table on the Error Messages page.

You can view the list of values in the "et" field in the "Error Type Values" table on the Error Messages page.