SplunkGlobalDevs / SplunkLogger

C# .Net Core 2 Splunk ILogger Compatible Implementation
MIT License
25 stars 13 forks source link

Support send ChannelId at HEC raw via request header #34

Closed Caldas closed 6 years ago

Caldas commented 6 years ago

To use HEC raw is necessary to send the channel identification. Today we support to send this information only via query string (https://github.com/vtex/SplunkLogger/blob/c1ee530d149a6729e8185de876db299d027a872a/src/SplunkLogger/Providers/SplunkHECRawLoggerProvider.cs#L44).

Reading more about it at http://dev.splunk.com/view/event-collector/SP-CAAAE8Y send via query is an alternative:

Alternatively, the X-Splunk-Request-Channel header field can be sent as a URL 
query parameter, as shown here:

So of course, we should provide support to send it via request header

Caldas commented 6 years ago

The solutions was presented by @muleyprasad at #33