-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Sample: Target net6.0. Added additional logging statements. * Docker: Splunk 9.1. * Tests: Target net6.0 and updated nuget packages. * Added constant for services/collector. Event request trims / from uri. Updated collector URL for Splunk 9.1
- Loading branch information
Showing
11 changed files
with
153 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
{ | ||
"Serilog": { | ||
"Using": ["Serilog.Sinks.Console", "Serilog.Sinks.Splunk"], | ||
"MinimumLevel": "Information", | ||
"WriteTo": [{ | ||
"Name": "Console" | ||
}, | ||
{ | ||
"Name": "EventCollector", | ||
"Args": { | ||
"splunkHost": "http://splunk:8088", | ||
"eventCollectorToken": "00112233-4455-6677-8899-AABBCCDDEEFF" | ||
} | ||
} | ||
], | ||
"Properties": { | ||
"Application": "Serilog Splunk Console Sample", | ||
"Serilog.Sinks.Splunk.Sample": "ViaEventCollector", | ||
"Serilog.Sinks.Splunk.Sample.TestType": "AppSettings.json" | ||
"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", | ||
"Serilog.Sinks.Splunk.Sample": "ViaEventCollector", | ||
"Serilog.Sinks.Splunk.Sample.TestType": "AppSettings.json" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
FROM splunk/splunk:7.2 | ||
FROM splunk/splunk:9.1 | ||
ADD etc ${SPLUNK_HOME}/etc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
namespace Serilog | ||
{ | ||
internal static class ConfigurationDefaults | ||
{ | ||
internal const string DefaultSource = ""; | ||
internal const string DefaultSourceType = ""; | ||
internal const string DefaultHost = ""; | ||
internal const string DefaultIndex = ""; | ||
|
||
/// <summary> | ||
/// The default HTTP Event Collector path when not set via configuration. | ||
/// </summary> | ||
/// <remarks> | ||
/// https://docs.splunk.com/Documentation/Splunk/9.1.0/Data/UsetheHTTPEventCollector#Send_data_to_HTTP_Event_Collector_on_Splunk_Enterprise | ||
/// </remarks> | ||
internal const string DefaultEventCollectorPath = "services/collector/event"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters