diff options
Diffstat (limited to 'plugin/business/tsg-http/src/tsg_logger.cpp')
| -rw-r--r-- | plugin/business/tsg-http/src/tsg_logger.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/plugin/business/tsg-http/src/tsg_logger.cpp b/plugin/business/tsg-http/src/tsg_logger.cpp index 7d9ecd3..e7875aa 100644 --- a/plugin/business/tsg-http/src/tsg_logger.cpp +++ b/plugin/business/tsg-http/src/tsg_logger.cpp @@ -255,9 +255,9 @@ int proxy_send_log(struct proxy_logger* handle, const struct proxy_log* log_msg) tfe_get_integer_by_cmsg(common_obj, cmsg, TFE_CMSG_COMMON_DIRECTION, "direction"); } - tfe_get_library_tags(log_msg->stream, common_obj, TFE_CMSG_SRC_IP_TAGS_IDS_ARR, "client_ip_tags"); - tfe_get_library_tags(log_msg->stream, common_obj, TFE_CMSG_DST_IP_TAGS_IDS_ARR, "server_ip_tags"); - tfe_get_library_tags(log_msg->stream, common_obj, TFE_CMSG_FQDN_TAGS_IDS_ARR, "server_fqdn_tags"); + tfe_get_library_tags(log_msg->stream, common_obj, TFE_CMSG_SRC_IP_TAGS_IDS_ARR, "source_ip_tags"); + tfe_get_library_tags(log_msg->stream, common_obj, TFE_CMSG_DST_IP_TAGS_IDS_ARR, "destination_ip_tags"); + tfe_get_library_tags(log_msg->stream, common_obj, TFE_CMSG_FQDN_TAGS_IDS_ARR, "destination_fqdn_tags"); if (http->req) { @@ -284,19 +284,19 @@ int proxy_send_log(struct proxy_logger* handle, const struct proxy_log* log_msg) cJSON_AddNumberToObject(common_obj, "address_type", 4); inet_ntop(AF_INET, &addr->tuple4_v4->saddr, src_ip_str, sizeof(src_ip_str)); inet_ntop(AF_INET, &addr->tuple4_v4->daddr, dst_ip_str, sizeof(dst_ip_str)); - cJSON_AddStringToObject(common_obj, "client_ip", src_ip_str); - cJSON_AddStringToObject(common_obj, "server_ip", dst_ip_str); - cJSON_AddNumberToObject(common_obj, "client_port", ntohs(addr->tuple4_v4->source)); - cJSON_AddNumberToObject(common_obj, "server_port", ntohs(addr->tuple4_v4->dest)); + cJSON_AddStringToObject(common_obj, "source_ip", src_ip_str); + cJSON_AddStringToObject(common_obj, "destination_ip", dst_ip_str); + cJSON_AddNumberToObject(common_obj, "source_port", ntohs(addr->tuple4_v4->source)); + cJSON_AddNumberToObject(common_obj, "destination_port", ntohs(addr->tuple4_v4->dest)); break; case TFE_ADDR_STREAM_TUPLE4_V6: cJSON_AddNumberToObject(common_obj, "address_type", 6); inet_ntop(AF_INET6, &addr->tuple4_v6->saddr, src_ip_str, sizeof(src_ip_str)); inet_ntop(AF_INET6, &addr->tuple4_v6->daddr, dst_ip_str, sizeof(dst_ip_str)); - cJSON_AddStringToObject(common_obj, "client_ip", src_ip_str); - cJSON_AddStringToObject(common_obj, "server_ip", dst_ip_str); - cJSON_AddNumberToObject(common_obj, "client_port", ntohs(addr->tuple4_v6->source)); - cJSON_AddNumberToObject(common_obj, "server_port", ntohs(addr->tuple4_v6->dest)); + cJSON_AddStringToObject(common_obj, "source_ip", src_ip_str); + cJSON_AddStringToObject(common_obj, "destination_ip", dst_ip_str); + cJSON_AddNumberToObject(common_obj, "source_port", ntohs(addr->tuple4_v6->source)); + cJSON_AddNumberToObject(common_obj, "destination_port", ntohs(addr->tuple4_v6->dest)); break; default: break; |
