Skip to content

Commit

Permalink
Add User/Group Management Dashboards to Security module (#15236)
Browse files Browse the repository at this point in the history
Add dashboards to the Winlogbeat Security module for visualizing User Management events
and Group Management events. There are two versions of each dashboard - one with and without TSVB (time series visual builder) visualizations.

This updates the Winlogbeat build to include the dashboards from the module directories.

Add it adds winlog.event_data.MemberName to the fields.yml because it's used in the user
management dashboard and should be in the fields.yml so the dashboards load without error.

Co-authored-by: Andrew Kroh <[email protected]>
  • Loading branch information
janniten and andrewkroh authored Feb 5, 2020
1 parent 03d62cc commit d866824
Show file tree
Hide file tree
Showing 8 changed files with 17,181 additions and 2 deletions.
4 changes: 4 additions & 0 deletions winlogbeat/_meta/fields.common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@
type: keyword
- name: MaximumPerformancePercent
type: keyword
- name: MemberName
type: keyword
- name: MemberSid
type: keyword
- name: MinimumPerformancePercent
type: keyword
- name: MinimumThrottlePercent
Expand Down
14 changes: 14 additions & 0 deletions winlogbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6967,6 +6967,20 @@ type: keyword
--
*`winlog.event_data.MemberName`*::
+
--
type: keyword
--
*`winlog.event_data.MemberSid`*::
+
--
type: keyword
--
*`winlog.event_data.MinimumPerformancePercent`*::
+
--
Expand Down
2 changes: 1 addition & 1 deletion winlogbeat/include/fields.go

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion winlogbeat/scripts/mage/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ func (Update) Config() error {
// Dashboards collects all the dashboards and generates index patterns.
func (Update) Dashboards() error {
mg.Deps(fb.FieldsYML)
return devtools.KibanaDashboards()
switch SelectLogic {
case devtools.XPackProject:
return devtools.KibanaDashboards(devtools.OSSBeatDir("module"), devtools.XPackBeatDir("module"))
default:
return devtools.KibanaDashboards(devtools.OSSBeatDir("module"))
}
}

// Fields updates all fields files (.go, .yml).
Expand Down
Loading

0 comments on commit d866824

Please sign in to comment.