serilog-contrib / serilog-sinks-splunk

A Serilog sink that writes to Splunk
https://splunk.com
Apache License 2.0
46 stars 47 forks source link

Fix for #205 allow collector path in host url #211

Closed EEParker closed 5 months ago

EEParker commented 5 months ago

This should allow for the previous collector path in the host url.

EEParker commented 5 months ago

@VictorioBerra can you test this to see if it meets your needs?

github-actions[bot] commented 5 months ago

Code Coverage

Package Line Rate Branch Rate Health
Serilog.Sinks.Splunk 50% 63%
Serilog.Sinks.Splunk.TCP 65% 43%
Serilog.Sinks.Splunk 19% 19%
Summary 43% (334 / 812) 44% (86 / 208)
VictorioBerra commented 5 months ago

@EEParker Works great!

My config

  "Serilog": {
    "WriteTo": [
      {
        "Name": "EventCollector",
        "Args": {
          "splunkHost": "https://splunk.company.com/services/collector",
          "eventCollectorToken": "111-222-333-444-555"
        }
      }
    ]
  }