Elasticsearch + Kibana
Local Development
Abschnitt betitelt „Local Development“https://www.elastic.co/guide/en/elasticsearch/reference/current/quickstart.html
- Docker muss installiert sein
- WSL aktiviert
curl -fsSL https://elastic.co/start-local | shElasticsearch: http://localhost:9200 Kibana: http://localhost:5601
API Key + Credentials notieren.
Installieren:
- Elastic.Serilog.Sinks
{ "Serilog": { "Using": [ ..., "Elastic.Serilog.Sinks" ], "WriteTo": [ { "Name": "Elasticsearch", "Args": { "bootstrapMethod": "Silent", "nodes": [ "http://localhost:9200" ], "apiKey": "T01OTXZaVUJjbFRSUGFBWjFrbnM6bVhiTG5KbnRRZEttYUlJQ2dvd1BJUQ==" //"dataStream": "my-app-logs" } } ] }}Unter Analytics -> Discover -> Data View -> Create a data view -> logs-dotnet-default
Rechts muss der Data Stream bereits angezeigt werden.