Download a Log File

get

/ic/api/integration/v1/monitoring/logs/{id}

Download a log file identified by log file identifier.

Request

Supported Media Types
Path Parameters
  • Log file identifier. Valid values are icsflowlog, icsauditlog. The value icsdiagnosticlog has been deprecated since November 2020.
Query Parameters
  • Examples:

    {startdate :'2016-09-23 07:07:07' , enddate :'2016-09-23 08:17:07'}
    {timewindow:'3d'}
Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : schema
Type: array
Show Source

404 Response

Not found

500 Response

Server error
Back to Top

Examples

The following example shows how to download a monitoring log file for integrations to a specified file by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL. For more information about endpoint URL structure, see Send Requests.

Example: Download the diagnostic log file

This command downloads the diagnostic log file to the specified file mylog.zip in the same directory from which the command was run.

curl -X GET -H 'Authorization: Bearer access_token' -o 'mylog.zip' https://integration.us.oraclecloud.com/ic/api/integration/v1/monitoring/logs/icsdiagnosticlog

Required options for this cURL request:

  • -o '/path/mylog.zip': Location and name of the file in which to save the log file.

Example: Download the icsflowlog log file for the past day

This command downloads the icsflowlog log file to the specified file myicslog.zip in the same directory from which the command was run. Data for the past day is included.

curl -G -X GET -H 'Authorization: Bearer access_token' -o myicslog.zip --data-urlencode "q={timewindow: '1d'}" https://integration.us.oraclecloud.com/ic/api/integration/v1/monitoring/logs/icsflowlog

Example: Download the audit log file for the past 7 days

This command downloads the icsauditlog log file to the specified file myauditlog.zip in the same directory from which the command was run. Data for the past 7 days is included.

curl -G -X GET -H 'Authorization: Bearer access_token' -o myauditlog.zip --data-urlencode "q={startdate : '2016-09-23 00:00:00', enddate : '2016-09-30 00:00:00'}" https://integration.us.oraclecloud.com/ic/api/integration/v1/monitoring/logs/icsauditlog
Back to Top