Adding x-request-id in microgateway logs

Is there a way to log x-request-id: value coming into Microgateway logs ?

0 2 744
2 REPLIES 2

Former Community Member
Not applicable

x-request-id is already logged in MG logs.

1543773910407 info sourceRequest m=GET, u=/httpbin/get, h=localhost:8000, r=::1:58040, i=cef02970-f65c-11e8-ae9d-d737bae44822
1543773912414 info targetRequest m=GET, u=/get, h=httpbin.org:NaN, i=cef02970-f65c-11e8-ae9d-d737bae44822

In this case the request-id is i=cef02970-f65c-11e8-ae9d-d737bae44822

Thanks @srinandans. Is there a way to include header x-application-id along with the existing entries ? What we are trying to understand if we can add entries to the existing logging offered by MG.