2

Currently, I'm using Serilog in my ASP.NET 5 project to log all my logs, and 2 Sinks: SQL Server and ElasticSearch.

Each log has a field "Level" by default, and in SQL Server it is written as integer, but it tries to write it as text to Elasticsearch, and the problem is, that my index is configured to store level property as integer (because another services store it as an integer). I would like to know if there is any way to configure Serilog ElasticSearch to send logs with field "level" as int, not a text?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.