
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Serilog.Sinks.Splunk.TCP
Advanced tools
A Serilog sink that writes events to the Splunk. Supports .NET 4.5+, .NET Core, and platforms compatible with the .NET Platform Standard net45
, netstandard1.1
, netstandard2.0
.
Package - Serilog.Sinks.Splunk
To get started install the Serilog.Sinks.Splunk package:
PM> Install-Package Serilog.Sinks.Splunk
OR
$ dotnet add package Serilog.Sinks.Splunk
If using the TCP
or UDP
sinks install the following packages
Serilog.Sinks.Splunk.TCP
Serilog.Sinks.Splunk.UDP
To start using the Splunk Event Collector (Splunk 6.3 and above), logging can be setup as follows.
var log = new LoggerConfiguration()
.WriteTo.EventCollector("https://mysplunk:8088/services/collector/event", "myeventcollectortoken")
.CreateLogger();
If using appsettings.json
for configuration the following example illustrates using the Event Collector and Console sinks.
{
"Serilog": {
"Using": ["Serilog.Sinks.Console", "Serilog.Sinks.Splunk"],
"MinimumLevel": "Information",
"WriteTo": [{
"Name": "Console"
},
{
"Name": "EventCollector",
"Args": {
"splunkHost": "http://splunk:8088",
"uriPath": "services/collector/event",
"eventCollectorToken": "00112233-4455-6677-8899-AABBCCDDEEFF"
}
}
],
"Properties": {
"Application": "Serilog Splunk Console Sample"
}
}
}
More information about Serilog is available on the wiki.
Serilog is copyright © 2013-2024 Serilog Contributors - Provided under the Apache License, Version 2.0. Needle and thread logo a derivative of work by Kenneth Appiah.
FAQs
The Splunk TCP Sink for Serilog
We found that serilog.sinks.splunk.tcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.