@@ -33,28 +33,41 @@ package win_eventlog
3333// More info on schema, if there will be need to add more:
3434// https://docs.microsoft.com/en-us/windows/win32/wes/eventschema-elements
3535type Event struct {
36- Source Provider `xml:"System>Provider"`
37- EventID int `xml:"System>EventID"`
38- Version int `xml:"System>Version"`
39- Level int `xml:"System>Level"`
40- Task int `xml:"System>Task"`
41- Opcode int `xml:"System>Opcode"`
42- Keywords string `xml:"System>Keywords"`
43- TimeCreated TimeCreated `xml:"System>TimeCreated"`
44- EventRecordID int `xml:"System>EventRecordID"`
45- Correlation Correlation `xml:"System>Correlation"`
46- Execution Execution `xml:"System>Execution"`
47- Channel string `xml:"System>Channel"`
48- Computer string `xml:"System>Computer"`
49- Security Security `xml:"System>Security"`
50- UserData UserData `xml:"UserData"`
51- EventData EventData `xml:"EventData"`
36+ Source Provider `xml:"System>Provider"`
37+ EventID int `xml:"System>EventID"`
38+ Version int `xml:"System>Version"`
39+ Level int `xml:"System>Level"`
40+ Task int `xml:"System>Task"`
41+ Opcode int `xml:"System>Opcode"`
42+ Keywords string `xml:"System>Keywords"`
43+ TimeCreated TimeCreated `xml:"System>TimeCreated"`
44+ EventRecordID int `xml:"System>EventRecordID"`
45+ Correlation Correlation `xml:"System>Correlation"`
46+ Execution Execution `xml:"System>Execution"`
47+ Channel string `xml:"System>Channel"`
48+ Computer string `xml:"System>Computer"`
49+ Security Security `xml:"System>Security"`
50+ UserData UserData `xml:"UserData"`
51+ EventData EventData `xml:"EventData"`
52+ RenderingInfo * RenderingInfo `xml:"RenderingInfo"`
5253 Message string
5354 LevelText string
5455 TaskText string
5556 OpcodeText string
5657}
5758
59+ // RenderingInfo is provided for events forwarded by Windows Event Collector
60+ // see https://learn.microsoft.com/en-us/windows/win32/api/winevt/nf-winevt-evtformatmessage#parameters
61+ type RenderingInfo struct {
62+ Message string `xml:"Message"`
63+ Level string `xml:"Level"`
64+ Task string `xml:"Task"`
65+ Opcode string `xml:"Opcode"`
66+ Channel string `xml:"Channel"`
67+ Provider string `xml:"Provider"`
68+ Keywords []string `xml:"Keywords>Keyword"`
69+ }
70+
5871// UserData Application-provided XML data
5972type UserData struct {
6073 InnerXML []byte `xml:",innerxml"`
0 commit comments