You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/06/03 04:59:21 UTC

[GitHub] [skywalking] kezhenxu94 commented on a change in pull request #7062: change log REST endpoint with v3 prefixed

kezhenxu94 commented on a change in pull request #7062:
URL: https://github.com/apache/skywalking/pull/7062#discussion_r644484665



##########
File path: docs/en/protocols/Log-Data-Protocol.md
##########
@@ -45,39 +45,37 @@ Json log record example:
 
 ## HTTP API
 
-Report `json` format logs via HTTP API, the endpoint is http://<oap-address>:12800/logs.
+Report `json` format logs via HTTP API, the endpoint is http://<oap-address>:12800/v3/logs.
 
 Json log record example:
 
 ```json
-[
-  {
-    "timestamp": 1618161813371,
-    "service": "Your_ApplicationName",
-    "serviceInstance": "3a5b8da5a5ba40c0b192e91b5c80f1a8@192.168.1.8",
-    "traceContext": {
-      "traceId": "ddd92f52207c468e9cd03ddd107cd530.69.16181331190470001",
-      "spanId": "0",
-      "traceSegmentId": "ddd92f52207c468e9cd03ddd107cd530.69.16181331190470000"
-    },
-    "tags": {
-      "data": [
-        {
-          "key": "level",
-          "value": "INFO"
-        },
-        {
-          "key": "logger",
-          "value": "com.example.MyLogger"
-        }
-      ]
-    },
-    "body": {
-      "text": {
-        "text": "log message"
+{

Review comment:
       It's type should be array 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org