-
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.
[Filebeat][New Module] Adding support for Oracle Audit logs (#21991)
Oracle module, with a audit log fileset
- Loading branch information
Showing
54 changed files
with
26,583 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[filebeat-module-oracle]] | ||
[role="xpack"] | ||
|
||
:modulename: oracle | ||
:has-dashboards: false | ||
|
||
|
||
== Oracle module | ||
beta[] | ||
|
||
This is a module for ingesting Audit Trail logs from Oracle Databases. | ||
|
||
The module expects an *.aud audit file that is generated from Oracle Databases by default. If this has been disabled then please see the https://docs.oracle.com/en/database/oracle/oracle-database/19/dbseg/introduction-to-auditing.html#GUID-8D96829C-9151-4FA4-BED9-831D088F12FF[Oracle Database Audit Trail Documentation]. | ||
|
||
|
||
|
||
include::../include/gs-link.asciidoc[] | ||
|
||
|
||
[float] | ||
=== Compatibility | ||
|
||
This module has been tested with Oracle Database 19c, and should work for 18c as well though it has not been tested. | ||
|
||
include::../include/configuring-intro.asciidoc[] | ||
|
||
:fileset_ex: database_audit | ||
|
||
include::../include/config-option-intro.asciidoc[] | ||
|
||
[float] | ||
==== `database_audit` fileset settings | ||
|
||
Example config: | ||
|
||
[source,yaml] | ||
---- | ||
- module: oracle | ||
database_audit: | ||
var.input: file | ||
var.paths: /home/user/oracleauditlogs/*/*.aud | ||
---- | ||
|
||
include::../include/var-paths.asciidoc[] | ||
|
||
*`var.tags`*:: | ||
|
||
A list of tags to include in events. Including `forwarded` indicates that the | ||
events did not originate on this host and causes `host.name` to not be added to | ||
events. Defaults to `[oracle-database-audit]`. | ||
|
||
[float] | ||
==== Oracle Database fields | ||
|
||
Oracle Database fields are mapped to the current ECS Fields: | ||
[options="header"] | ||
|============================================================== | ||
| Oracle Fields | ECS Fields | | ||
| privilege | host.user.roles | | ||
| client_user | client.user.name | | ||
| userhost | client.ip/domain | | ||
| database_user | server.user.name | | ||
|============================================================== | ||
|
||
:modulename!: | ||
|
||
|
||
[float] | ||
=== Fields | ||
|
||
For a description of each field in the module, see the | ||
<<exported-fields-oracle,exported fields>> section. | ||
|
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.
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,10 @@ | ||
- module: oracle | ||
database_audit: | ||
enabled: true | ||
|
||
# Set which input to use between syslog or file (default). | ||
#var.input: file | ||
|
||
# Set paths for the log files when file input is used. | ||
# Should only be used together with file input | ||
# var.paths: /home/user/oracleauditlogs/*.aud |
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,64 @@ | ||
[role="xpack"] | ||
|
||
:modulename: oracle | ||
:has-dashboards: false | ||
|
||
|
||
== Oracle module | ||
beta[] | ||
|
||
This is a module for ingesting Audit Trail logs from Oracle Databases. | ||
|
||
The module expects an *.aud audit file that is generated from Oracle Databases by default. If this has been disabled then please see the https://docs.oracle.com/en/database/oracle/oracle-database/19/dbseg/introduction-to-auditing.html#GUID-8D96829C-9151-4FA4-BED9-831D088F12FF[Oracle Database Audit Trail Documentation]. | ||
|
||
|
||
|
||
include::../include/gs-link.asciidoc[] | ||
|
||
|
||
[float] | ||
=== Compatibility | ||
|
||
This module has been tested with Oracle Database 19c, and should work for 18c as well though it has not been tested. | ||
|
||
include::../include/configuring-intro.asciidoc[] | ||
|
||
:fileset_ex: database_audit | ||
|
||
include::../include/config-option-intro.asciidoc[] | ||
|
||
[float] | ||
==== `database_audit` fileset settings | ||
|
||
Example config: | ||
|
||
[source,yaml] | ||
---- | ||
- module: oracle | ||
database_audit: | ||
var.input: file | ||
var.paths: /home/user/oracleauditlogs/*/*.aud | ||
---- | ||
|
||
include::../include/var-paths.asciidoc[] | ||
|
||
*`var.tags`*:: | ||
|
||
A list of tags to include in events. Including `forwarded` indicates that the | ||
events did not originate on this host and causes `host.name` to not be added to | ||
events. Defaults to `[oracle-database-audit]`. | ||
|
||
[float] | ||
==== Oracle Database fields | ||
|
||
Oracle Database fields are mapped to the current ECS Fields: | ||
[options="header"] | ||
|============================================================== | ||
| Oracle Fields | ECS Fields | | ||
| privilege | host.user.roles | | ||
| client_user | client.user.name | | ||
| userhost | client.ip/domain | | ||
| database_user | server.user.name | | ||
|============================================================== | ||
|
||
:modulename!: |
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,10 @@ | ||
- key: oracle | ||
title: Oracle | ||
description: > | ||
Oracle Module | ||
fields: | ||
- name: oracle | ||
type: group | ||
description: > | ||
Fields from Oracle logs. | ||
fields: |
Oops, something went wrong.