Skip to content

Commit 5a0830e

Browse files
sumoanemaJV0812
andauthored
Doc changes to collect unified audit logs for windows env for oracle … (#4784)
* Doc changes to collect unified audit logs for windows env for oracle otel app * Adding example to configure syslog server to redirect logs to a port * Apply suggestions from code review Co-authored-by: Jagadisha V <[email protected]> * Changes to make automation pass, which was failing due to less that/ greater than condition symbols --------- Co-authored-by: Jagadisha V <[email protected]>
1 parent 8c0a072 commit 5a0830e

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

docs/integrations/databases/opentelemetry/oracle-opentelemetry.md

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ import TabItem from '@theme/TabItem';
1111

1212
<img src={useBaseUrl('img/integrations/databases/oracle.png')} alt="Thumbnail icon" width="100"/> <img src={useBaseUrl('img/send-data/otel-color.svg')} alt="Thumbnail icon" width="45"/>
1313

14-
The [Oracle](https://docs.oracle.com/database/121/CNCPT/intro.htm#CNCPT001) app is a logs and metrics based app. Preconfigured dashboards and searches provide insight into the listeners, sys/xml audit logs, alerts, performance, and security. It also gives insight around count of rollback, commits, transaction, process, session, hard parse, and DML locks.
14+
The [Oracle](https://docs.oracle.com/database/121/CNCPT/intro.htm#CNCPT001) app is a logs and metrics based app. Preconfigured dashboards and searches provide insight into the listeners, audit logs (traditional - sys/xml and unified), performance, and security. It also gives insight around count of rollback, commits, transaction, process, session, hard parse, and DML locks.
1515

1616
This app is tested with the following Oracle versions:
1717

1818
- Non-Kubernetes: Oracle Database 23 Release 23.4.0.24.05.
1919

20-
Oracle logs are sent to Sumo Logic through OpenTelemetry [filelog receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/filelogreceiver) and metrics are collected through [Oracledb receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/oracledbreceiver)
20+
Oracle logs, such as listener, alert, and traditional audit logs (Oracle version 19c and below) are sent to Sumo Logic through OpenTelemetry [filelog receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/filelogreceiver) whereas, unified audit logs (Oracle version 21c and above) are collected through [syslog](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/syslogreceiver) for the Linux environment and [windowseventlog](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/windowseventlogreceiver/) receiver for windows environment.
21+
22+
Metrics are collected through [Oracledb receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/oracledbreceiver).
2123

2224
<img src='https://sumologic-app-data-v2.s3.amazonaws.com/dashboards/Oracle-OpenTelemetry/Oracle-Schematics.png' alt="Schematics" />
2325

@@ -64,15 +66,11 @@ If logging is not enabled, you can configure it by following the steps below.
6466
lsnrctl command [listener_name]
6567
lsnrctl set log_status on
6668
```
67-
- **Audit Log**. Traditional auditing is deprecated in Oracle Database 21c. If you are using version below 21c follow [this](https://docs.oracle.com/cd/E11882_01/server.112/e10575/tdpsg_auditing.htm#TDPSG50000) guide to enable Audit Logs. For version 21c and above, follow [this](https://docs.oracle.com/en/database/oracle/oracle-database/19/dbseg/administering-the-audit-trail.html#GUID-662AA54B-D878-4B78-94D3-733256B3F37C) to enable exporting for unified audit trail through syslog for Oracle on Linux.
68-
69-
:::note
70-
Currently this app does not support collection of unified audit trail logs collected in Oracle on Windows as Windows event logs.
71-
:::
69+
- **Audit Log**. Traditional auditing is deprecated in Oracle Database 21c. If you are using version 19c or below follow [this](https://docs.oracle.com/cd/E11882_01/server.112/e10575/tdpsg_auditing.htm#TDPSG50000) guide to enable Audit Logs. For version 21c and above, follow [this](https://docs.oracle.com/en/database/oracle/oracle-database/19/dbseg/administering-the-audit-trail.html#GUID-662AA54B-D878-4B78-94D3-733256B3F37C) to enable exporting for unified audit logs through syslog for Oracle on Linux and windows event logs for Oracle on Windows.
7270

7371
#### Verify local logs file directories and path
7472

75-
- **Oracle Alert Logs**. For 11g and later releases (12c, 18c, 19c). By default, Oracle logs are stored in
73+
- **Oracle Alert Logs**. For 11g and later releases (12c, 18c, 19c, 21c, 23c). By default, Oracle logs are stored in
7674
`$ORACLE_BASE/diag/rdbms/$DB_UNIQUE_NAME/$ORACLE_SID/trace/`. The default directory for log files is stored in `BACKGROUND_DUMP_DEST` parameter. You can query the value of `BACKGROUND_DUMP_DEST`, an initialization parameter, where you can find Oracle alert log by executing the command below:
7775
```sh
7876
SQL > show parameter background_dump_dest;
@@ -82,7 +80,7 @@ If logging is not enabled, you can configure it by following the steps below.
8280
[oracle@sumolab alert]$ lsnrctl status
8381
```
8482
- **Oracle Audit Logs**.
85-
- **For Oracle version below 21c**. By default, Oracle logs are stored in
83+
- **For Oracle version 19c and below**. By default, Oracle logs are stored in
8684
```
8785
$ORACLE_BASE/app/oracle/admin/orcl/adump
8886
```
@@ -92,7 +90,10 @@ If logging is not enabled, you can configure it by following the steps below.
9290
9391
The location of these logs will be required when you set up the app through the app catalog.
9492
95-
- **For Oracle version 21c and above**. Once unified audit trail is redirected to syslog, it will start getting written to destination set in `syslog.conf`.
93+
- **For Oracle version 21c and above**. Based on the [Unified audit policy](https://docs.oracle.com/en/database/oracle/oracle-database/23/sqlrf/AUDIT-Unified-Auditing.html) configured, audit logs exported will be directly ingested to Sumo Logic using syslog or windows event log.
94+
For the Linux environment, instead of redirecting audit logs to a file, we need to redirect them to the local port. In the next step, the OTel collector can be configured to listen to this port and then send the log to Sumo Logic. This can be done using the below configuration in the `rsyslog.conf`. :
95+
```local7.info @@127.0.0.1:10514```
96+
This will redirect all the unified audit logs to localhost port 10514.
9697
9798
#### Performance metrics script setup
9899
@@ -181,11 +182,13 @@ import SetupColl from '../../../reuse/apps/opentelemetry/set-up-collector.md';
181182
In this step, you will configure the yaml required for Oracle Collection.
182183
Below are the inputs required:
183184
184-
- **`Endpoint (no default)`**. Endpoint used to connect to the OracleDB server. Must be in the format of `host:port`.
185185
- **`Alert Logs`**. Path of the log file configured to capture oracle alert logs.
186186
- **`Listener Logs`**. Path of the log file configured to capture oracle listener logs .
187-
- **`Audit Logs`**. Path of the log file configured to capture oracle audit logs.
188-
- **`Performance metric script-based logs`**. Path of the log file configured to capture log generated through script.
187+
- **`Audit Logs`**.
188+
- For **Traditional Audit Logs**, path of the log file is configured to capture oracle audit logs.
189+
- For **Unified Audit Logs**, you need to select the OS where the Oracle is setup - Windows or Linux. For Oracle on Windows machine, no parameter is required. Only respective event IDs will be ingested. For the Linux environment, you need to provide the **port** (configured in pre-requisite steps for the Linux environment) which the syslog receiver should listen to for sending the logs to Sumo Logic.
190+
- **`Performance metric script-based logs`**. Path of the log file configured to capture log generated through script can be configured in other logs.
191+
- **`Endpoint (no default)`**. Endpoint used to connect to the OracleDB server. Must be in the format of `host:port`.
189192
- **`username`**. Username for the OracleDB connection.
190193
- **`password`**. Password for the OracleDB connection. Special characters are allowed.
191194
- **`service`**. OracleDB Service that the receiver should connect to.
@@ -321,8 +324,8 @@ sumo.datasource=oracle metric=oracledb.sessions.usage deployment.environment=*
321324
## Viewing Oracle dashboards
322325

323326
:::note
324-
- **Oracle - Sys Audit Log**, **Oracle - Sys Audit Log - Logon Analysis**, **Oracle - XML Audit Log - Logon Analysis**, and **Oracle - XML Audit Log - SQL Statement Analysis** dashboards will be populated only when collecting logs for Oracle database version below 21c.
325-
- **Oracle - Unified Audit Syslogs** dashboard will populate for audit log collected for Oracle database version 21c and above.
327+
- **Oracle - Sys Audit Log**, **Oracle - Sys Audit Log - Logon Analysis**, **Oracle - XML Audit Log - Logon Analysis**, and **Oracle - XML Audit Log - SQL Statement Analysis** dashboards will be populated only when collecting logs for Oracle database version 19c and below.
328+
- **Oracle - Unified Audit Syslogs** dashboard will populate for unified audit log collected for Oracle database version 21c and above.
326329
:::
327330

328331
### Overview
@@ -549,10 +552,10 @@ Recent Jobs in the database. A table of information about recent database jobs,
549552
### Unified Audit Syslog
550553

551554
<img src='https://sumologic-app-data-v2.s3.amazonaws.com/dashboards/Oracle-OpenTelemetry/Oracle-Unified-Audit-Syslog.png' alt="Monitor Performance by DB Script" />
552-
See information derived from the syslog audit trail, including successful and failed activities, successful and failed logon attempts. In addition to this dashboard gives insight around logon status trend, top current and database users.
555+
See information derived from the syslog audit trail, including successful and failed activities, successful and failed logon attempts. Additionally, this dashboard also provides insight around logon status trend, top current, and database users. This dashboard work with unified audit logs exported from both Windows and Linux environment.
553556

554557
### Performance Details
555558

556559
<img src='https://sumologic-app-data-v2.s3.amazonaws.com/dashboards/Oracle-OpenTelemetry/Oracle-Performance-Details.png' alt="Monitor Performance by DB Script" />
557560
The Oracle - Performance Details dashboard gives insight about - count of rollback, commits, transaction, process, session.
558-
In addition to this it helps monitoring physical and logical reads, PGA allocated. This dashboard is based on the [metrics collected by Oracle DB opentelemetry receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/oracledbreceiver/documentation.md).
561+
In addition to this it helps monitoring physical and logical reads, PGA allocated. This dashboard is based on the [metrics collected by Oracle DB opentelemetry receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/oracledbreceiver/documentation.md).

0 commit comments

Comments
 (0)