You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by GitBox <gi...@apache.org> on 2022/04/15 04:45:30 UTC
[GitHub] [knox] moresandeep opened a new pull request, #558: KNOX-2730 - Fix missing Correlation id in audit logs
moresandeep opened a new pull request, #558:
URL: https://github.com/apache/knox/pull/558
## What changes were proposed in this pull request?
There was a change a while ago due to which correlation id in audit logs was missing in the last audit message for a request. This PR fixes that issue.
## How was this patch tested?
This patch was tested locally on local Knox instance.
**Before Patch**
```
22/04/14 02:17:24 ||6bb6e07e-1540-47e9-9e07-7798563fe125|audit|[0:0:0:0:0:0:0:1]|WEATHER||||access|uri|/gateway/sandbox/weather/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14|unavailable|Request method: GET
22/04/14 02:17:24 ||6bb6e07e-1540-47e9-9e07-7798563fe125|audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||authentication|uri|/gateway/sandbox/weather/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14|success|
22/04/14 02:17:24 ||6bb6e07e-1540-47e9-9e07-7798563fe125|audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||authentication|uri|/gateway/sandbox/weather/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14|success|Groups: []
22/04/14 02:17:24 ||6bb6e07e-1540-47e9-9e07-7798563fe125|audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||identity-mapping|principal|guest|success|Groups: []
22/04/14 02:17:24 ||6bb6e07e-1540-47e9-9e07-7798563fe125|audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||dispatch|uri|http://api.openweathermap.org:80/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14&user.name=guest|unavailable|Request method: GET
22/04/14 02:17:25 ||6bb6e07e-1540-47e9-9e07-7798563fe125|audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||dispatch|uri|http://api.openweathermap.org:80/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14&user.name=guest|success|Response status: 200
22/04/14 02:17:25 |||audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||access|uri|/gateway/sandbox/weather/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14|success|Response status: 200
```
**After Patch**
```
22/04/15 00:31:58 ||3a931834-3751-40f9-a4d7-aa6232e8bde4|audit|[0:0:0:0:0:0:0:1]|WEATHER||||access|uri|/gateway/sandbox/weather/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14|unavailable|Request method: GET
22/04/15 00:31:58 ||3a931834-3751-40f9-a4d7-aa6232e8bde4|audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||authentication|uri|/gateway/sandbox/weather/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14|success|
22/04/15 00:31:58 ||3a931834-3751-40f9-a4d7-aa6232e8bde4|audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||authentication|uri|/gateway/sandbox/weather/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14|success|Groups: []
22/04/15 00:31:58 ||3a931834-3751-40f9-a4d7-aa6232e8bde4|audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||identity-mapping|principal|guest|success|Groups: []
22/04/15 00:31:59 ||3a931834-3751-40f9-a4d7-aa6232e8bde4|audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||dispatch|uri|http://api.openweathermap.org:80/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14&user.name=guest|unavailable|Request method: GET
22/04/15 00:32:00 ||3a931834-3751-40f9-a4d7-aa6232e8bde4|audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||dispatch|uri|http://api.openweathermap.org:80/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14&user.name=guest|success|Response status: 200
22/04/15 00:32:00 ||3a931834-3751-40f9-a4d7-aa6232e8bde4|audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||access|uri|/gateway/sandbox/weather/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14|success|Response status: 200
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@knox.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [knox] moresandeep merged pull request #558: KNOX-2730 - Fix missing Correlation id in audit logs
Posted by GitBox <gi...@apache.org>.
moresandeep merged PR #558:
URL: https://github.com/apache/knox/pull/558
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@knox.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org