Audit.NET.Kafka
25.0.5
See the version list below for details.
dotnet add package Audit.NET.Kafka --version 25.0.5
NuGet\Install-Package Audit.NET.Kafka -Version 25.0.5
<PackageReference Include="Audit.NET.Kafka" Version="25.0.5" />
paket add Audit.NET.Kafka --version 25.0.5
#r "nuget: Audit.NET.Kafka, 25.0.5"
// Install Audit.NET.Kafka as a Cake Addin #addin nuget:?package=Audit.NET.Kafka&version=25.0.5 // Install Audit.NET.Kafka as a Cake Tool #tool nuget:?package=Audit.NET.Kafka&version=25.0.5
Audit.NET.Kafka
Apache Kafka Server provider for Audit.NET library (An extensible framework to audit executing operations in .NET).
Send the audit events to an Apache Kafka topic.
Install
NuGet Package To install the package run the following command on the Package Manager Console:
PM> Install-Package Audit.NET.Kafka
Usage
Please see the Audit.NET Readme
Configuration
Set the static Audit.Core.Configuration.DataProvider
property to set the Kafka data provider, or call the UseKafka
method on the fluent configuration. This should be done before any AuditScope
creation, i.e. during application startup.
For example:
Audit.Core.Configuration.DataProvider = new KafkaDataProvider(producerConfig)
{
TopicSelector = _ => "audit-topic"
};
Or by using the fluent configuration API:
Audit.Core.Configuration.Setup()
.UseKafka(_ => _
.ProducerConfig(producerConfig)
.Topic("audit-topic"));
If you want to use keyed messages
you have to use the generic KafkaDataProvider<TKey>
and provide a way to obtain the key for each audit event:
Audit.Core.Configuration.Setup()
.UseKafka<string>(_ => _
.ProducerConfig(producerConfig)
.Topic("audit-topic")
.KeySelector(ev => ev.EventType));
Provider Options
- ProducerConfig: Instance of
ProducerConfig
with the producer configuration properties - Topic: The topic name to send the messages. Default is "audit-topic".
- TopicSelector: A function of the audit event that returns the topic name to use.
- PartitionSelector: (optional) A function of the audit event that returns the partition index to use.
- KeySelector: When using keyed messages, a function of the audit event that returns the key to use.
- KeySerializer: When using keyed messages to set a custom serializer for the key.
- AuditEventSerializer: Custom AuditEvent serializer. By default the audit event is JSON serialized + UTF8 encoded.
- ResultHandler: An action to be called for each kafka response.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. 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 | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- Audit.NET (>= 25.0.5)
- Confluent.Kafka (>= 2.3.0)
-
.NETStandard 2.0
- Audit.NET (>= 25.0.5)
- Confluent.Kafka (>= 2.3.0)
-
net6.0
- Audit.NET (>= 25.0.5)
- Confluent.Kafka (>= 2.3.0)
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 |
---|---|---|
27.2.0 | 32 | 11/23/2024 |
27.1.1 | 92 | 10/28/2024 |
27.1.0 | 91 | 10/24/2024 |
27.0.3 | 113 | 9/25/2024 |
27.0.2 | 96 | 9/19/2024 |
27.0.1 | 125 | 9/4/2024 |
27.0.0 | 82 | 9/3/2024 |
26.0.1 | 782 | 8/22/2024 |
26.0.0 | 110 | 7/19/2024 |
25.0.7 | 102 | 7/4/2024 |
25.0.6 | 225 | 6/24/2024 |
25.0.5 | 106 | 6/18/2024 |
25.0.4 | 201 | 3/24/2024 |
25.0.3 | 147 | 3/13/2024 |
25.0.2 | 131 | 3/12/2024 |
25.0.1 | 167 | 2/28/2024 |
25.0.0 | 129 | 2/16/2024 |
24.0.1 | 149 | 2/12/2024 |
24.0.0 | 116 | 2/12/2024 |
23.0.0 | 1,112 | 12/14/2023 |
22.1.0 | 157 | 12/9/2023 |
22.0.2 | 148 | 12/1/2023 |
22.0.1 | 163 | 11/16/2023 |
22.0.0 | 111 | 11/14/2023 |
21.1.0 | 185 | 10/9/2023 |
21.0.4 | 189 | 9/15/2023 |
21.0.3 | 297 | 7/9/2023 |
21.0.2 | 188 | 7/6/2023 |
21.0.1 | 196 | 5/27/2023 |
21.0.0 | 359 | 4/15/2023 |
20.2.4 | 263 | 3/27/2023 |
20.2.3 | 232 | 3/17/2023 |
20.2.2 | 242 | 3/14/2023 |
20.2.1 | 260 | 3/11/2023 |
20.2.0 | 247 | 3/7/2023 |
20.1.6 | 295 | 2/23/2023 |
20.1.5 | 292 | 2/9/2023 |
20.1.4 | 313 | 1/28/2023 |
20.1.3 | 306 | 12/21/2022 |
20.1.2 | 4,555 | 12/14/2022 |
20.1.1 | 328 | 12/12/2022 |
20.1.0 | 376 | 12/4/2022 |
20.0.4 | 359 | 11/30/2022 |
20.0.3 | 678 | 10/28/2022 |
20.0.2 | 434 | 10/26/2022 |
20.0.1 | 455 | 10/21/2022 |
20.0.0 | 2,604 | 10/1/2022 |
19.4.1 | 656 | 9/10/2022 |
19.4.0 | 35,112 | 9/2/2022 |
19.3.0 | 479 | 8/23/2022 |
19.2.2 | 488 | 8/11/2022 |
19.2.1 | 509 | 8/6/2022 |
19.2.0 | 657 | 7/24/2022 |
19.1.4 | 1,175 | 5/23/2022 |
19.1.3 | 491 | 5/22/2022 |
19.1.2 | 509 | 5/18/2022 |
19.1.1 | 695 | 4/28/2022 |
19.1.0 | 588 | 4/10/2022 |
19.0.7 | 634 | 3/13/2022 |
19.0.6 | 566 | 3/7/2022 |
19.0.5 | 1,876 | 1/28/2022 |
19.0.4 | 549 | 1/23/2022 |
19.0.3 | 1,061 | 12/14/2021 |
19.0.2 | 400 | 12/11/2021 |
19.0.1 | 1,395 | 11/20/2021 |
19.0.0 | 460 | 11/11/2021 |
19.0.0-rc.net60.2 | 163 | 9/26/2021 |
19.0.0-rc.net60.1 | 209 | 9/16/2021 |
18.1.6 | 564 | 9/26/2021 |
18.1.5 | 400 | 9/7/2021 |
18.1.4 | 394 | 9/6/2021 |
18.1.3 | 4,051 | 8/19/2021 |
18.1.2 | 480 | 8/8/2021 |
18.1.1 | 450 | 8/5/2021 |
18.1.0 | 483 | 8/1/2021 |
18.0.1 | 453 | 7/30/2021 |
18.0.0 | 445 | 7/26/2021 |
17.0.8 | 474 | 7/7/2021 |
17.0.7 | 458 | 6/16/2021 |
17.0.6 | 2,852 | 6/5/2021 |
17.0.5 | 449 | 5/28/2021 |
17.0.4 | 481 | 5/4/2021 |
17.0.3 | 463 | 5/1/2021 |
17.0.2 | 426 | 4/22/2021 |
17.0.1 | 426 | 4/18/2021 |
17.0.0 | 3,805 | 3/26/2021 |
16.5.6 | 481 | 3/25/2021 |
16.5.5 | 450 | 3/23/2021 |
16.5.4 | 443 | 3/9/2021 |
16.5.3 | 438 | 2/26/2021 |
16.5.2 | 487 | 2/23/2021 |
16.5.1 | 448 | 2/21/2021 |
16.5.0 | 432 | 2/17/2021 |
16.4.5 | 441 | 2/15/2021 |
16.4.4 | 454 | 2/5/2021 |
16.4.3 | 505 | 1/27/2021 |
16.4.2 | 429 | 1/22/2021 |
16.4.1 | 479 | 1/21/2021 |
16.4.0 | 437 | 1/11/2021 |
16.3.3 | 462 | 1/8/2021 |
16.3.2 | 493 | 1/3/2021 |
16.3.1 | 474 | 12/31/2020 |
16.3.0 | 431 | 12/30/2020 |
16.2.1 | 2,759 | 12/27/2020 |
16.2.0 | 560 | 10/13/2020 |
16.1.5 | 620 | 10/4/2020 |
16.1.4 | 519 | 9/17/2020 |
16.1.3 | 624 | 9/13/2020 |
16.1.2 | 525 | 9/9/2020 |