You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rolf Kristensen edited this page May 31, 2025
·
2 revisions
NLog.Targets.HTTP
NLog.Targets.HTTP is a HTTP POST target for NLog.
Combined with JSON formatter it can be used to send events to an
instance of Splunk and other HTTP based collectors.
Number of messages to be sent together in one call separated by an empty new line
MaxQueueSize
Maximum number of messages awaiting to be send. Please note, that if this value is set, the logger might be blocking.
IgnoreSsslErrors
Some SSL certificates might be invalid or not-trusted.
FlushBeforeShutdown
Force all messages to be delivered before shutting down.
ContentType
HTTP ContentType Header value.
Accept
HTTP Accept Header value.
DefaultConnectionLimit
How many connections might be used at the same time. Changes ServicePointManager.DefaultConnectionLimit, which might affect other parts of your system.
The Nagle algorithm is used to buffer small packets of data and transmit them as a single packet. This process, referred to as "nagling," is widely used
because it reduces the number of packets transmitted and lowers the overhead per packet. The Nagle algorithm is fully described in IETF RFC 896.
ConnectTimeout
How long should the client wait to connect (default is 30 seconds).
InMemoryCompression
Reduces the amount of memory consumed at the expense of increased CPU usage.
ProxyUrl
Designates a proxy server to use. Must include protocol (http|https) and port
ProxyUser
If proxy authentication is needed, you can specify it with a domain prefix, i.e. DOMAIN\USER.