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

[Filebeat]Azure module - activity logs #13776

Merged
merged 24 commits into from
Oct 10, 2019
Merged
Changes from 1 commit
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
Next Next commit
First commit
narph committed Sep 19, 2019
commit 736a73b5a10f5c4d93ca62993c308128e1aaea6d
13 changes: 13 additions & 0 deletions filebeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
@@ -15,6 +15,7 @@ grouped in the following categories:
* <<exported-fields-apache>>
* <<exported-fields-auditd>>
* <<exported-fields-aws>>
* <<exported-fields-azure>>
* <<exported-fields-beat-common>>
* <<exported-fields-cef>>
* <<exported-fields-cef-module>>
@@ -1241,6 +1242,18 @@ type: keyword

--

[[exported-fields-azure]]
== azure fields

azure Module



[float]
=== azure



[[exported-fields-beat-common]]
== Beat fields

60 changes: 60 additions & 0 deletions filebeat/docs/modules/azure.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
////
This file is generated! See scripts/docs_collector.py
////

[[filebeat-module-azure]]
:modulename: azure
:has-dashboards: true

== azure module

This is the azure module.

include::../include/what-happens.asciidoc[]

[float]
=== Compatibility

TODO: document with what versions of the software is this tested


include::../include/running-modules.asciidoc[]

[float]
=== Example dashboard

This module comes with a sample dashboard. For example:

TODO: include an image of a sample dashboard. If you do not include a dashboard,
remove this section and set `:has-dashboards: false` at the top of this file.

include::../include/configuring-intro.asciidoc[]

TODO: provide an example configuration

:fileset_ex: {fileset}

include::../include/config-option-intro.asciidoc[]

TODO: document the variables from each fileset. If you're describing a variable
that's common to other modules, you can reuse shared descriptions by including
the relevant file. For example:

[float]
==== `{fileset}` log fileset settings

include::../include/var-paths.asciidoc[]

:has-dashboards!:

:fileset_ex!:

:modulename!:


[float]
=== Fields

For a description of each field in the module, see the
<<exported-fields-azure,exported fields>> section.

2 changes: 2 additions & 0 deletions filebeat/docs/modules_list.asciidoc
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ This file is generated! See scripts/docs_collector.py
* <<filebeat-module-apache>>
* <<filebeat-module-auditd>>
* <<filebeat-module-aws>>
* <<filebeat-module-azure>>
* <<filebeat-module-cef>>
* <<filebeat-module-cisco>>
* <<filebeat-module-coredns>>
@@ -44,6 +45,7 @@ include::modules-overview.asciidoc[]
include::modules/apache.asciidoc[]
include::modules/auditd.asciidoc[]
include::modules/aws.asciidoc[]
include::modules/azure.asciidoc[]
include::modules/cef.asciidoc[]
include::modules/cisco.asciidoc[]
include::modules/coredns.asciidoc[]
10 changes: 10 additions & 0 deletions x-pack/filebeat/filebeat.reference.yml
Original file line number Diff line number Diff line change
@@ -87,6 +87,16 @@ filebeat.modules:
# Profile name for aws credential
#var.credential_profile_name: fb-aws

#-------------------------------- Azure Module --------------------------------
- module: azure
# All logs
{fileset}:
enabled: true

# Set custom paths for the log files. If left empty,
# Filebeat will choose the paths depending on your OS.
#var.paths:

#--------------------------------- CEF Module ---------------------------------
- module: cef
log:
1 change: 1 addition & 0 deletions x-pack/filebeat/include/list.go

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

8 changes: 8 additions & 0 deletions x-pack/filebeat/module/azure/_meta/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- module: azure
# All logs
{fileset}:
enabled: true

# Set custom paths for the log files. If left empty,
# Filebeat will choose the paths depending on your OS.
#var.paths:
47 changes: 47 additions & 0 deletions x-pack/filebeat/module/azure/_meta/docs.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
:modulename: azure
:has-dashboards: true

== azure module

This is the azure module.

include::../include/what-happens.asciidoc[]

[float]
=== Compatibility

TODO: document with what versions of the software is this tested


include::../include/running-modules.asciidoc[]

[float]
=== Example dashboard

This module comes with a sample dashboard. For example:

TODO: include an image of a sample dashboard. If you do not include a dashboard,
remove this section and set `:has-dashboards: false` at the top of this file.

include::../include/configuring-intro.asciidoc[]

TODO: provide an example configuration

:fileset_ex: {fileset}

include::../include/config-option-intro.asciidoc[]

TODO: document the variables from each fileset. If you're describing a variable
that's common to other modules, you can reuse shared descriptions by including
the relevant file. For example:

[float]
==== `{fileset}` log fileset settings

include::../include/var-paths.asciidoc[]

:has-dashboards!:

:fileset_ex!:

:modulename!:
9 changes: 9 additions & 0 deletions x-pack/filebeat/module/azure/_meta/fields.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- key: azure
title: "azure"
description: >
azure Module
fields:
- name: azure
type: group
description: >
fields:
23 changes: 23 additions & 0 deletions x-pack/filebeat/module/azure/fields.go

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

3 changes: 3 additions & 0 deletions x-pack/filebeat/module/azure/module.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dashboards:
- id: Filebeat-azure-monitor-Dashboard
file: Filebeat-azure-monitor.json
6 changes: 6 additions & 0 deletions x-pack/filebeat/module/azure/monitor/config/monitor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: log
paths:
{{ range $i, $path := .paths }}
- {{$path}}
{{ end }}
exclude_files: [".gz$"]
11 changes: 11 additions & 0 deletions x-pack/filebeat/module/azure/monitor/ingest/pipeline.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"description": "Pipeline for parsing azure monitor logs",
"processors": [
],
"on_failure" : [{
"set" : {
"field" : "error.message",
"value" : "{{ _ingest.on_failure_message }}"
}
}]
}
13 changes: 13 additions & 0 deletions x-pack/filebeat/module/azure/monitor/manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module_version: 1.0

var:
- name: paths
default:
- /example/test.log*
os.darwin:
- /usr/local/example/test.log*
os.windows:
- c:/programdata/example/logs/test.log*

ingest_pipeline: ingest/pipeline.json
input: config/monitor.yml
11 changes: 11 additions & 0 deletions x-pack/filebeat/modules.d/azure.yml.disabled
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Module: azure
# Docs: https://www.elastic.co/guide/en/beats/filebeat/master/filebeat-module-azure.html

- module: azure
# All logs
{fileset}:
enabled: true

# Set custom paths for the log files. If left empty,
# Filebeat will choose the paths depending on your OS.
#var.paths: