C
C#11mo ago
Jacek Jaworek

✅ Sinking with Serilog to ElasticSearch with custom properties / template

Hi! Anyone here familiar with Serilog and sinking into ElasticSearch? long story short: I have asp.net 6.0 Web Api with Serilog logging, i want to add ElasticSearch sinking with custom additional props like: user.name, user.phone, class, exception, log_type, message, exception etc. But I don't know how to approach this.
4 Replies
MutableString
MutableString11mo ago
don't you have just to define an enrich section in the appsettings?
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View
dzejmson
dzejmson10mo ago
@Kapitan Boczek have you found the answer?
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server