Skip to content

Commit 268befa

Browse files
EngRajabimerbla
authored andcommitted
add default batch config
1 parent 2856d1b commit 268befa

File tree

8 files changed

+25
-23
lines changed

8 files changed

+25
-23
lines changed

appveyor.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version: '{build}'
22
skip_tags: true
33
image:
4-
- Visual Studio 2017
5-
- Ubuntu
4+
- Visual Studio 2019
5+
- Ubuntu2004
66
configuration:
77
- Release
88
build_script:
@@ -14,7 +14,7 @@ for:
1414
-
1515
matrix:
1616
only:
17-
- image: Ubuntu
17+
- image: Ubuntu2004
1818
build_script:
1919
- sh build.sh
2020
deploy:

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ dotnet restore
55

66
# Until # 65 is addressed build only core package. When available move to netstandard for all packages
77
for path in src/**/Serilog.Sinks.Splunk.csproj; do
8-
dotnet build -f netstandard1.1 -c Release ${path}
98
dotnet build -f netstandard2.0 -c Release ${path}
9+
dotnet build -f netstandard2.1 -c Release ${path}
1010
done
1111

1212
for path in test/*.Tests/*.csproj; do
13-
dotnet test -f netcoreapp2.0 -c Release ${path}
13+
dotnet test -f net5.0 -c Release ${path}
1414
done
1515

16-
dotnet build -f netcoreapp2.0 -c Release sample/Sample/Sample.csproj
16+
dotnet build -f net5.0 -c Release sample/Sample/Sample.csproj

sample/Sample/Sample.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<ItemGroup>
99
<PackageReference Include="Serilog" Version="2.10.0" />
1010
<PackageReference Include="Serilog.Sinks.Console" Version="4.0.0" />
11-
<PackageReference Include="System.Net.Http" Version="4.3.4" />
1211
<PackageReference Include="Serilog.Settings.Configuration" Version="3.3.0" />
1312
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="5.0.0" />
1413
</ItemGroup>

src/Serilog.Sinks.Splunk/Serilog.Sinks.Splunk.csproj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
<PropertyGroup>
44
<Description>The Splunk Sink for Serilog</Description>
5-
<VersionPrefix>3.6.0</VersionPrefix>
5+
<VersionPrefix>3.7.0</VersionPrefix>
66
<Authors>Matthew Erbs, Serilog Contributors</Authors>
77
<TargetFrameworks>netstandard2.1;netstandard2.0</TargetFrameworks>
88
<GenerateDocumentationFile>true</GenerateDocumentationFile>
99
<AssemblyName>Serilog.Sinks.Splunk</AssemblyName>
1010
<PackageId>Serilog.Sinks.Splunk</PackageId>
1111
<PackageTags>serilog;splunk;logging;event;collector;hec</PackageTags>
12-
<PackageIconUrl>http://serilog.net/images/serilog-sink-nuget.png</PackageIconUrl>
12+
<icon>http://serilog.net/images/serilog-sink-nuget.png</icon>
1313
<PackageProjectUrl>https://github.com/serilog/serilog-sinks-splunk</PackageProjectUrl>
14-
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
14+
<license>http://www.apache.org/licenses/LICENSE-2.0</license>
1515
<RepositoryUrl>https://github.com/serilog/serilog-sinks-splunk</RepositoryUrl>
1616
<RepositoryType>git</RepositoryType>
1717
<AssemblyOriginatorKeyFile>../../assets/Serilog.snk</AssemblyOriginatorKeyFile>
@@ -20,7 +20,6 @@
2020
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
2121
</PropertyGroup>
2222

23-
2423
<ItemGroup>
2524
<PackageReference Include="Serilog" Version="2.10.0" />
2625
<PackageReference Include="Serilog.Sinks.PeriodicBatching" Version="2.3.0" />

src/Serilog.Sinks.TCP/Serilog.Sinks.Splunk.TCP.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
<PropertyGroup>
44
<Description>The Splunk TCP Sink for Serilog</Description>
5-
<VersionPrefix>1.4.0</VersionPrefix>
5+
<VersionPrefix>1.5.0</VersionPrefix>
66
<Authors>Matthew Erbs, Serilog Contributors</Authors>
77
<TargetFrameworks>netstandard2.1;netstandard2.0</TargetFrameworks>
88
<GenerateDocumentationFile>true</GenerateDocumentationFile>
99
<AssemblyName>Serilog.Sinks.Splunk.TCP</AssemblyName>
1010
<PackageId>Serilog.Sinks.Splunk.TCP</PackageId>
1111
<PackageTags>serilog;splunk;logging;tcp</PackageTags>
12-
<PackageIconUrl>http://serilog.net/images/serilog-sink-nuget.png</PackageIconUrl>
12+
<icon>http://serilog.net/images/serilog-sink-nuget.png</icon>
1313
<PackageProjectUrl>https://github.com/serilog/serilog-sinks-splunk</PackageProjectUrl>
14-
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
14+
<license>http://www.apache.org/licenses/LICENSE-2.0</license>
1515
<RepositoryUrl>https://github.com/serilog/serilog-sinks-splunk</RepositoryUrl>
1616
<RepositoryType>git</RepositoryType>
1717
<AssemblyOriginatorKeyFile>../../assets/Serilog.snk</AssemblyOriginatorKeyFile>

src/Serilog.Sinks.UDP/Serilog.Sinks.Splunk.UDP.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
<PropertyGroup>
44
<Description>The Splunk UDP Sink for Serilog</Description>
5-
<VersionPrefix>1.4.0</VersionPrefix>
5+
<VersionPrefix>1.5.0</VersionPrefix>
66
<Authors>Matthew Erbs, Serilog Contributors</Authors>
77
<TargetFrameworks>netstandard2.1;netstandard2.0</TargetFrameworks>
88
<GenerateDocumentationFile>true</GenerateDocumentationFile>
99
<AssemblyName>Serilog.Sinks.Splunk.UDP</AssemblyName>
1010
<PackageId>Serilog.Sinks.Splunk.UDP</PackageId>
1111
<PackageTags>serilog;splunk;logging;udp</PackageTags>
12-
<PackageIconUrl>http://serilog.net/images/serilog-sink-nuget.png</PackageIconUrl>
12+
<icon>http://serilog.net/images/serilog-sink-nuget.png</icon>
1313
<PackageProjectUrl>https://github.com/serilog/serilog-sinks-splunk</PackageProjectUrl>
14-
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
14+
<license>http://www.apache.org/licenses/LICENSE-2.0</license>
1515
<RepositoryUrl>https://github.com/serilog/serilog-sinks-splunk</RepositoryUrl>
1616
<RepositoryType>git</RepositoryType>
1717
<AssemblyOriginatorKeyFile>../../assets/Serilog.snk</AssemblyOriginatorKeyFile>

src/Serilog.Sinks.UDP/Sinks/Splunk/SplunkUdpSinkConnectionInfo.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,20 @@ public class SplunkUdpSinkConnectionInfo
3636
public int Port { get; }
3737

3838
///<summary>
39-
/// The maximum number of events to post in a single batch. Defaults to: 50.
39+
/// The maximum number of events to post in a single batch. Defaults to: 100.
4040
/// </summary>
41-
public int BatchPostingLimit { get; set; }
41+
public int BatchPostingLimit { get; set; } = 100;
4242

4343

4444
///<summary>
45-
/// The time to wait between checking for event batches. Defaults to 2 seconds.
45+
/// The time to wait between checking for event batches. Defaults to 10 seconds.
4646
/// </summary>
47-
public TimeSpan Period { get; set; }
47+
public TimeSpan Period { get; set; } = TimeSpan.FromSeconds(10);
4848

4949

5050
/// <summary>
5151
/// The maximum number of events that will be held in-memory while waiting to ship them to
52-
/// Elasticsearch. Beyond this limit, events will be dropped. The default is 100,000. Has no effect on
52+
/// Splunk. Beyond this limit, events will be dropped. The default is 100,000. Has no effect on
5353
/// durable log shipping.
5454
/// </summary>
5555
public int QueueSizeLimit

test/Serilog.Sinks.Splunk.Tests/Serilog.Sinks.Splunk.Tests.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp2.0</TargetFrameworks>
4+
<TargetFramework>net5.0</TargetFramework>
55
<AssemblyName>Serilog.Sinks.Splunk.Tests</AssemblyName>
66
<PackageId>Serilog.Sinks.Splunk.Tests</PackageId>
77
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
@@ -19,6 +19,10 @@
1919
<PackageReference Include="xunit" Version="2.4.1" />
2020
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
2121
<PackageReference Include="System.Net.Http" Version="4.3.4" />
22+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
23+
<PrivateAssets>all</PrivateAssets>
24+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
25+
</PackageReference>
2226
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1" />
2327
</ItemGroup>
2428

0 commit comments

Comments
 (0)