Skip to main content
Skip table of contents

Get D3 Log

Get the audit log and monitor log

Implementation

System

Command Category

System Utility

Tags

LOGGING

Inputs

Parameter Name

Required/Optional

Description

Sample Data

Start Time

Required

The start of the date range for logs

2021-03-26 00:00:00

End Time

Required

The end of the date range for logs

2023-03-26 01:00:00

Top Number

Optional

Show the top number of logs

100

Search Condition

Optional

Use the searchable parameters below to search for the desired log info. Type: IncidentPlaybook, EventPlaybook, CodelessPlaybook Action: Add, Import, EditBaseInfo, EditTask, EditLink, RemoveNode, Clone, Replace, Delete, Live, Draft, EditPermissions, Publish, UnPublishAllSite, ClonePublish, Export, TestPlaybook; Type: Integration Action: Add, Edit, Delete, AddConnectionParameter, EditConnectionParameter, DeleteConnectionParameter, AddCommand, AddCommandCodelessPlaybook, EditCommand, EditCommandFeatures, AddCommandInputParameter, EditCommandInputParameter, DeleteCommandInputParameter, AddCommandOutputs, EditCommandOutputs, DeleteCommandOutputs, EditCommandScript, UpdateCommandReferences, EditCommandAllowRemote, LiveCommand, DraftCommand, DeleteCommand, CloneCommand, ExportCommandScript, EditMainEventJsonPath, AddEventSource, EditEventSource, DeleteEventSource, AddEventFieldMapping, EditEventFieldMapping, DeleteEventFieldMapping, EditMainEventJsonPathIncident, EditMainIncidentJsonPath, AddDefaultncidentFieldMappings, DeleteDefaultIncidentFieldMappings, AddIncidentSource, EditIncidentSource, DeleteIncidentSource, EditIncidentFieldMapping, TestCommand; Type: UtilityCommand Action: Add, Edit, Delete, AddCommandCodelessPlaybook, EditCommandFeatures, AddCommandInputParameter, EditCommandInputParameter, DeleteCommandInputParameter, AddCommandOutputs, EditCommandOutputs, DeleteCommandOutputs, EditCommandScript, UpdateCommandReferences, EditCommandAllowRemote, Live, Draft, CloneCommand, ExportCommandScript, TestCommand; Type: CommandSchedule Action: Add, Delete, Stop, CloneAdd; Type: Report Action: AddDashboard, EditDashboard, DeleteDashboard, AddEmailSchedule, DeleteEmailSchedule, CloneEmailSchedule, StopEmailSchedule, AddWidget, EditWidget, DeleteWidget, AddWidgetTag, EditWidgetTag, DeleteWidgetTag, EditDashboardPermission, EditWidgetPermission, AddQuery, EditQuery, CloneWidget, CloneDashboard; Type: DataIngestionFetchCommand Action: Add, CloneAdd, Stop, Delete; Type: DataIngestionWebhook, RemoteCommandWebhook Action: Add, Edit, Delete, RegenerateAuthKey, EditCommandSettings; Type: GlobalList Action: Add, Edit, Delete, Overwrite, Clear; Type: User Action: Add, Edit, Delete, Login, Logout, Lock, Unlock; Type: Group Action: Add, Edit, Delete, Edit user by group; Type: Role Action: Add, Edit, Delete, Edit user by role, SetDefault; Type: Site Action: Add, Edit, Delete, Edit user by site, Active; Type: Connection Action: Add, Edit, Delete, Clone, SetDisable; Type: Web Service Action: Application Start, Application End; Type: Monitor Action: Storage, ExecutedTaskCount;

CODE
[
    {
        "Type": "User",
        "Action": "Add"
    },
    {
        "Type": "User",
        "Action": "Edit"
    }
]

Output

Return Data

The returned result of this command. If some required parameters are not defined, this returned data could be empty. The returned result can be passed down directly to a subsequent command in playbooks.

SAMPLE DATA

JSON
{
    "AuditLogs": [
        {
            "_id": "64dec7c5c6488f2d542cde14",
            "ModifiedTime": "2023-08-18 01:22:13.757000",
            "ModifiedUtcTime": "2023-08-18 01:22:13.757000",
            "Type": "Web Service",
            "Action": "Application Start",
            "MachineName": "VDVPC-1"
        },
        {
            "_id": "64dec7a7a3185ce16ad3f205",
            "ModifiedTime": "2023-08-18 01:21:43.776000",
            "ModifiedUtcTime": "2023-08-18 01:21:43.776000",
            "Type": "Web Service",
            "Action": "Application End",
            "MachineName": "VDVPC-1"
        }
    ],
    "MonitorLogs": [
        {
            "_id": "64dfa912640633851577ecaa",
            "ModifiedTime": "2023-08-18 17:23:30.659000",
            "ModifiedUtcTime": "2023-08-18 17:23:30.659000",
            "Type": "Monitor",
            "Action": "Storage",
            "Data": {
                "Storage": {
                    "TotalSize": 1152.01678466392,
                    "SqlServer": {
                        "StorageSize": 10.29022216392,
                        "StorageUsage": 9.23755644512
                    },
                    "MongoDb": 1141.7265625
                }
            }
        }
    ]
}

Remote Command API

The D3 command API allows you to send requests to D3 SOAR to execute this utility command via REST API.

Request

POST

CODE
https:/{base_url}/{api_namespace}/api/Command/getD3Log

Headers

Please refer to the page Webhook Configuration Guide - Authentication Method: API Keys for more details.

Request Body

JSON
{
  "Username": <Username here>,
  "Site": <Site here>,
  "CommandParams": {
    "Source Type": <Source Type here>,
    "JSON Object": <The JSON object contains fields and data here>
    "Start Time": <Start Time here>,
    "End Time": <End Time here>,
    "Top Number": <Top Number here>,
    "Search Condition": <Search Condition here>
  }
}

Body Parameters

Parameter Name

Type

Required/Optional

Description

Username

String

Required

The username of your D3 SOAR account.

Site

String

Required

The D3 SOAR site to run the remote command.

Start Time

DateTime

Required

The start of the date range for logs

End Time

DateTime

Required

The end of the date range for logs

Top Number

Number

Optional

Show the top number of logs

Search Condition

JSON Array

Optional

Use the searchable parameters to search for the desired log info.

Sample Request

SAMPLE DATA

JSON
{
  "Username": "Admin",
  "Site": "Security Operations",
  "CommandParams": {
    "Start Time": "2021-03-26 00:00:00",
    "End Time": "2023-03-26 00:00:00",
    "Top Number": 100,
    "Search Condition": [
      {
        "Type": "User",
        "Action": "Add"
      },
      {
        "Type": "User",
        "Action": "Edit"
      }
    ]
  }
}

Response

Response Fields

Field Name

Type

Description

error

String

The error message if the API request has failed.

returnData

String

The return data from the API request.

Sample Response

JSON
{
    "error": "",
    "returnData": "Successful",
    "returnData": {
      "AuditLogs": [
          {
              "_id": "64dec7c5c6488f2d542cde14",
              "ModifiedTime": "2023-08-18 01:22:13.757000",
              "ModifiedUtcTime": "2023-08-18 01:22:13.757000",
              "Type": "Web Service",
              "Action": "Application Start",
              "MachineName": "VDVPC-1"
          },
          {
              "_id": "64dec7a7a3185ce16ad3f205",
              "ModifiedTime": "2023-08-18 01:21:43.776000",
              "ModifiedUtcTime": "2023-08-18 01:21:43.776000",
              "Type": "Web Service",
              "Action": "Application End",
              "MachineName": "VDVPC-1"
          }
      ],
      "MonitorLogs": [
          {
              "_id": "64dfa912640633851577ecaa",
              "ModifiedTime": "2023-08-18 17:23:30.659000",
              "ModifiedUtcTime": "2023-08-18 17:23:30.659000",
              "Type": "Monitor",
              "Action": "Storage",
              "Data": {
                  "Storage": {
                      "TotalSize": 1152.01678466392,
                      "SqlServer": {
                          "StorageSize": 10.29022216392,
                          "StorageUsage": 9.23755644512
                      },
                      "MongoDb": 1141.7265625
                  }
              }
          }
      ]
  }
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.