| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| http_logging_config | enable_httplog | boolean | |
| http_logging_config | httplog_format | enum | Available values:
|
| http_logging_config | vip_option | boolean | Sets whether the VIP on which the HTTP request is received is contained in the HTTP access log message. |
| http_logging_config | host_option | boolean | Sets whether the host header value in the HTTP request is contained in the HTTP access log message. |
| http_logging_config | custom_format | string | The symbols to configure the custom format are as follows (for example "%c %d"): %a Cache result * %b Bytes returned by proxy to client %c Client IP address %d Date stamp %e HTTP MIME type information %f "PROXY_LOG", tag can be used to distinguish with other logs. %g Time stamp (military format) %h Hostname as pulled from client host %i user-agent %m HTTP method %n full date/time stamp[MM/DD/YYYY:HH:MM:SS +/-OOOO] %k Session cookies %p Proxy IP address, VIP %q A single double quote %r HTTP return status code %s Real Service IP address %t Unix time stamp %u Request URL %v Protocol version %w Referer %U Full URL %R Elapsed time, time-taken %T time format compatible with W3C (GMT) %o port of virtual service %N full date/time stamp[DD/MMM/YYYY:HH:MM:SS +/-0000] %D SSL Session ID %E Error Log %P Real Service port %F appliance's IP address that is used to connect backend real server %O APV's port that is used to connect backend real server [* Cache result include: NONE (default value), TCP_HIT (cache hits), TCP_MISS (cache miss), TCP_REFRESH_MISS (stale cached content, refreshed by server), TCP_CLIENT_REFRESH (validated client cached content), TCP_IMS_HIT (cache hit, 304 (Not Modified) response) and TCP_IMS_MISS (conditional request, stale cached content, refreshed by origin server)]. |
| slb_tran_logging_config | enable_lognat | boolean | Enables the system to generate SLB address translation logs according to the custom content format. |
| slb_tran_logging_config | custom_content_format | string | All characters except the following ones are displayed as their original forms: %t: Display the layer 4 protocol type. %s: Display the source IP address before translation. %p: Display the source port before translation. %d: Display the destination IP address before translation. %o: Display the destination port before translation. %S: Display the source IP address after translation. %P: Display the source port after translation. %D: Display the destination IP address after translation. %O: Display the destination port after translation. %a: Display "SETUP", indicating the connections have been established between the client's IP address and the VIP and between the VIP and the real service's IP address. %%: Display the character "%". |
| rfc5424_logging_config | enable_rfc5424 | boolean | Enables the system to generate system logs according to the RFC 5424 standard format. |
| rfc5424_logging_config | enable_rfc5424_appname | boolean | Sets whether to customize the value of the APPNAME field values d in the header of the RFC 5424-compliant system log. When disabled, the value of the APPNAME field will be "-". |
| rfc5424_logging_config | rfc5424_appname | string | Sets the value of the APPNAME field in the header of the RFC 5424-compliant system log. |
| rfc5424_logging_config | msgid_list | asso |
{
"LogAdvanced": {
"meta": {
"abstract": false,
"verbose_name": Advanced Settings,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
| Method | GET |
|---|---|
| URL | https://10.8.6.91:9997/rest/apv/admintools/log_mgmt/LogAdvanced/meta |
| Request Data | None |
| Response Data | {
"LogAdvanced": {
"meta": {
"abstract": false,
"verbose_name": "Advanced Settings"
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": "HTTP Logging",
"field_name": "enable_httplog"
},
{
"verbose_name": "HTTP Logging Format",
"field_name": "httplog_format"
},
{
"verbose_name": "VIP Option",
"field_name": "vip_option"
},
{
"verbose_name": "Host Option",
"field_name": "host_option"
},
{
"verbose_name": "Custom Format",
"field_name": "custom_format"
}
],
"group_name": "http_logging_config"
},
{
"fields": [
{
"verbose_name": "SLB Address Translation",
"field_name": "enable_lognat"
},
{
"verbose_name": "Custom Content Format",
"field_name": "custom_content_format"
}
],
"group_name": "slb_tran_logging_config"
},
{
"fields": [
{
"verbose_name": "RFC5424 Syslog",
"field_name": "enable_rfc5424"
},
{
"verbose_name": "RFC5424 Appname",
"field_name": "enable_rfc5424_appname"
},
{
"verbose_name": "Custom Appname",
"field_name": "rfc5424_appname"
},
{
"verbose_name": "RFC5424 MSGID List",
"field_name": "msgid_list"
}
],
"group_name": "rfc5424_logging_config"
}
]
}
} |
| Comment | None |
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|
{
"config_change": true|false,
"msg": <msg>
}
| Parameter | Type | Description |
|---|---|---|
| config_change | bool | Whether the action causes configuration change. |
| msg | sring | Empty when action is performed successfully, otherwise it represents the error info. |
| Method | POST |
|---|---|
| URL | https://10.8.6.91:9997/rest/apv/admintools/log_mgmt/LogAdvanced/_Clear |
| Request Data | None |
| Response Data | {
"config_change": true,
"refresh_page": false,
"msg": ""
} |
| Comment | None |
| Parameter | Type | Description |
|---|---|---|
| field_group_name | URI | (optional) Target field group name to query. Available names are: http_logging_config, slb_tran_logging_config, rfc5424_logging_config, Notice: There could only be one field_group_name or field_name in the URL. And if both field_group_name and field_name are not specified, will try to query default field_group data. |
| field_name | URI | (optional) Target field name to query. Available names are: enable_httplog, httplog_format, vip_option, host_option, custom_format, enable_lognat, custom_content_format, enable_rfc5424, enable_rfc5424_appname, rfc5424_appname, msgid_list, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| http_logging_config | enable_httplog | boolean | |
| http_logging_config | httplog_format | enum | Available values:
|
| http_logging_config | vip_option | boolean | Sets whether the VIP on which the HTTP request is received is contained in the HTTP access log message. |
| http_logging_config | host_option | boolean | Sets whether the host header value in the HTTP request is contained in the HTTP access log message. |
| http_logging_config | custom_format | string | The symbols to configure the custom format are as follows (for example "%c %d"): %a Cache result * %b Bytes returned by proxy to client %c Client IP address %d Date stamp %e HTTP MIME type information %f "PROXY_LOG", tag can be used to distinguish with other logs. %g Time stamp (military format) %h Hostname as pulled from client host %i user-agent %m HTTP method %n full date/time stamp[MM/DD/YYYY:HH:MM:SS +/-OOOO] %k Session cookies %p Proxy IP address, VIP %q A single double quote %r HTTP return status code %s Real Service IP address %t Unix time stamp %u Request URL %v Protocol version %w Referer %U Full URL %R Elapsed time, time-taken %T time format compatible with W3C (GMT) %o port of virtual service %N full date/time stamp[DD/MMM/YYYY:HH:MM:SS +/-0000] %D SSL Session ID %E Error Log %P Real Service port %F appliance's IP address that is used to connect backend real server %O APV's port that is used to connect backend real server [* Cache result include: NONE (default value), TCP_HIT (cache hits), TCP_MISS (cache miss), TCP_REFRESH_MISS (stale cached content, refreshed by server), TCP_CLIENT_REFRESH (validated client cached content), TCP_IMS_HIT (cache hit, 304 (Not Modified) response) and TCP_IMS_MISS (conditional request, stale cached content, refreshed by origin server)]. |
| slb_tran_logging_config | enable_lognat | boolean | Enables the system to generate SLB address translation logs according to the custom content format. |
| slb_tran_logging_config | custom_content_format | string | All characters except the following ones are displayed as their original forms: %t: Display the layer 4 protocol type. %s: Display the source IP address before translation. %p: Display the source port before translation. %d: Display the destination IP address before translation. %o: Display the destination port before translation. %S: Display the source IP address after translation. %P: Display the source port after translation. %D: Display the destination IP address after translation. %O: Display the destination port after translation. %a: Display "SETUP", indicating the connections have been established between the client's IP address and the VIP and between the VIP and the real service's IP address. %%: Display the character "%". |
| rfc5424_logging_config | enable_rfc5424 | boolean | Enables the system to generate system logs according to the RFC 5424 standard format. |
| rfc5424_logging_config | enable_rfc5424_appname | boolean | Sets whether to customize the value of the APPNAME field values d in the header of the RFC 5424-compliant system log. When disabled, the value of the APPNAME field will be "-". |
| rfc5424_logging_config | rfc5424_appname | string | Sets the value of the APPNAME field in the header of the RFC 5424-compliant system log. |
| rfc5424_logging_config | msgid_list | asso |
{
"LogAdvanced": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"LogAdvanced": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"LogAdvanced": {
<field>:<value>,
}
}
| Method | GET |
|---|---|
| URL | https://10.8.6.91:9997/rest/apv/admintools/log_mgmt/LogAdvanced/http_logging_config |
| Request Data | None |
| Response Data | {
"LogAdvanced": {
"enable_httplog": true,
"httplog_format": "squid",
"vip_option": false,
"host_option": true
}
} |
| Comment | None |
| Method | GET |
|---|---|
| URL | https://10.8.6.91:9997/rest/apv/admintools/log_mgmt/LogAdvanced/enable_httplog |
| Request Data | None |
| Response Data | {
"LogAdvanced": {
"enable_httplog": true
}
} |
| Comment | None |
{
<field_name>:<value>
}
When field name is specified in URL:
Notice: The fields not provided are left untouched.
{
<field_name1>:<value1>,
<field_name2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| field_name | URI | (optional) Target field name to update. Available field names are: enable_httplog, httplog_format, vip_option, host_option, custom_format, enable_lognat, custom_content_format, enable_rfc5424, enable_rfc5424_appname, rfc5424_appname, msgid_list, |
| Field Name | Type | Description |
|---|---|---|
| enable_httplog | boolean | |
| httplog_format | enum | Available values:
|
| vip_option | boolean | Sets whether the VIP on which the HTTP request is received is contained in the HTTP access log message. |
| host_option | boolean | Sets whether the host header value in the HTTP request is contained in the HTTP access log message. |
| custom_format | string | The symbols to configure the custom format are as follows (for example "%c %d"): %a Cache result * %b Bytes returned by proxy to client %c Client IP address %d Date stamp %e HTTP MIME type information %f "PROXY_LOG", tag can be used to distinguish with other logs. %g Time stamp (military format) %h Hostname as pulled from client host %i user-agent %m HTTP method %n full date/time stamp[MM/DD/YYYY:HH:MM:SS +/-OOOO] %k Session cookies %p Proxy IP address, VIP %q A single double quote %r HTTP return status code %s Real Service IP address %t Unix time stamp %u Request URL %v Protocol version %w Referer %U Full URL %R Elapsed time, time-taken %T time format compatible with W3C (GMT) %o port of virtual service %N full date/time stamp[DD/MMM/YYYY:HH:MM:SS +/-0000] %D SSL Session ID %E Error Log %P Real Service port %F appliance's IP address that is used to connect backend real server %O APV's port that is used to connect backend real server [* Cache result include: NONE (default value), TCP_HIT (cache hits), TCP_MISS (cache miss), TCP_REFRESH_MISS (stale cached content, refreshed by server), TCP_CLIENT_REFRESH (validated client cached content), TCP_IMS_HIT (cache hit, 304 (Not Modified) response) and TCP_IMS_MISS (conditional request, stale cached content, refreshed by origin server)]. |
| enable_lognat | boolean | Enables the system to generate SLB address translation logs according to the custom content format. |
| custom_content_format | string | All characters except the following ones are displayed as their original forms: %t: Display the layer 4 protocol type. %s: Display the source IP address before translation. %p: Display the source port before translation. %d: Display the destination IP address before translation. %o: Display the destination port before translation. %S: Display the source IP address after translation. %P: Display the source port after translation. %D: Display the destination IP address after translation. %O: Display the destination port after translation. %a: Display "SETUP", indicating the connections have been established between the client's IP address and the VIP and between the VIP and the real service's IP address. %%: Display the character "%". |
| enable_rfc5424 | boolean | Enables the system to generate system logs according to the RFC 5424 standard format. |
| enable_rfc5424_appname | boolean | Sets whether to customize the value of the APPNAME field values d in the header of the RFC 5424-compliant system log. When disabled, the value of the APPNAME field will be "-". |
| rfc5424_appname | string | Sets the value of the APPNAME field in the header of the RFC 5424-compliant system log. |
All configuration fields and their values are replied:
{
"LogAdvanced": {
<field1>:<value1>,
<field2>:<value2>,
...
<field_group1>: {
<field3>:<value3>,
<field4>:<value4>,
...
},
<field_group2>: {
<field5>:<value5>,
<field6>:<value6>,
...
},
...
}
}
| Method | PUT |
|---|---|
| URL | https://10.8.6.91:9997/rest/apv/admintools/log_mgmt/LogAdvanced/httplog_format |
| Request Data | {
"httplog_format": "common"
} |
| Response Data | {
"LogAdvanced": {
"enable_httplog": true,
"httplog_format": "common",
"vip_option": false,
"host_option": true,
"enable_lognat": false,
"enable_rfc5424": false,
"enable_rfc5424_appname": false,
"msgid_list": []
}
} |
| Comment | None |
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"LogAdvanced": {
"instance_id":<instance_id>,
"msgid_list":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| sys_log_id | uint32 | Sets the internal ID of a system log. |
| cus_log_id | string | Sets the ID that will be assigned to the MSGID field in the header of the RFC5424 compliant system log. |
{
"RFC5424MSGIDEntry": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}