B Log Attribute Details
The following table lists the log attribute details for UDR. These details are
applicable to Provisioning Gateway.
Table B-1 Log Attribute Details
Log Attribute | Details | Example Value | Data Type | Notes (source) |
---|---|---|---|---|
thread | Thread Name Internal by Spring boot | XNIO-1 task-1 | String | log4j |
level | Log Level of log printed | WARN | String | log4j |
loggerName | Class which printed the log | ocudr.udr.services.service.DbHandler | String | log4j |
message | Outputs the application supplied message | Subscriber does not exist | String | application |
endOfBatch | Log4j2 Internal | false | boolean | log4j |
loggerFqcn | Log4j2 Internal | org.apache.logging.slf4j.Log4jLogger | String | log4j |
instant | Epoch time | {"epochSecond":1599703750,"nanoOfSecond":210064000} | Object | log4j |
threadId | Outputs the ID of the thread that generated the logging event, set internally by Log4j2 | 23 | Integer | log4j |
threadPriority | Thread Priority set internally by Log4j2 | 5 | Integer | log4j |
messageTimestamp | Timestamp when log was printed | 21-02-17 07:36:06.343+0000 | String | application |
application | NF Application Name | ocudr | String | application |
engVersion | Engineering version of software | 1.10.20 | String | application |
mktgVersion | Marketing version of software | 1.10.20.0.0 | String | application |
microservice | Microservice name | ocudr-nudr-drservice | String | application |
vendor | Vendor Name | Oracle | String | application |
subscriberId | SubscriberId for which request received | msisdn-1111111113 | String | application |
resourceId | Request Uri | nudr-group-id-map/v1/nf-group-ids | String | application |
resultCode | Response statusCode | 404 | String | application |
ocLogId | Inter NF logId for tracing | 1613547369374_225_ocudr-ingressgateway-6f585c76d4-tp622 | String | application |
sbiCorrelationHeader | SBI Correlation Header for request received | msisdn-1111111113 | String | application |
requestType | request type received | GET | String | application |
kubernetes.container_name | Container name generating log | nudr-dr-service | String | fluentd |
kubernetes.namespace_name | Namespace of service | ocudr | String | fluentd |
kubernetes.pod_name | Pod name | ocudr-nudr-drservice-7f8c47f5c9-flkmz | String | fluentd |
kubernetes.container_image | Container image | cne-170-ga-bastion-1:5000/ocudr/nudr_datarepository_service:1.9.50 | String | fluentd |
kubernetes.container_image_id | Container image ID | cne-170-ga-bastion-1:5000/ocudr/nudr_datarepository_service@sha256:1141f245a3a437f1423496aebf616a6d3315e22ad09904a868bf1b471759b616 | String | fluentd |
kubernetes.pod_id | POD id | 6dfa91f8-2d0a-4d8c-a339-381ce98264df | String | fluentd |
kubernetes.host | Worker node name | cne-170-ga-k8s-node-8 | String | fluentd |
kubernetes.namespace_id | Unique namespace ID assigned by K8 | d932a8ae-54e9-4df1-8e30-e0335f0b1303 | String | fluentd |
labels | All the labels on pod that generate the logs e.g. |
"labels": { "pod-template-hash": "7f8c47f5c9", "app_kubernetes_io/instance": "ocudr", "app_kubernetes_io/managed-by": "Tiller", "app_kubernetes_io/name": "nudr-drservice", "app_kubernetes_io/part-of": "ocudr", "app_kubernetes_io/version": "1.6.0.0.0", "helm_sh/chart": "nudr-drservice-1.9.50", "io_kompose_service": "nudr-drservice" } |
object | fluentd |
originHost | diameter client fqdn | diamcli1.oracle.com | String |
Application Note: only in diameterproxy and diameter-gateway |
originRealm | diameter client realm | oracle.com | String |
Application Note: only in diameter-gateway |
serviceIndications | diameter service indications for GET operations | "serviceIndications" : [ "CamiantUserData", "CamiantStateData"] | Array |
Application Note: only in diameterproxy |
Example: Log Under
Analysis
{"instant":{"epochSecond":1613547366,"nanoOfSecond":343417698},"thread":"XNIO-1 task-1","level":"WARN","loggerName":"ocudr.udr.services.service.DbHandler","message":"Subscriber does not exist","endOfBatch":false,"loggerFqcn":"org.apache.logging.slf4j.Log4jLogger","threadId":46,"threadPriority":5,"messageTimestamp":"21-02-17 07:36:06.343+0000","application":"ocudr","sbiCorrelationHeader":"msisdn-1111111113","engVersion":"1.10.20","mktgVersion":"1.10.20.0.0","microservice":"ocudr-nudr-drservice","vendor":"Oracle","subscriberId":"msisdn-1111111113","resourceId":"nudr-group-id-map/v1/nf-group-ids","resultCode":"404","ocLogId":"1613547369374_225_ocudr-ingressgateway-6f585c76d4-tp622","requestType":"GET"}
Example: Log From
Kibana
{
"_index": "logstash-2021-02-19",
"_type": "_doc",
"_id": "yyQXuHcBwFjE8wmhickN",
"_version": 1,
"_score": 0,
"_source": {
"stream": "stdout",
"docker": {
"container_id": "b1b78faa1043132f77148f16777e60b1db8ae30e9e6b5c2f5af45248063f7d6a"
},
"kubernetes": {
"container_name": "nudr-drservice",
"namespace_name": "bharathudr1",
"pod_name": "bharathudr1-nudr-drservice-7bd66864c6-fw7cq",
"container_image": "cne-172-bastion-1:5000/ocudr/nudr_datarepository_service:ocLogIdTest1",
"container_image_id": "cne-172-bastion-1:5000/ocudr/nudr_datarepository_service@sha256:24875dad7fd363bcb8ec300b007491b2259796e152446fd3d707b17f62fcd6b4",
"pod_id": "ea92c753-48af-4b31-9356-1ce24f27025e",
"host": "cne-172-k8s-node-10",
"labels": {
"pod-template-hash": "7bd66864c6",
"app_kubernetes_io/instance": "bharathudr1",
"app_kubernetes_io/managed-by": "Helm",
"app_kubernetes_io/name": "nudr-drservice",
"app_kubernetes_io/part-of": "ocudr",
"app_kubernetes_io/version": "1.6.0.0.0",
"helm_sh/chart": "nudr-drservice-1.10.20",
"io_kompose_service": "nudr-drservice"
},
"master_url": "https://10.233.0.1:443/api",
"namespace_id": "260e3d4a-d455-4afc-9cff-9aaf8eba79d1"
},
"instant": {
"epochSecond": 1613701232,
"nanoOfSecond": 431593919
},
"thread": "XNIO-1 task-1",
"level": "WARN",
"loggerName": "ocudr.udr.services.service.DbHandler",
"message": "Subscriber does not exist",
"endOfBatch": false,
"loggerFqcn": "org.apache.logging.slf4j.Log4jLogger",
"threadId": 46,
"threadPriority": 5,
"messageTimestamp": "21-02-19 02:20:32.431+0000",
"application": "bharathudr1",
"engVersion": "1.10.20",
"mktgVersion": "1.6.0.0.0",
"microservice": "bharathudr1-nudr-drservice",
"vendor": "Oracle",
"subscriberId": "imsi-100000002",
"sbiCorrelationHeader": "imsi-100000002",
"resourceId": "nudr-group-id-map-prov/v1/slf-group",
"resultCode": "404",
"ocLogId": "1613701211520_2220_bharathudr1-ingressgateway-7d7659c58b-5k6b2",
"requestType": "GET",
"@timestamp": "2021-02-19T02:20:32.432795705+00:00",
"tag": "kubernetes.var.log.containers.bharathudr1-nudr-drservice-7bd66864c6-fw7cq_bharathudr1_nudr-drservice-b1b78faa1043132f77148f16777e60b1db8ae30e9e6b5c2f5af45248063f7d6a.log"
},
"fields": {
"@timestamp": [
"2021-02-19T02:20:32.432Z"
],
"timestamp": []
},
"highlight": {
"resultCode": [
"@kibana-highlighted-field@404@/kibana-highlighted-field@"
],
"message": [
"@kibana-highlighted-field@Subscriber@/kibana-highlighted-field@ @kibana-highlighted-field@does@/kibana-highlighted-field@ @kibana-highlighted-field@not@/kibana-highlighted-field@ @kibana-highlighted-field@exist@/kibana-highlighted-field@"
],
"kubernetes.namespace_name": [
"@kibana-highlighted-field@bharathudr1@/kibana-highlighted-field@"
]
}
}