Fortinet white logo
Fortinet white logo

Script Reference Guide

HTTP:get_unique_transaction_id()

HTTP:get_unique_transaction_id()

Returns a unique ID per transaction in history. Each ID is a string consisting of 32 hex digits, for example "b0b9fec0b4b28306a2bf4f63eb97520e".

Syntax

HTTP:get_unique_transaction_id();

Arguments

N/A

Events

Applicable in the following events:

  • HTTP events — HTTP_REQUEST, HTTP_RESPONSE, HTTP_DATA_REQUEST, HTTP_DATA_RESPONSE, BEFORE_AUTH.

  • WAF events — WAF_REQUEST_BEFORE_SCAN, WAF_RESPONSE_BEFORE_SCAN, WAF_REQUEST_ATTACK_DETECTED,WAF_RESPONSE_ATTACK_DETECTED.

Example

when HTTP_REQUEST {
   tuid=HTTP:get_unique_transaction_id()
   debug("Unique transaction id %s\n", tuid);
}

Supported Version

FortiADC version 7.4.x and later.

HTTP:get_unique_transaction_id()

HTTP:get_unique_transaction_id()

Returns a unique ID per transaction in history. Each ID is a string consisting of 32 hex digits, for example "b0b9fec0b4b28306a2bf4f63eb97520e".

Syntax

HTTP:get_unique_transaction_id();

Arguments

N/A

Events

Applicable in the following events:

  • HTTP events — HTTP_REQUEST, HTTP_RESPONSE, HTTP_DATA_REQUEST, HTTP_DATA_RESPONSE, BEFORE_AUTH.

  • WAF events — WAF_REQUEST_BEFORE_SCAN, WAF_RESPONSE_BEFORE_SCAN, WAF_REQUEST_ATTACK_DETECTED,WAF_RESPONSE_ATTACK_DETECTED.

Example

when HTTP_REQUEST {
   tuid=HTTP:get_unique_transaction_id()
   debug("Unique transaction id %s\n", tuid);
}

Supported Version

FortiADC version 7.4.x and later.