Skip to content

custom configuration-time properties for serilog? #2312

Answered by nblumhardt
Balfa asked this question in Help
Discussion options

You must be logged in to vote

Hi Mo,

The best solution for this with Seq is to give each source a unique API key. Then, in the API key configuration on the Seq side, apply a property Source = ... to identify the events that are ingested using that API key. You can attach multiple properties to each key, so this is also where Environment etc. would normally be applied, if you need them.

This has a few advantages -

  • The Data > Ingestion screen will then show you the log volume coming in from each source,
  • You can suppress or filter ingestion from a single source, e.g. in the case of runaway logging, and
  • Payloads are smaller (you don't need to redundantly send the same "source" properties with every event.

Docs on API ke…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Balfa
Comment options

@nblumhardt
Comment options

Answer selected by Balfa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants