Replies: 4 comments 7 replies
-
HI @tputs001 In general, As for ignoring certain properties, we have Could you post a minimal and complete example of the issue you mentioned? |
Beta Was this translation helpful? Give feedback.
-
Hi @krajek Thank you for the quick response. I actually am going to close this issue, I managed to figure it out. Thank you again! |
Beta Was this translation helpful? Give feedback.
-
I guess I'm doing something wrong, because it doesn't seem to be working for me. I'm trying to exclude the cookie and server variables (sv) from the exception. Is this not right? Enrich.WithExceptionDetails(new DestructuringOptionsBuilder().WithFilter(new IgnorePropertyByNameExceptionFilter("cookie", "sv"))) Examples: event.Properties.cookie: LPSID-12757882 |
Beta Was this translation helpful? Give feedback.
-
No I didn't |
Beta Was this translation helpful? Give feedback.
-
Question
I'm trying to control the properties that Serilog.Exception is generating and sending back to our Kibana. I want to just keep the top level that Serilog.Exception generates. Can you help provide some guidance on how to filter out properties like
InnerException
andCall
?I think I can use the
WithFilter(someFilter)
method, but I'm not sure whatsome filter
is suppose to be. I was trying to find some examples but I can't find any. I also tried to control the DestructuringDepth by setting it to 1, but it seems to still go several layers deep.Any help would be greatly appreciated, thank you.
Beta Was this translation helpful? Give feedback.
All reactions