Skip to Content
0
Aug 04, 2023 at 08:32 AM

How to make application-logs service write the remote_user field on log ?

74 Views

Hello,

I have several custom SAPUI5 applications with standalone AppRouters running on a Cloud Foundry SAP BTP subaccount. On every mta.yaml I've bound the AppRouter module to the application-logs service, standard plan.

When I open Kibana to see the logs however, I find that the remote_user element are always empty (i.e. the user who 'generated' the log entry is not logged).

In the past I've tried setting these user-defined variables on the AppRouter module:

LOG_REMOTE_USER true
LOG_SENSITIVE_CONNECTION_DATA true
XS_LOG_CONNECTION_DATA true
XS_LOG_USER true

to no avail. The user is never reported on the logs.

Can someone help me?

Thanks,
Pietro