Fortinet white logo
Fortinet white logo

Rest API

7.2.0

Get /system/debug/log

Get /system/debug/log

Description

Returns the requested number of lines from the tail of one of the log files on the system.

Request Headers

Key

Value

Type

Description

Authorization Bearer <Authorization Token> String Authorization credential generated by FortiNAC
Content-Type (option 1) application/json String

Content-Type (option 2)

application/xml

Request Body Parameters

Name

Required

Type

logName Required String
tailLog Required Boolean
lastKnownLogLength

Required

Integer

LogLines

Required

String

hostName

Required

String

filter

Required

String

Sample Request

Request URL

GET https://10.106.94.152:8443/api/v2/system/debug/log

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

Sample Response

{

"status": "string",

"errorMessage": "string",

"linesReturned": 0,

"logLength": 0,

"logOutput": "string"

}

Get /system/debug/log

Get /system/debug/log

Description

Returns the requested number of lines from the tail of one of the log files on the system.

Request Headers

Key

Value

Type

Description

Authorization Bearer <Authorization Token> String Authorization credential generated by FortiNAC
Content-Type (option 1) application/json String

Content-Type (option 2)

application/xml

Request Body Parameters

Name

Required

Type

logName Required String
tailLog Required Boolean
lastKnownLogLength

Required

Integer

LogLines

Required

String

hostName

Required

String

filter

Required

String

Sample Request

Request URL

GET https://10.106.94.152:8443/api/v2/system/debug/log

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

Sample Response

{

"status": "string",

"errorMessage": "string",

"linesReturned": 0,

"logLength": 0,

"logOutput": "string"

}