Skip to content

[Feature] Add "event id" column or object #77

@lonix1

Description

@lonix1

It's a good idea to store a hash of the message template, so one can easily search for similar events.

(By the way, Seq also does this.)

One computes the hash using one of these algorithms:

  • The "Jenkins one-at-a-time" algorithm, implemented in both Serilog.Formatting.Compact and Serilog.Expressions. It is very simple, and could even be copy-pasted to avoid a dependency on those libraries. Recommended.
  • The "Murmur3" algorithm, documented here and here, and implemented in this library.

Then the hash must be persisted:

  • An new enricher (e.g. EventIdEnricher) can add it as a property to the log event, which would be serialised to the "Properties" JSON object
  • And/Or it can be added as a table column (so it can be indexed); this would be done by a new column writer (e.g. EventIdColumnWriter)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions