Skip to content

Commit

Permalink
[Winlogbeat] Set host.name to computername (#14625) (#14688)
Browse files Browse the repository at this point in the history
* Set host.name to computername

 - set host.name to computer name for windows events and sysmon
 - Add info about libbeat #14407 dependency

Fixes #13706

(cherry picked from commit da6dd9d)
  • Loading branch information
leehinman committed Nov 21, 2019
1 parent be8ea9e commit 3b9257a
Show file tree
Hide file tree
Showing 19 changed files with 695 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
*Winlogbeat*

- Fix data race affecting config validation at startup. {issue}13005[13005]
- Set host.name to computername in Windows event logs & sysmon. Requires {pull}14407[14407] in libbeat to work {issue}13706[13706]

*Functionbeat*

Expand Down
1 change: 1 addition & 0 deletions winlogbeat/eventlog/eventlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ func (e Record) ToEvent() beat.Event {
m.Put("event.code", e.EventIdentifier.ID)
m.Put("event.provider", e.Provider.Name)
addOptional(m, "event.action", e.Task)
addOptional(m, "host.name", e.Computer)

m.Put("event.created", time.Now())

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"provider": "Microsoft-Windows-Security-Auditing",
"type": "authentication_success"
},
"host": {
"name": "vagrant-2012-r2"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -83,6 +86,9 @@
"provider": "Microsoft-Windows-Security-Auditing",
"type": "authentication_success"
},
"host": {
"name": "vagrant-2012-r2"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -155,6 +161,9 @@
"provider": "Microsoft-Windows-Security-Auditing",
"type": "authentication_success"
},
"host": {
"name": "vagrant-2012-r2"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -230,6 +239,9 @@
"provider": "Microsoft-Windows-Security-Auditing",
"type": "authentication_success"
},
"host": {
"name": "vagrant-2012-r2"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -302,6 +314,9 @@
"provider": "Microsoft-Windows-Security-Auditing",
"type": "authentication_success"
},
"host": {
"name": "vagrant-2012-r2"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -374,6 +389,9 @@
"provider": "Microsoft-Windows-Security-Auditing",
"type": "authentication_success"
},
"host": {
"name": "vagrant-2012-r2"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -446,6 +464,9 @@
"provider": "Microsoft-Windows-Security-Auditing",
"type": "authentication_success"
},
"host": {
"name": "vagrant-2012-r2"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -518,6 +539,9 @@
"provider": "Microsoft-Windows-Security-Auditing",
"type": "authentication_success"
},
"host": {
"name": "vagrant-2012-r2"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -590,6 +614,9 @@
"provider": "Microsoft-Windows-Security-Auditing",
"type": "authentication_success"
},
"host": {
"name": "vagrant-2012-r2"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -665,6 +692,9 @@
"provider": "Microsoft-Windows-Security-Auditing",
"type": "authentication_success"
},
"host": {
"name": "vagrant-2012-r2"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -737,6 +767,9 @@
"provider": "Microsoft-Windows-Security-Auditing",
"type": "authentication_success"
},
"host": {
"name": "vagrant-2012-r2"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -812,6 +845,9 @@
"provider": "Microsoft-Windows-Security-Auditing",
"type": "authentication_success"
},
"host": {
"name": "vagrant-2012-r2"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -884,6 +920,9 @@
"provider": "Microsoft-Windows-Security-Auditing",
"type": "authentication_success"
},
"host": {
"name": "vagrant-2012-r2"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -956,6 +995,9 @@
"provider": "Microsoft-Windows-Security-Auditing",
"type": "authentication_success"
},
"host": {
"name": "vagrant-2012-r2"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -1028,6 +1070,9 @@
"provider": "Microsoft-Windows-Security-Auditing",
"type": "authentication_success"
},
"host": {
"name": "vagrant-2012-r2"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -1100,6 +1145,9 @@
"provider": "Microsoft-Windows-Security-Auditing",
"type": "authentication_success"
},
"host": {
"name": "vagrant-2012-r2"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -1172,6 +1220,9 @@
"provider": "Microsoft-Windows-Security-Auditing",
"type": "authentication_success"
},
"host": {
"name": "vagrant-2012-r2"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -1244,6 +1295,9 @@
"provider": "Microsoft-Windows-Security-Auditing",
"type": "authentication_failure"
},
"host": {
"name": "vagrant-2012-r2"
},
"log": {
"level": "information"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"module": "security",
"provider": "Microsoft-Windows-Security-Auditing"
},
"host": {
"name": "vagrant-2016"
},
"log": {
"level": "information"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"module": "security",
"provider": "Microsoft-Windows-Security-Auditing"
},
"host": {
"name": "WIN-41OB2LO92CR"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -58,6 +61,9 @@
"module": "security",
"provider": "Microsoft-Windows-Security-Auditing"
},
"host": {
"name": "WIN-41OB2LO92CR"
},
"log": {
"level": "information"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"module": "security",
"provider": "Microsoft-Windows-Security-Auditing"
},
"host": {
"name": "WIN-41OB2LO92CR"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -81,6 +84,9 @@
"module": "security",
"provider": "Microsoft-Windows-Security-Auditing"
},
"host": {
"name": "WIN-41OB2LO92CR"
},
"log": {
"level": "information"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"module": "security",
"provider": "Microsoft-Windows-Security-Auditing"
},
"host": {
"name": "WIN-41OB2LO92CR"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -62,6 +65,9 @@
"module": "security",
"provider": "Microsoft-Windows-Security-Auditing"
},
"host": {
"name": "WIN-41OB2LO92CR"
},
"log": {
"level": "information"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"module": "security",
"provider": "Microsoft-Windows-Security-Auditing"
},
"host": {
"name": "WIN-41OB2LO92CR"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -63,6 +66,9 @@
"module": "security",
"provider": "Microsoft-Windows-Security-Auditing"
},
"host": {
"name": "WIN-41OB2LO92CR"
},
"log": {
"level": "information"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"module": "security",
"provider": "Microsoft-Windows-Security-Auditing"
},
"host": {
"name": "WIN-41OB2LO92CR"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -62,6 +65,9 @@
"module": "security",
"provider": "Microsoft-Windows-Security-Auditing"
},
"host": {
"name": "WIN-41OB2LO92CR"
},
"log": {
"level": "information"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"module": "security",
"provider": "Microsoft-Windows-Security-Auditing"
},
"host": {
"name": "WIN-41OB2LO92CR"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -62,6 +65,9 @@
"module": "security",
"provider": "Microsoft-Windows-Security-Auditing"
},
"host": {
"name": "WIN-41OB2LO92CR"
},
"log": {
"level": "information"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"module": "security",
"provider": "Microsoft-Windows-Security-Auditing"
},
"host": {
"name": "WIN-41OB2LO92CR"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -63,6 +66,9 @@
"module": "security",
"provider": "Microsoft-Windows-Security-Auditing"
},
"host": {
"name": "WIN-41OB2LO92CR"
},
"log": {
"level": "information"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"module": "security",
"provider": "Microsoft-Windows-Security-Auditing"
},
"host": {
"name": "WIN-41OB2LO92CR"
},
"log": {
"level": "information"
},
Expand Down Expand Up @@ -82,6 +85,9 @@
"module": "security",
"provider": "Microsoft-Windows-Security-Auditing"
},
"host": {
"name": "WIN-41OB2LO92CR"
},
"log": {
"level": "information"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"module": "security",
"provider": "Microsoft-Windows-Security-Auditing"
},
"host": {
"name": "WIN-41OB2LO92CR"
},
"log": {
"level": "information"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"module": "security",
"provider": "Microsoft-Windows-Security-Auditing"
},
"host": {
"name": "WIN-41OB2LO92CR"
},
"log": {
"level": "information"
},
Expand Down
Loading

0 comments on commit 3b9257a

Please sign in to comment.