Monitoring Unified Assurance User Activity

You can use the Audit Log Replication Data Importer service to save a log of Oracle Communications Unified Assurance UI or API user activity in the Historical database, and users with the correct permissions can view the audit information by running an OpenSearch query.

About User Activity Data

The following API or UI actions prompt a log entry:

The following example shows a log entry that is created when a user logs in:

"_source": {
  "agent": {
    "hostname": "hostname.example.com",
    "type": "auditlog-repl-importer"
  },
  "MessageDate": "2026-02-20T12:31:06Z",
  "@timestamp": "2026-02-20T12:31:06.075Z",
  "User": {
    "name": "user",
    "id": "1"
  },
  "TypeDescr": "AUTHENTICATION",
  "MessageID": 83,
  "MessageInfo": "User logged in from example.com(198.51.100.1)",
  "Result": "SUCCESS"
}  

User Activity Log Retention and Access

By default, user activity log data is retained for 12 months. You can change the retention period by changing the state management policy. See Changing OpenSearch State Management Policies for more details.

You can only access user activity log data if your Unified Assurance role has the Admin permission under the eventAnalytics package.

Setting Up User Activity Logging

To set up user activity logging:

  1. Make sure you have AnalyticsWizard running:

    ./AnalyticsWizard
    
  2. Switch AnalyticsWizard to auditlog mode:

    ./AnalyticsWizard --mode auditlog
    

    See AnalyticsWizard and Audit Log Replication Data Importer in Unified Assurance Implementation Guide for more information about these applications.

Customizing Audit Log Entries

The Audit Log Replication Data Importer includes the auditlogs OpenSearch ingest pipeline. You can update the pipeline to customize audit log entries before they are added to OpenSearch.

To update the pipeline:

  1. From the Analytics menu, select Events, then Administration, and then Console.

  2. Enter the following in the console:

    PUT _ingest/pipeline/auditlogs
    {
    "description": "This auditlogs pipeline",
    "processors": [
    <array_of_processors>
    ]
    }     
    

    where <array_of_processors> is the array of processors you want to use to customize the log entries. See Ingest processors in the OpenSearch documentation for a full list of processors you can use.

  3. Click the green triangle on the first line of the request to submit it.

Viewing User Activity Logs

You can view user activity logs by creating a custom OpenSearch dashboard to visualize them, or by running a query in the OpenSearch Query Workbench. You can also export query results in JDBC, CSV, or text format.

Although Unified Assurance does not include any default OpenSearch dashboards for user activity, you can create one as described in Creating Custom Dashboards in Unified Assurance Network Performance Management Reporting Guide. When creating visualizations (panels) for user activity logs, set the source to auditlogs-*.

To run a query for user activity logs:

  1. From the main navigation menu, select Analytics, then Events, and then Home.

  2. Expand the menu in the top left corner of the OpenSearch UI, and select Query Workbench under OpenSearch Plugins.

  3. Run an OpenSearch query against the auditlogs-* index:

    select * from auditlogs-*
    

    You can see the user activity log data in the Results section.

  4. Optionally, in the Results section, select Download to export the user activity log data in JDBC, CSV, or text format.