How to implement Logging with Asp.Net Core, Elasticsearch and Kiabana
With this tutorial we will discuss about logging with ASP.NET core, Elasticsearch, Kibana and Serilog.
Introduction
Generally, logging required a lot of upfront work to get up and running. Many times developers left out logging entirely or it’s written to some obscure text file on a server which is difficult to access.
ElasticSearch and Kibana with docker made it easier to build an Logging functionality for an application. With ASP.NET core plugins like Serilog makes logging a lot easier than before.
Prerequisites
- Docker
- Visual Studio/Visual Studio Code
- .Net Core SDK 3.1 or later
Before we start the discussion about Logging with ASP.Net Core, let’s discuss about ElasticSearch, Kibana and their advantages:
ElasticSearch
Elasticsearch is an open source database that is well suited to indexing logs and analytical data.
Why we need ElasticSearch?
ElasticSearch is an opensource, free leading analytics solution and it has below benefits: