Missing organization/space/app name in application task logs coming from Aggregate Syslog Drain
search cancel

Missing organization/space/app name in application task logs coming from Aggregate Syslog Drain

book

Article ID: 298432

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

Application logs will be streamed to syslog drain endpoints which are configured in TAS Settings -> System Logging -> Aggregate syslog drain destinations. The streamed logs will be tagged with metadata including organization.space.app names. For example, the following logs from application app-usage-worker (in organization system, space system) are tagged with system.system.app-usage-worker. 
2023-11-15T07:29:49.170027+00:00 system.system.app-usage-worker 07a79ab8-5ad1-4370-a8f1-2d27275f66a1[[APP/PROC/WEB/0]] [Worker(host:590d533a-ed6a-429f-6220-2b42 pid:16)] Job Jobs::MetricEmitterJob#emit_metrics_without_delay (id=66615) RUNNING
2023-11-15T07:29:49.170063+00:00 system.system.app-usage-worker 07a79ab8-5ad1-4370-a8f1-2d27275f66a1[[APP/PROC/WEB/0]] I, [2023-11-15T07:29:49.169481 #16]  INFO -- : 2023-11-15T07:29:49+0000: [Worker(host:590d533a-ed6a-429f-6220-2b42 pid:16)] Job Jobs::MetricEmitterJob#emit_metrics_without_delay (id=66615) RUNNING
However logs from application task are not tagged with organization.space.app names.
2023-11-15T07:28:54.045998+00:00 system.system.app-usage-worker 07a79ab8-5ad1-4370-a8f1-2d27275f66a1[[APP/PROC/WEB/0]] I, [2023-11-15T07:28:54.045738 #16]  INFO -- : 2023-11-15T07:28:54+0000: [Worker(host:590d533a-ed6a-429f-6220-2b42 pid:16)] 1 jobs processed at 3.6792 j/s, 0 failed
2023-11-15T07:29:36.934869+00:00 - 07a79ab8-5ad1-4370-a8f1-2d27275f66a1[[APP/TASK/MYTASK/0]] this is a test TASK ...
2023-11-15T07:29:36.938925+00:00 - 07a79ab8-5ad1-4370-a8f1-2d27275f66a1[[APP/TASK/MYTASK/0]] Exit status 0


Environment

Product Version: 2.13

Resolution

Engineering team has determined this expected behavior at the moment, however they are working on a change for this feature. It is a larger change that will include changes to Diego and Cloud Controller, so it will take a bit longer to release a fix.