Quick start using ElasticSearch, Kibana with ASP.Net Core 2.0

Prerequisites

Create new project folder

mkdir aspnet.kibana
cd aspnet.kibana

Create new ASP.Net Core project

dotnet new mvc
dotnet add package Serilog -v 2.5.0
dotnet add package Serilog.Extensions.Logging -v 2.0.2
dotnet add package Serilog.Sinks.ElasticSearch -v 5.4.0
dotnet restore

Update Startup.cs file to enable logging to ElasticSearch

Use Docker to startup and use ElasticSearch and Kibana

docker pull nshou/elasticsearch-kibana
docker run -d -p 9200:9200 -p 5601:5601 nshou/elasticsearch-kibana
docker ps
Docker running container images.

Run your ASP.Net Core project

dotnet run

Setup and use Kibana

Configure index pattern in Kibana.
Web application logging information in Kibana.

Summary

--

--

Passion for Software and Enterprise Architecture. I like to play with Azure, Cloudflare and programming languages (C#, Rust, and JavaScript).

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cecil

Cecil

Passion for Software and Enterprise Architecture. I like to play with Azure, Cloudflare and programming languages (C#, Rust, and JavaScript).