Skip to content

Commit

Permalink
Updated hostd-profile json
Browse files Browse the repository at this point in the history
I found an instance which contained an opID field, which broke the interpretation of the line; I've added an optional opid group in this update.
  • Loading branch information
hagfelsh authored Nov 22, 2017
1 parent 5f747ad commit 7c0b57e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hostd-probe.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"hostd_probe" : {
"title" : "vmware hostd-probe",
"description" : "vmware's hostd-prove log format",
"description" : "vmware's hostd-probe log format",
"url" : "",
"regex" : {
"std" : {
"pattern" : "^(?<timestamp>\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z) (?<level>\\w+) (?<processname>[\\-\\w]+)\\[(?<processid>[A-F0-9]+)\\] \\[(?<originatorid>[\\w\\d@]+) sub=(?<subsystem>\\S+)\\] (?<body>.*)$"
"pattern" : "^(?<timestamp>\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z) (?<level>\\w+) (?<processname>[\\-\\w]+)\\[(?<processid>[A-F0-9]+)\\] \\[(?<originatorid>[\\w\\d@]+) sub=(?<subsystem>\\S+)( opID=(?<opid>\\S+))?\\] (?<body>.*)$"
}
},
"level-field" : "level",
Expand All @@ -15,6 +15,7 @@
"info" : "info",
"debug" : "verbose"
},
"opid-field" : "opid",
"value" : {
"processname": {
"kind" : "string",
Expand Down

0 comments on commit 7c0b57e

Please sign in to comment.