CrispyWaffle.ElasticSearch
10.5.13
dotnet add package CrispyWaffle.ElasticSearch --version 10.5.13
NuGet\Install-Package CrispyWaffle.ElasticSearch -Version 10.5.13
<PackageReference Include="CrispyWaffle.ElasticSearch" Version="10.5.13" />
<PackageVersion Include="CrispyWaffle.ElasticSearch" Version="10.5.13" />
<PackageReference Include="CrispyWaffle.ElasticSearch" />
paket add CrispyWaffle.ElasticSearch --version 10.5.13
#r "nuget: CrispyWaffle.ElasticSearch, 10.5.13"
#:package CrispyWaffle.ElasticSearch@10.5.13
#addin nuget:?package=CrispyWaffle.ElasticSearch&version=10.5.13
#tool nuget:?package=CrispyWaffle.ElasticSearch&version=10.5.13
CrispyWaffle.ElasticSearch
Part of Crispy Waffle, a toolkit for .NET projects.
CrispyWaffle.ElasticSearch connects CrispyWaffle to Elasticsearch through the official Elastic.Clients.Elasticsearch client. It provides:
- A log provider that indexes every log message as a document and deletes old log documents once, shortly after startup.
- A small wrapper for reading and writing documents.
- Index helpers that derive index names from your types.
Use it when you want CrispyWaffle logs searchable in Elasticsearch or Kibana, or when you need simple document storage without writing client code yourself.
| Package | CrispyWaffle.ElasticSearch |
| Namespace | CrispyWaffle.ElasticSearch.Log, CrispyWaffle.ElasticSearch.Helpers, CrispyWaffle.ElasticSearch.Utils.Communications |
| Install | dotnet add package CrispyWaffle.ElasticSearch |
| Depends on | CrispyWaffle, CrispyWaffle.Configuration, Elastic.Clients.Elasticsearch |
Supported frameworks
This package targets .NET Standard 2.0, .NET Standard 2.1, .NET 8.0, .NET 9.0 and .NET 10.0.
Getting started
Start Elasticsearch locally. The repository's docker-compose.yml runs elasticsearch:8.8.0 as a single node on port 9200 with security disabled.
using CrispyWaffle.Composition;
using CrispyWaffle.Configuration;
using CrispyWaffle.ElasticSearch.Log;
using CrispyWaffle.ElasticSearch.Utils.Communications;
using CrispyWaffle.Log;
var connection = new Connection { Host = "localhost", Port = 9200 };
var connector = new ElasticConnector(connection, "logs-my-app");
ServiceLocator.Register(connector);
// Index log messages and delete log documents older than 30 days.
LogConsumer
.AddProvider(new ElasticSearchLogProvider(connector, 30))
.SetLevel(LogLevel.Production);
LogConsumer.Info("Application started");
Documentation
The full reference and more examples for this package are on the CrispyWaffle.ElasticSearch documentation page.
License
Released under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- CrispyWaffle (>= 10.5.13)
- CrispyWaffle.Configuration (>= 10.5.13)
- Elastic.Clients.Elasticsearch (>= 9.5.3)
-
.NETStandard 2.1
- CrispyWaffle (>= 10.5.13)
- CrispyWaffle.Configuration (>= 10.5.13)
- Elastic.Clients.Elasticsearch (>= 9.5.3)
-
net10.0
- CrispyWaffle (>= 10.5.13)
- CrispyWaffle.Configuration (>= 10.5.13)
- Elastic.Clients.Elasticsearch (>= 9.5.3)
-
net8.0
- CrispyWaffle (>= 10.5.13)
- CrispyWaffle.Configuration (>= 10.5.13)
- Elastic.Clients.Elasticsearch (>= 9.5.3)
-
net9.0
- CrispyWaffle (>= 10.5.13)
- CrispyWaffle.Configuration (>= 10.5.13)
- Elastic.Clients.Elasticsearch (>= 9.5.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.5.13 | 40 | 11/21/2026 |
| 10.5.12 | 83 | 11/17/2026 |
| 10.5.11 | 83 | 11/17/2026 |
| 10.5.10 | 84 | 11/17/2026 |
| 10.5.9 | 74 | 11/17/2026 |
| 10.5.8 | 93 | 11/15/2026 |
| 10.5.7 | 89 | 11/15/2026 |
| 10.5.6 | 89 | 11/15/2026 |
| 10.5.5 | 89 | 11/15/2026 |
| 10.5.4 | 85 | 11/15/2026 |
| 10.5.3 | 84 | 11/15/2026 |
| 10.5.2 | 85 | 11/15/2026 |
| 10.5.1 | 86 | 11/15/2026 |
| 10.5.0 | 94 | 11/15/2026 |
| 10.4.20 | 93 | 11/13/2026 |
| 10.4.19 | 90 | 11/13/2026 |
| 10.4.18 | 93 | 11/10/2026 |
| 10.4.17 | 91 | 11/8/2026 |
| 10.4.16 | 93 | 11/6/2026 |
| 10.4.15 | 91 | 11/6/2026 |
ElasticSearch release