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
Copy file name to clipboardExpand all lines: sample/Sample/Program.cs
+37-7Lines changed: 37 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,45 +1,75 @@
1
1
usingSystem.Collections.Generic;
2
2
usingSystem.Linq;
3
+
usingSystem.IO;
3
4
usingSerilog;
4
5
usingSerilog.Sinks.Splunk;
5
-
6
+
usingMicrosoft.Extensions.Configuration;
6
7
namespaceSample
7
8
{
8
9
publicclassProgram
9
10
{
10
-
conststringSPLUNK_FULL_ENDPOINT="http://localhost:8088/services/collector";// Full splunk url
11
-
conststringSPLUNK_ENDPOINT="http://localhost:8088";// Your splunk url
12
-
conststringSPLUNK_HEC_TOKEN="1AFAC088-BFC6-447F-A358-671FA7465342";// Your HEC token. See http://docs.splunk.com/Documentation/Splunk/latest/Data/UsetheHTTPEventCollector
11
+
conststringSPLUNK_FULL_ENDPOINT="http://splunk:8088/services/collector";// Full splunk url
12
+
conststringSPLUNK_ENDPOINT="http://splunk:8088";// Your splunk url
13
+
conststringSPLUNK_HEC_TOKEN="00112233-4455-6677-8899-AABBCCDDEEFF";// Your HEC token. See http://docs.splunk.com/Documentation/Splunk/latest/Data/UsetheHTTPEventCollector
0 commit comments