-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from allproxy/v3-52-1
Kubernettes object support
- Loading branch information
Showing
49 changed files
with
7,854 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
{} | ||
{ | ||
"action": true, | ||
"status_code": true, | ||
"StatusCode": true, | ||
"error": true, | ||
"Method": true, | ||
"url": true, | ||
"uri": true, | ||
"path": true, | ||
"metadata.deletionTimestamp": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,29 @@ | ||
{ | ||
"jsonFields": [], | ||
"jsonFields": [ | ||
"Action", | ||
"Body", | ||
"Method", | ||
"StatusCode", | ||
"caller", | ||
"code", | ||
"deletionTimestamp", | ||
"endpoint", | ||
"error", | ||
"id", | ||
"kind", | ||
"name", | ||
"path", | ||
"status", | ||
"status_code", | ||
"uri", | ||
"url", | ||
"userAgent", | ||
"user_agent" | ||
], | ||
"method": "advanced", | ||
"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 - click ? and \"Edit JSON Script\"';\n // return raw JSON (optional)\n let rawLine;\n // Copy any JSON fields not defined in jsonObject\n let additionalJSON = {};\n\n // Set the level\n // level = jsonObject.m_level;\n\n // Set the date\n // date = jsonObject.my_date;\n\n // Set the kind\n //kind = jsonObject.my_kind;\n\n // Set message\n //message = jsonObject.my_message;\n\n return { date, level, category, kind, message, rawLine, additionalJSON };\n}", | ||
"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}", | ||
"queries": {}, | ||
"briefJsonFields": "{}", | ||
"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}", | ||
"jsonSubQueries": "[]", | ||
"jsonQueries": "[]" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.