datalust / seq-extensions-logging

Add centralized log collection to ASP.NET Core apps with one line of code.
https://datalust.co/seq
Apache License 2.0
86 stars 13 forks source link

Apikey doesn't work. If it is set incorrectly or not configured, it can be written into the log normally #48

Closed wg296613796 closed 3 years ago

nblumhardt commented 3 years ago

Hi! Thanks for getting in touch. Do you have "Require authentication for HTTP/S ingestion" set in the Settings > API keys screen?

wg296613796 commented 3 years ago

yes,I set the ApiKey in Settings->APIKeys,but it doesnot work,and logs can be written without setting APIKEY in the configuration,so i think this is a bug

------------------ 原始邮件 ------------------ 发件人: "datalust/seq-extensions-logging" @.>; 发送时间: 2021年7月12日(星期一) 中午11:41 @.>; @.**@.>; 主题: Re: [datalust/seq-extensions-logging] Apikey doesn't work. If it is set incorrectly or not configured, it can be written into the log normally (#48)

Hi! Thanks for getting in touch. Do you have "Require authentication for HTTP/S ingestion" set in the Settings > API keys screen?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

nblumhardt commented 3 years ago

Hi, thanks for your reply. It's not the API key itself that I'm referring to, but a checkbox that looks like:

image

wg296613796 commented 3 years ago

ok,i tried,it works,thank you! But i have one more question: How can I filter out the log by the ApiKey, I have multiple applications and ApiKeys

------------------ 原始邮件 ------------------ 发件人: "datalust/seq-extensions-logging" @.>; 发送时间: 2021年7月12日(星期一) 中午11:50 @.>; @.**@.>; 主题: Re: [datalust/seq-extensions-logging] Apikey doesn't work. If it is set incorrectly or not configured, it can be written into the log normally (#48)

Hi, thanks for your reply. It's not the API key itself that I'm referring to, but a checkbox that looks like:

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

nblumhardt commented 3 years ago

Thanks great 👍

To filter by API key, go the the settings for an API key, and in the "Applied Properties" box, add some properties to search on - e.g. Source = Service1.

You can then use those properties as filters in the Events screen, e.g. Source = 'Service1, and create signals from them if you find you're using the same searches a lot.

Hope this helps!

wg296613796 commented 3 years ago

Ok,I get,thank you very much!^_^