Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for platform logs in Filebeat Azure module #22371

Merged
merged 67 commits into from
Nov 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
938e66c
mofidy doc
narph Jul 23, 2020
4daef08
Merge branch 'master' of github.com:elastic/beats
narph Aug 3, 2020
b613178
Merge branch 'master' of github.com:elastic/beats
narph Aug 4, 2020
05364cf
Merge branch 'master' of github.com:elastic/beats
narph Aug 4, 2020
f147c4d
Merge branch 'master' of github.com:elastic/beats
narph Aug 4, 2020
4574718
Merge branch 'master' of github.com:elastic/beats
narph Aug 17, 2020
1e43077
Merge branch 'master' of github.com:elastic/beats
narph Aug 19, 2020
807cf06
Merge branch 'master' of github.com:elastic/beats
narph Aug 24, 2020
2096668
Merge branch 'master' of github.com:elastic/beats
narph Aug 27, 2020
da8ac1f
Merge branch 'master' of github.com:elastic/beats
narph Aug 27, 2020
c2d8930
Merge branch 'master' of github.com:elastic/beats
narph Aug 27, 2020
7bd9e73
Merge branch 'master' of github.com:elastic/beats
narph Aug 31, 2020
6e89a84
Merge branch 'master' of github.com:elastic/beats
narph Aug 31, 2020
bdf21e9
Merge branch 'master' of github.com:elastic/beats
narph Sep 2, 2020
7833687
Merge branch 'master' of github.com:elastic/beats
narph Sep 3, 2020
bbf6178
Merge branch 'master' of github.com:elastic/beats
narph Sep 4, 2020
4ba8817
Merge branch 'master' of github.com:elastic/beats
narph Sep 7, 2020
0cba5dc
Merge branch 'master' of github.com:elastic/beats
narph Sep 8, 2020
b2625ca
Merge branch 'master' of github.com:elastic/beats
narph Sep 8, 2020
5100e6a
Merge branch 'master' of github.com:elastic/beats
narph Sep 9, 2020
a302d31
Merge branch 'master' of github.com:elastic/beats
narph Sep 14, 2020
631d667
Merge branch 'master' of github.com:elastic/beats
narph Sep 15, 2020
35072a5
Merge branch 'master' of github.com:elastic/beats
narph Sep 17, 2020
4b2f87a
Merge branch 'master' of github.com:elastic/beats
narph Sep 22, 2020
f26b533
Merge branch 'master' of github.com:elastic/beats
narph Sep 28, 2020
c61620d
Merge branch 'master' of github.com:elastic/beats
narph Sep 28, 2020
43f90c4
Merge branch 'master' of github.com:elastic/beats
narph Sep 30, 2020
2d28f07
Merge branch 'master' of github.com:elastic/beats
narph Oct 1, 2020
0a42bbe
Merge branch 'master' of github.com:elastic/beats
narph Oct 2, 2020
0bedffe
Merge branch 'master' of github.com:elastic/beats
narph Oct 5, 2020
2eb7142
Merge branch 'master' of github.com:elastic/beats
narph Oct 5, 2020
f9e4522
Merge branch 'master' of github.com:elastic/beats
narph Oct 12, 2020
227bd50
Merge branch 'master' of github.com:elastic/beats
narph Oct 15, 2020
6e39971
Merge branch 'master' of github.com:elastic/beats
narph Oct 19, 2020
0e85625
Merge branch 'master' of github.com:elastic/beats
narph Oct 19, 2020
6770f2d
Merge branch 'master' of github.com:elastic/beats
narph Oct 20, 2020
63ab6a7
Merge branch 'master' of github.com:elastic/beats
narph Oct 26, 2020
6358eb8
Merge branch 'master' of github.com:elastic/beats
narph Oct 27, 2020
8a9c382
Merge branch 'master' of github.com:elastic/beats
narph Oct 28, 2020
70f5f0e
Merge branch 'master' of github.com:elastic/beats
narph Oct 28, 2020
81e66b5
Merge branch 'master' of github.com:elastic/beats
narph Oct 29, 2020
6f0f8d0
Merge branch 'master' of github.com:elastic/beats
narph Oct 29, 2020
9c328e4
Merge branch 'master' of github.com:elastic/beats
narph Oct 30, 2020
a4aba6b
Merge branch 'master' of github.com:elastic/beats
narph Nov 3, 2020
54f70e1
platformlogs
narph Nov 3, 2020
70369e7
fix
narph Nov 3, 2020
fc7b82a
separate pr
narph Nov 3, 2020
591aea6
work on platform
narph Nov 4, 2020
3642912
Merge branch 'master' of github.com:elastic/beats
narph Nov 4, 2020
b479600
work
narph Nov 4, 2020
6c2a9b6
Merge branch 'master' of github.com:elastic/beats
narph Nov 4, 2020
8e9e5e3
Merge branch 'master' into platform-logs
narph Nov 4, 2020
cabc839
platforms
narph Nov 5, 2020
7929b83
changelog
narph Nov 5, 2020
faac020
fix file
narph Nov 5, 2020
149efa3
Merge branch 'master' of github.com:elastic/beats
narph Nov 12, 2020
5d73356
Merge branch 'master' into platform-logs
narph Nov 12, 2020
23f953b
add tests
narph Nov 16, 2020
67953dc
add mapping
narph Nov 16, 2020
b1b3042
test
narph Nov 17, 2020
227f6cc
update mapping
narph Nov 17, 2020
bfbf014
fix file name
narph Nov 17, 2020
65f0016
update file
narph Nov 17, 2020
1cbc280
map field
narph Nov 18, 2020
9ce1871
update files
narph Nov 24, 2020
97b8e70
fix logs
narph Nov 24, 2020
b9dc88d
generate tests
narph Nov 25, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ from being added to events by default. {pull}18159[18159]
- Copy tag names from MISP data into events. {pull}21664[21664]
- Added DNS response IP addresses to `related.ip` in Suricata module. {pull}22291[22291]
- Added TLS JA3 fingerprint, certificate not_before/not_after, certificate SHA1 hash, and certificate subject fields to Zeek SSL dataset. {pull}21696[21696]
- Add platform logs in the azure filebeat module. {pull}22371[22371]
- Added `event.ingested` field to data from the Netflow module. {pull}22412[22412]

*Heartbeat*
Expand Down
147 changes: 147 additions & 0 deletions filebeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3055,6 +3055,153 @@ type: keyword

--

[float]
=== platformlogs

Fields for Azure platform logs.



*`azure.platformlogs.operation_name`*::
+
--
Operation name


type: keyword

--

*`azure.platformlogs.result_type`*::
+
--
Result type


type: keyword

--

*`azure.platformlogs.result_signature`*::
+
--
Result signature


type: keyword

--

*`azure.platformlogs.category`*::
+
--
Category


type: keyword

--

*`azure.platformlogs.event_category`*::
+
--
Event Category


type: keyword

--

*`azure.platformlogs.status`*::
+
--
Status


type: keyword

--

*`azure.platformlogs.ccpNamespace`*::
+
--
ccpNamespace


type: keyword

--

*`azure.platformlogs.Cloud`*::
+
--
Cloud


type: keyword

--

*`azure.platformlogs.Environment`*::
+
--
Environment


type: keyword

--

*`azure.platformlogs.EventTimeString`*::
+
--
EventTimeString


type: keyword

--

*`azure.platformlogs.Caller`*::
+
--
Caller


type: keyword

--

*`azure.platformlogs.ScaleUnit`*::
+
--
ScaleUnit


type: keyword

--

*`azure.platformlogs.ActivityId`*::
+
--
ActivityId


type: keyword

--

*`azure.platformlogs.properties.*`*::
+
--
Properties


type: object

--

[float]
=== signinlogs

Expand Down
13 changes: 13 additions & 0 deletions filebeat/docs/modules/azure.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ The module contains the following filesets:
`activitylogs` ::
Will retrieve azure activity logs. Control-plane events on Azure Resource Manager resources. Activity logs provide insight into the operations that were performed on resources in your subscription.

`platformlogs` ::
Will retrieve azure platform logs. Platform logs provide detailed diagnostic and auditing information for Azure resources and the Azure platform they depend on.

`signinlogs` ::
Will retrieve azure Active Directory sign-in logs. The sign-ins report provides information about the usage of managed applications and user sign-in activities.

Expand All @@ -46,6 +49,16 @@ Will retrieve azure Active Directory audit logs. The audit logs provide traceabi
storage_account_key: ""
resource_manager_endpoint: ""

platformlogs:
enabled: false
var:
eventhub: ""
consumer_group: "$Default"
connection_string: ""
storage_account: ""
storage_account_key: ""
resource_manager_endpoint: ""

auditlogs:
enabled: false
var:
Expand Down
10 changes: 10 additions & 0 deletions x-pack/filebeat/filebeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,16 @@ filebeat.modules:
# the storage account key, this key will be used to authorize access to data in your storage account
storage_account_key: ""

platformlogs:
enabled: false
# var:
# eventhub: ""
# consumer_group: "$Default"
# connection_string: ""
# storage_account: ""
# storage_account_key: ""


auditlogs:
enabled: false
# var:
Expand Down
10 changes: 10 additions & 0 deletions x-pack/filebeat/module/azure/_meta/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
# the storage account key, this key will be used to authorize access to data in your storage account
storage_account_key: ""

platformlogs:
enabled: false
# var:
# eventhub: ""
# consumer_group: "$Default"
# connection_string: ""
# storage_account: ""
# storage_account_key: ""


auditlogs:
enabled: false
# var:
Expand Down
13 changes: 13 additions & 0 deletions x-pack/filebeat/module/azure/_meta/docs.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ The module contains the following filesets:
`activitylogs` ::
Will retrieve azure activity logs. Control-plane events on Azure Resource Manager resources. Activity logs provide insight into the operations that were performed on resources in your subscription.

`platformlogs` ::
Will retrieve azure platform logs. Platform logs provide detailed diagnostic and auditing information for Azure resources and the Azure platform they depend on.

`signinlogs` ::
Will retrieve azure Active Directory sign-in logs. The sign-ins report provides information about the usage of managed applications and user sign-in activities.

Expand All @@ -41,6 +44,16 @@ Will retrieve azure Active Directory audit logs. The audit logs provide traceabi
storage_account_key: ""
resource_manager_endpoint: ""

platformlogs:
enabled: false
var:
eventhub: ""
consumer_group: "$Default"
connection_string: ""
storage_account: ""
storage_account_key: ""
resource_manager_endpoint: ""

auditlogs:
enabled: false
var:
Expand Down
2 changes: 1 addition & 1 deletion x-pack/filebeat/module/azure/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 66 additions & 0 deletions x-pack/filebeat/module/azure/platformlogs/_meta/fields.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
- name: platformlogs
type: group
release: beta
default_field: false
description: >
Fields for Azure platform logs.
fields:
- name: operation_name
type: keyword
description: >
Operation name
- name: result_type
type: keyword
description: >
Result type
- name: result_signature
type: keyword
description: >
Result signature
- name: category
type: keyword
description: >
Category
- name: event_category
type: keyword
description: >
Event Category
- name: status
type: keyword
description: >
Status
- name: ccpNamespace
type: keyword
description: >
ccpNamespace
- name: Cloud
type: keyword
description: >
Cloud
- name: Environment
type: keyword
description: >
Environment
- name: EventTimeString
type: keyword
description: >
EventTimeString
- name: Caller
type: keyword
description: >
Caller
- name: ScaleUnit
type: keyword
description: >
ScaleUnit
- name: ActivityId
type: keyword
description: >
ActivityId
- name: properties.*
type: object
object_type: keyword
object_type_mapping_type: "*"
description: >
Properties

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
type: azure-eventhub
connection_string: {{ .connection_string }}
eventhub: {{ .eventhub }}
consumer_group: {{ .consumer_group }}
storage_account: {{ .storage_account }}
storage_account_key: {{ .storage_account_key }}
resource_manager_endpoint: {{ .resource_manager_endpoint }}
storage_account_container: filebeat-platformlogs-{{ .eventhub }}
tags: {{.tags | tojson}}
publisher_pipeline.disable_host: {{ inList .tags "forwarded" }}

processors:
- add_fields:
target: ''
fields:
ecs.version: 1.6.0
14 changes: 14 additions & 0 deletions x-pack/filebeat/module/azure/platformlogs/config/file.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
type: log
paths:
{{ range $i, $path := .paths }}
- {{$path}}
{{ end }}
exclude_files: [".gz$"]
tags: {{.tags | tojson}}
publisher_pipeline.disable_host: {{ inList .tags "forwarded" }}

processors:
- add_fields:
target: ''
fields:
ecs.version: 1.6.0
Loading