Hello Everyone,
This is my log json:
{"host":"ip-00-3001-1a08-test.us-west-1.compute.internal",
"short_message":"Sent message: {\"test\":{\"test\":\"31901300\",\"}}",
"full_message":"Sent message: {\"test\":{\"test\":\"31901300\"}}",
"timestamp":1.707740449767E9,
"level":6,
"facility":"logstash-abctest",
"simpleLogger":"test-abc",
"logSequence":9696969696,
"activity":"00000000222255544",
"logLevel":"INFO",
"logger":"test",
"senderType":"test",
"terminalID":"test300"}
My application is running on ECS fargate and I have added logConfiguration in my running tasks as below:
"logConfiguration": {
"logDriver": "awsfirelens",
"options": {
"LabelKeys": "activity,full_message,senderType,container_name,ecs_task_definition,source,ecs_cluster",
"Labels": "{job=\"firelens\"}",
"LineFormat": "json",
"Name": "grafana-loki",
"RemoveKeys": "container_id,ecs_task_arn",
"Url": "http://loki.endpoint:3100/loki/api/v1/push"
}
My question is: I have added log labels in the ‘LabelsKeys’ but I am only seeing limited lebels in Grafana UI Explorer, check Screenshot.
Thanks in advance for your valuable feedback.