How to discard fields in WebApiAuditAction #453
Unanswered
RajanModha
asked this question in
Q&A
Replies: 1 comment 4 replies
-
There is no easy way of composing different audit event types into one. I wonder why are you looking to have just one log per request? The usual way is to correlate the different events of a single request. For that, you could include the HttpContext's correlation ID (TraceIdentifier) on all the events via a Custom Action, so the events share a common unique ID per request. Actually, the WebApi audit event already includes the TraceIdentifier by default on the TraceId field |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to discard some fields like UserName, FormVariables etc. from Action of webApiAuditAction I'm able to set them to null but I want them to be discarded from my audit.
Also I'm using Audit.WebApi along with Audit.EntityFramework so both of them are creating audit events and due to that I'm having 2 audit logs for 1 request I want to append it in single event such that I can get only one log
Waiting for your help :)
Beta Was this translation helpful? Give feedback.
All reactions