BrianSandberg.ElastiLog 1.2.21

ElastiLog

Lightweight package for logging to Elasticsearch / OpenSearch.

Includes ASP.NET middleware for automatically capturing request and response data.

Options (AddElastiLog(options => ...))

  • OnPrerequest / OnPostrequest - synchronous hooks run right before/after the request pipeline.
  • OnPrerequestAsync - awaited right after OnPrerequest, before the request is passed down the pipeline. Use for enrichment that needs async work (e.g. peeking at a buffered request body) that a synchronous hook can't do.
  • EnableStartLogging (default false) - when true, sends a thin phase: "start" document immediately (after OnPrerequest/OnPrerequestAsync), keyed by the request's trace identifier as an explicit document id, then overwrites that same document in place with the full phase: "completed" data at request end - instead of two separate, hard-to-correlate documents. A request that never completes leaves a permanent, directly queryable "still starting" document behind. Requires a native Elasticsearch/OpenSearch _doc endpoint (the explicit-id write always PUTs to {index}/_doc/{id}, bypassing the configured Path template and any {token} substitution it does for the normal, auto-id case) - not compatible with a token-routed logging endpoint.

No packages depend on BrianSandberg.ElastiLog.

.NET 8.0

  • No dependencies.

.NET 10.0

  • No dependencies.

Version Downloads Last updated
1.2.21 5 09/18/2026
1.2.20 35 09/12/2026
1.2.19 36 09/09/2026
1.2.18 270 05/02/2026
1.2.17 237 05/02/2026
1.2.16 384 01/23/2026
1.1.15 329 01/05/2026
1.1.14 300 01/05/2026
1.1.13 355 11/12/2025
1.1.11 399 10/03/2025
1.1.10 1,601 09/08/2024
1.1.9 657 09/07/2024
1.1.8 571 09/05/2024
1.1.7 496 09/04/2024
1.1.6 517 09/03/2024
1.1.5 627 11/18/2023
1.1.3 613 09/15/2023
1.1.2 569 09/15/2023
1.0.10 799 04/08/2022
1.0.9 696 04/08/2022
1.0.8 710 04/02/2022
0.1.1-pre 768 04/02/2022
0.1.0-pre 696 04/02/2022