Parser created as follows: ```go p := rfc3164.NewParser( rfc3164.WithYear(rfc3164.Year{YYYY: 2020}), rfc3164.WithRFC3339(), ) ``` Example input: ``` <0>Mar 1 09:38:48 myhost myapp[12345]: foo [bar] baz ``` Output (take a look at `ProcID`): ``` { "Facility": 0, "Severity": 0, "Priority": 0, "Timestamp": "2020-03-01T09:38:48Z", "Hostname": "myhost", "Appname": "myapp", "ProcID": "foo [bar", "MsgID": null, "Message": "foo [bar] baz" } ```
Parser created as follows:
Example input:
Output (take a look at
ProcID):