SplunkClientDataReader 1.0.7
dotnet add package SplunkClientDataReader --version 1.0.7
NuGet\Install-Package SplunkClientDataReader -Version 1.0.7
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SplunkClientDataReader" Version="1.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SplunkClientDataReader --version 1.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SplunkClientDataReader, 1.0.7"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SplunkClientDataReader as a Cake Addin
#addin nuget:?package=SplunkClientDataReader&version=1.0.7
// Install SplunkClientDataReader as a Cake Tool
#tool nuget:?package=SplunkClientDataReader&version=1.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Splunk Client Data Reader
Usage:
using Splunk.Client;
using SplunkClientDataReader;
using System.Data.SqlClient;
...
public async Task StreamSplunkToSqlServer()
{
using(SqlBulkCopy sqlBulkCopy = new SqlBulkCopy(connectionString, SqlBulkCopyOptions.Default)){
sqlBulkCopy.BatchSize = 5000;
sqlBulkCopy.EnableStreaming = true;
sqlBulkCopy.BulkCopyTimeout = 360;
sqlBulkCopy.DestinationTableName = "dbo.SplunkData";
using (var context = new Context(Scheme.Https, endPoint.Host, endPoint.Port))
{
using (var client = new Service(context))
{
await client.LogOnAsync(credential.UserName, credential.Password).ConfigureAwait(false);
using(SearchResultStream results = await client.ExportSearchResultsAsync(search, searchExportArgs).ConfigureAwait(false))
{
using(SearchResultStreamDataReader reader = new SearchResultStreamDataReader(results))
{
await sqlBlockCopy.WriteToServerAsync(reader).ConfigureAwait(false);
}
}
}
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- Splunk.Client.DotnetCore (>= 1.0.7)
-
net5.0
- Splunk.Client.DotnetCore (>= 1.0.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.7 | 319 | 10/6/2021 |