C
C#14mo 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
FestivalDelGelato
don't you have just to define an enrich section in the appsettings?
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
dzejmson
dzejmson12mo ago
@Kapitan Boczek have you found the answer?
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?