TSG-23072 Change the Policies-Manipulation log field from proxy_rule_list to proxy_rule_uuid_list
TSG-23090 Change the action field in the Metric structure proxy_rule_hits to the string type
This commit is contained in:
@@ -813,7 +813,7 @@ void doh_send_metric_log(const struct tfe_stream * stream, struct doh_ctx *ctx,
|
||||
|
||||
fieldstat->tags[thread_id][TAG_VSYS_ID].value_longlong = ctx->result->vsys_id;
|
||||
fieldstat->tags[thread_id][TAG_RULE_ID].value_str = ctx->result->config_uuid_string;
|
||||
fieldstat->tags[thread_id][TAG_ACTION].value_longlong = 48;
|
||||
fieldstat->tags[thread_id][TAG_ACTION].value_str = "manipulate";
|
||||
fieldstat->tags[thread_id][TAG_SUB_ACTION].value_str = "redirect";
|
||||
|
||||
tfe_stream_info_get(stream, INFO_FROM_DOWNSTREAM_RX_OFFSET, &c2s_byte_num, sizeof(c2s_byte_num));
|
||||
|
||||
@@ -476,7 +476,7 @@ int doh_send_log(struct doh_conf *handle, const struct tfe_http_session *http, c
|
||||
per_hit_obj = cJSON_Duplicate(common_obj, 1);
|
||||
config_id[0]=result[i].config_uuid_string;
|
||||
proxy_rule_list = cJSON_CreateStringArray((const char **)config_id, 1);
|
||||
cJSON_AddItemToObject(per_hit_obj, "proxy_rule_list", proxy_rule_list);
|
||||
cJSON_AddItemToObject(per_hit_obj, "proxy_rule_uuid_list", proxy_rule_list);
|
||||
cJSON_AddStringToObject(per_hit_obj, "proxy_action", "redirect");
|
||||
|
||||
log_payload = cJSON_PrintUnformatted(per_hit_obj);
|
||||
|
||||
Reference in New Issue
Block a user