How to implement Logging with Asp.Net Core, Elasticsearch and Kiabana

Debabrata Dash
7 min readJan 25, 2022

With this tutorial we will discuss about logging with ASP.NET core, Elasticsearch, Kibana and Serilog.

Photo by Gene Gallin on Unsplash

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

  1. Docker
  2. Visual Studio/Visual Studio Code
  3. .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:

--

--

Debabrata Dash

At heart an entrepreneurial, learner, innovator. A dreamer with a passion to excel. Read all stories on medium.