datalust/serilog-sinks-seq

What is the behavior of an API key that is empty or doesn't match an existing API key?

Closed this issue · 2 comments

Hi all,

I'm attempting to configure Seq integration for different environments.

Let's say my dev config uses a localhost version of Seq with no API key, but my test/mock/stage environment all use a stage server deployment of Seq with different API keys.

Once I use an API key, does Seq only allow API logs that correspond to an API key? Or can I have an empty API key in my Web.Config, and transform to certain API keys for those environments?

Hi Sean,

Unless "Require an API key when writing events" is selected, Seq will accept any API key.

image

If the API key matches a configured one, it will be used, otherwise the events will be treated as if no API key was provided (though a message will be written to the Ingestion Log).

Does this help?

👍 answers my question perfectly. Wanted to ensure that an empty API key wouldn't result in lost messages. Thanks!