-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* mofidy doc * platformlogs * fix * separate pr * work on platform * work * platforms * changelog * fix file * add tests * add mapping * test * update mapping * fix file name * update file * map field * update files * fix logs * generate tests (cherry picked from commit 2ae52c3)
- Loading branch information
Showing
17 changed files
with
584 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
66 changes: 66 additions & 0 deletions
66
x-pack/filebeat/module/azure/platformlogs/_meta/fields.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
16 changes: 16 additions & 0 deletions
16
x-pack/filebeat/module/azure/platformlogs/config/azure-eventhub.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.