Skip to content

Commit 3974f08

Browse files
committed
Added Splunk configuration sample
#40
1 parent 173e4f8 commit 3974f08

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

src/SampleWebAPI/appsettings.Development.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,21 @@
66
"System": "Information",
77
"Microsoft": "Information"
88
}
9+
},
10+
"Splunk": {
11+
"HecConfiguration": {
12+
"BatchIntervalInMiliseconds": 5000,
13+
"BatchSizeCount": 10,
14+
"ChannelIdType": "None",
15+
"DefaultTimeoutInMiliseconds": 10000,
16+
"SplunkCollectorUrl": "https://localhost:8088/services/collector/",
17+
"Token": "753c5a9c-fb59-4da0-9064-947f99dc20ba",
18+
"UseAuthTokenAsQueryString": false
19+
},
20+
"SocketConfiguration": {
21+
"HostName": "localhost",
22+
"Port": 4242,
23+
"Threshold": "Warning"
24+
}
925
}
10-
}
26+
}

src/SampleWebAPI/appsettings.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,22 @@
1010
"LogLevel": {
1111
"Default": "Warning"
1212
}
13+
},
14+
"Splunk": {
15+
"HecConfiguration": {
16+
"BatchIntervalInMiliseconds": 5000,
17+
"BatchSizeCount": 10,
18+
"ChannelIdType": "None",
19+
"DefaultTimeoutInMiliseconds": 10000,
20+
"SplunkCollectorUrl": "https://localhost:8088/services/collector/",
21+
"Token": "753c5a9c-fb59-4da0-9064-947f99dc20ba",
22+
"UseAuthTokenAsQueryString": false
23+
},
24+
"SocketConfiguration": {
25+
"HostName": "localhost",
26+
"Port": 4242,
27+
"Threshold": "Warning"
28+
}
1329
}
1430
}
15-
}
31+
}

0 commit comments

Comments
 (0)