forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wineventlog.go
43 lines (34 loc) · 1.31 KB
/
wineventlog.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package wineventlog
import (
"time"
"github.com/elastic/beats/winlogbeat/sys/eventlogging"
)
// Event holds the data from the a log record.
type Event struct {
// System context properties.
ProviderName string `json:",omitempty"`
ProviderGUID string `json:",omitempty"`
EventID uint16 `json:",omitempty"`
Qualifiers uint16 `json:",omitempty"`
TimeCreated *time.Time `json:",omitempty"`
RecordID uint64 `json:",omitempty"`
ActivityID string `json:",omitempty"`
RelatedActivityID string `json:",omitempty"`
ProcessID uint32 `json:",omitempty"`
ThreadID uint32 `json:",omitempty"`
Channel string `json:",omitempty"`
Computer string `json:",omitempty"`
UserSID *eventlogging.SID `json:",omitempty"`
Version uint8 `json:",omitempty"`
// String properties that require a call to FormatMessage.
Message string `json:",omitempty"`
MessageErr error
Level string `json:",omitempty"`
LevelErr error
Task string `json:",omitempty"`
TaskErr error
Opcode string `json:",omitempty"`
OpcodeErr error
Keywords []string `json:",omitempty"`
KeywordsError error
}