Skip to content

Commit a9376d5

Browse files
committed
Minor upate
1 parent 447faae commit a9376d5

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

briefJsonFields.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"status_code": true,
44
"StatusCode": true,
55
"error": true,
6+
"errors": true,
67
"Method": true,
78
"url": true,
89
"uri": true,

docs/apFileSystem.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"deletionTimestamp",
1010
"endpoint",
1111
"error",
12+
"errors",
1213
"id",
1314
"kind",
1415
"name",
@@ -23,7 +24,7 @@
2324
"method": "advanced",
2425
"jsonLogScript": "// Function called to extract date, level, app name and message\n//\n// @param preJSONString: string - optional non-JSON string proceeding JSON object\n// @param jsonObject: {} - JSON log data\n// @returns {date: Date, level: string, category: string, appName: string, message: string, rawLine: string, additionalJSON: {} }\n//\n// category is the availability zone\n// appName is the pod name\n//\nconst extractDateLevelCategoryAppNameMessage = function (preJSONString, jsonObject) {\n let level = 'info';\n let date = new Date();\n let category = '';\n let kind = 'Kind_is_not_set';\n let message = 'Message is not set - edit or replace client/public/parsejson/plugin.js';\n let additionalJSON = {};\n const ignoreFields = [];\n // Kube object?\n if (jsonObject.kind && jsonObject.metadata) {\n kind = jsonObject.kind;\n message = jsonObject.metadata.name;\n if (jsonObject.metadata.creationTimestamp) {\n date = new Date(jsonObject.metadata.creationTimestamp);\n }\n level = '';\n additionalJSON['level'] = undefined;\n // Errors detected by the parseJson plugin?\n if (jsonObject['errors']) {\n level = 'error';\n additionalJSON['level'] = level;\n }\n }\n else { // Check for other log formats\n }\n return { date, level, category, kind, message, rawLine: undefined, additionalJSON, ignoreFields };\n}",
2526
"queries": {},
26-
"briefJsonFields": "{\n \"action\": true,\n \"status_code\": true,\n \"StatusCode\": true,\n \"error\": true,\n \"Method\": true,\n \"url\": true,\n \"uri\": true,\n \"path\": true,\n \"metadata.deletionTimestamp\": true\n}",
27+
"briefJsonFields": "{\n \"action\": true,\n \"status_code\": true,\n \"StatusCode\": true,\n \"error\": true,\n \"errors\": true,\n \"Method\": true,\n \"url\": true,\n \"uri\": true,\n \"path\": true,\n \"metadata.deletionTimestamp\": true\n}",
2728
"jsonSubQueries": "[]",
2829
"jsonQueries": "[]"
2930
}

jsonFields/errors

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
errors

0 commit comments

Comments
 (0)