Get D3 Log
LAST UPDATED: AUG 13, 2024
Retrieves audit and monitor logs.
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 the log entries, specified in UTC time. | 2024-03-04 00:00:00 |
End Time | Required | The end of the date range for the log entries, specified in UTC time. | 2024-08-25 01:00:00 |
Top Number | Optional | The quantity of logs to display, ordered with the most recent first. The maximum number of logs that can be displayed is 5000. | 3 |
Search Condition | Optional | Use the searchable parameters below to search for the desired log info. Types: IncidentPlaybook, EventPlaybook, CodelessPlaybook
Type: Integration
Type: UtilityCommand
Type: CommandSchedule
Type: Report
Type: DataIngestionFetchCommand
Types: DataIngestionWebhook, RemoteCommandWebhook
Type: GlobalList
Type: User
Type: Group
Type: Role
Type: Site
Type: Connection
Type: Web Service
Type: Monitor
|
CODE
|
Output
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
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
{
"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 |
| Required | The username of your D3 SOAR account. |
Site |
| Required | The D3 SOAR site to run the remote command. |
Start Time |
| Required | The start of the date range for logs |
End Time |
| Required | The end of the date range for logs |
Top Number |
| Optional | Show the top number of logs |
Search Condition |
| Optional | Use the searchable parameters to search for the desired log info. |
Sample Request
SAMPLE DATA
{
"Username": "Admin",
"Site": "Security Operations",
"CommandParams": {
"Start Time": "2024-03-04 00:00:00",
"End Time": "2024-08-25 00:00:00",
"Top Number": 3,
"Search Condition": [
{
"Type": "Web Service",
"Action": "Application Start"
},
{
"Type": "Monitor",
"Action": "Storage"
}
]
}
}
Response
Response Fields
Field Name | Type | Description |
---|---|---|
error |
| The error message if the API request has failed. |
returnData |
| The return data from the API request. |
Sample Response
{
"error": "",
"returnData": {
"AuditLogs": [
{
"_id": "64dec7c5c6488f2d542cde14",
"ModifiedTime": "2024-08-18 01:22:13.757000",
"ModifiedUtcTime": "2024-08-18 01:22:13.757000",
"Type": "Web Service",
"Action": "Application Start",
"MachineName": "VDVPC-1"
},
{
"_id": "64dec7a7a3185ce16ad3f205",
"ModifiedTime": "2024-08-18 01:21:43.776000",
"ModifiedUtcTime": "2024-08-18 01:21:43.776000",
"Type": "Web Service",
"Action": "Application End",
"MachineName": "VDVPC-1"
}
],
"MonitorLogs": [
{
"_id": "64dfa912640633851577ecaa",
"ModifiedTime": "2024-08-18 17:23:30.659000",
"ModifiedUtcTime": "2024-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
}
}
}
]
}
}