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

Cherry-pick #22371 to 7.x: Add support for platform logs in Filebeat Azure module #22749

Merged
merged 1 commit into from
Nov 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 @@ -513,6 +513,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]
- Improve panw ECS url fields mapping. {pull}22481[22481]
- Improve Nats filebeat dashboard. {pull}22726[22726]
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