Receive logs from your app
Aidbox provides /$loggy endpoint that accepts logs with the defined structure from your application. These logs are ingested into the elastic log. You can find examples below.

Input params

Param name
Required
Type
Description
type
Yes
string
It is a special keyword for your logs like "ui", "ui-error", "backend-crush"
message
Yes
JSON
It contains information that you want to log. It should be noted that we record your log data only from the message property
v
No
string
It means your app version.
fx
No
string
fx or event on your side from which you want to log data or error.

Example

Request example

1
POST /$loggy
2
3
type: ui
4
v: "2020.02"
5
fx: "fetchUsers"
6
message:
7
error:
8
message: "Access Denied."
Copied!

In log example

1
w_uid: admin
2
ctx: request-uid
3
message:
4
error: {message: Access denied.}
5
w_app_v: '2020.02'
6
w_cid: box-ui
7
w_app_fx: fetchUsers
8
w_m: post
Copied!
Aidbox logs structure is described here
Copy link