Audit.NET.Elasticsearch
25.0.7
See the version list below for details.
dotnet add package Audit.NET.Elasticsearch --version 25.0.7
NuGet\Install-Package Audit.NET.Elasticsearch -Version 25.0.7
<PackageReference Include="Audit.NET.Elasticsearch" Version="25.0.7" />
paket add Audit.NET.Elasticsearch --version 25.0.7
#r "nuget: Audit.NET.Elasticsearch, 25.0.7"
// Install Audit.NET.Elasticsearch as a Cake Addin #addin nuget:?package=Audit.NET.Elasticsearch&version=25.0.7 // Install Audit.NET.Elasticsearch as a Cake Tool #tool nuget:?package=Audit.NET.Elasticsearch&version=25.0.7
Audit.NET.Elasticsearch
Elasticsearch provider for Audit.NET library (An extensible framework to audit executing operations in .NET).
Store the audit events in Elasticsearch database using the NEST library.
Install
NuGet Package To install the package run the following command on the Package Manager Console:
PM> Install-Package Audit.NET.Elasticsearch
Usage
Please see the Audit.NET Readme
Configuration
Set the static Audit.Core.Configuration.DataProvider
property to set the Elasticsearch data provider, or call the UseElasticsearch
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 ElasticsearchDataProvider()
{
ConnectionSettings = new ConnectionSettings(new Uri("http://localhost:9200")),
IndexBuilder = ev => ev.EventType,
IdBuilder = ev => Guid.NewGuid()
};
Or by using the fluent configuration API:
Audit.Core.Configuration.Setup()
.UseElasticsearch(config => config
.ConnectionSettings(new Uri("http://localhost:9200"))
.Index(auditEvent => auditEvent.EventType)
.Id(ev => Guid.NewGuid()));
Note that you can provide the settings as a function of the Audit Event.
Provider Options
Mandatory:
- ConnectionSettings: The Elasticsearch connection settings.
Optional:
- Index: The Elasticsearch index name to use. Can be NULL to use the default index.
- Id: The id to use for the given audit event. Can be NULL to use an auto-generated id.
Query events
This provider implements GetEvent
and GetEventAsync
methods to obtain an audit event by id:
var event = elasDataProvider.GetEvent(new ElasticsearchAuditEventId() { Index = "myindex", Id = "myid" });
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. 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 | 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. |
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Audit.NET.Elasticsearch:
Package | Downloads |
---|---|
Mre.Sb.Auditar
Package Description |
|
RezisFramework
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
26.0.1 | 110 | 8/22/2024 |
26.0.0 | 124 | 7/19/2024 |
25.0.7 | 5,726 | 7/4/2024 |
25.0.6 | 541 | 6/24/2024 |
25.0.5 | 157 | 6/18/2024 |
25.0.4 | 13,061 | 3/24/2024 |
25.0.3 | 124 | 3/13/2024 |
25.0.2 | 103 | 3/12/2024 |
25.0.1 | 212 | 2/28/2024 |
25.0.0 | 175 | 2/16/2024 |
24.0.1 | 133 | 2/12/2024 |
24.0.0 | 90 | 2/12/2024 |
23.0.0 | 3,945 | 12/14/2023 |
22.1.0 | 27,071 | 12/9/2023 |
22.0.2 | 11,941 | 12/1/2023 |
22.0.1 | 4,181 | 11/16/2023 |
22.0.0 | 198 | 11/14/2023 |
21.1.0 | 1,705 | 10/9/2023 |
21.0.4 | 20,976 | 9/15/2023 |
21.0.3 | 13,725 | 7/9/2023 |
21.0.2 | 191 | 7/6/2023 |
21.0.1 | 3,300 | 5/27/2023 |
21.0.0 | 869 | 4/15/2023 |
20.2.4 | 476 | 3/27/2023 |
20.2.3 | 1,625 | 3/17/2023 |
20.2.2 | 283 | 3/14/2023 |
20.2.1 | 279 | 3/11/2023 |
20.2.0 | 436 | 3/7/2023 |
20.1.6 | 331 | 2/23/2023 |
20.1.5 | 5,038 | 2/9/2023 |
20.1.4 | 1,816 | 1/28/2023 |
20.1.3 | 1,160 | 12/21/2022 |
20.1.2 | 494 | 12/14/2022 |
20.1.1 | 385 | 12/12/2022 |
20.1.0 | 410 | 12/4/2022 |
20.0.4 | 369 | 11/30/2022 |
20.0.3 | 3,254 | 10/28/2022 |
20.0.2 | 452 | 10/26/2022 |
20.0.1 | 811 | 10/21/2022 |
20.0.0 | 1,174 | 10/1/2022 |
19.4.1 | 7,449 | 9/10/2022 |
19.4.0 | 597 | 9/2/2022 |
19.3.0 | 1,215 | 8/23/2022 |
19.2.2 | 759 | 8/11/2022 |
19.2.1 | 878 | 8/6/2022 |
19.2.0 | 624 | 7/24/2022 |
19.1.4 | 1,953 | 5/23/2022 |
19.1.3 | 506 | 5/22/2022 |
19.1.2 | 532 | 5/18/2022 |
19.1.1 | 719 | 4/28/2022 |
19.1.0 | 721 | 4/10/2022 |
19.0.7 | 774 | 3/13/2022 |
19.0.6 | 60,834 | 3/7/2022 |
19.0.5 | 3,093 | 1/28/2022 |
19.0.4 | 13,078 | 1/23/2022 |
19.0.3 | 3,943 | 12/14/2021 |
19.0.2 | 398 | 12/11/2021 |
19.0.1 | 12,836 | 11/20/2021 |
19.0.0 | 4,555 | 11/11/2021 |
19.0.0-rc.net60.2 | 172 | 9/26/2021 |
19.0.0-rc.net60.1 | 212 | 9/16/2021 |
18.1.6 | 11,393 | 9/26/2021 |
18.1.5 | 664 | 9/7/2021 |
18.1.4 | 486 | 9/6/2021 |
18.1.3 | 556 | 8/19/2021 |
18.1.2 | 582 | 8/8/2021 |
18.1.1 | 556 | 8/5/2021 |
18.1.0 | 509 | 8/1/2021 |
18.0.1 | 499 | 7/30/2021 |
18.0.0 | 590 | 7/26/2021 |
17.0.8 | 12,813 | 7/7/2021 |
17.0.7 | 4,296 | 6/16/2021 |
17.0.6 | 818 | 6/5/2021 |
17.0.5 | 2,078 | 5/28/2021 |
17.0.4 | 2,746 | 5/4/2021 |
17.0.3 | 506 | 5/1/2021 |
17.0.2 | 20,496 | 4/22/2021 |
17.0.1 | 483 | 4/18/2021 |
17.0.0 | 1,414 | 3/26/2021 |
16.5.6 | 491 | 3/25/2021 |
16.5.5 | 489 | 3/23/2021 |
16.5.4 | 3,527 | 3/9/2021 |
16.5.3 | 480 | 2/26/2021 |
16.5.2 | 499 | 2/23/2021 |
16.5.1 | 524 | 2/21/2021 |
16.5.0 | 628 | 2/17/2021 |
16.4.5 | 527 | 2/15/2021 |
16.4.4 | 481 | 2/5/2021 |
16.4.3 | 1,058 | 1/27/2021 |
16.4.2 | 490 | 1/22/2021 |
16.4.1 | 540 | 1/21/2021 |
16.4.0 | 2,921 | 1/11/2021 |
16.3.3 | 547 | 1/8/2021 |
16.3.2 | 564 | 1/3/2021 |
16.3.1 | 552 | 12/31/2020 |
16.3.0 | 529 | 12/30/2020 |
16.2.1 | 621 | 12/27/2020 |
16.2.0 | 7,562 | 10/13/2020 |
16.1.5 | 681 | 10/4/2020 |
16.1.4 | 674 | 9/17/2020 |
16.1.3 | 731 | 9/13/2020 |
16.1.2 | 585 | 9/9/2020 |
16.1.1 | 605 | 9/3/2020 |
16.1.0 | 235,335 | 8/19/2020 |
16.0.3 | 1,978 | 8/15/2020 |
16.0.2 | 598 | 8/9/2020 |
16.0.1 | 637 | 8/8/2020 |
16.0.0 | 529 | 8/7/2020 |
15.3.0 | 98,889 | 7/23/2020 |
15.2.3 | 1,911 | 7/14/2020 |
15.2.2 | 2,651 | 5/19/2020 |
15.2.1 | 1,009 | 5/12/2020 |
15.2.0 | 623 | 5/9/2020 |
15.1.1 | 610 | 5/4/2020 |
15.1.0 | 1,194 | 4/13/2020 |
15.0.5 | 1,588 | 3/18/2020 |
15.0.4 | 1,644 | 2/28/2020 |
15.0.3 | 620 | 2/26/2020 |
15.0.2 | 61,940 | 1/20/2020 |
15.0.1 | 1,630 | 1/10/2020 |
15.0.0 | 4,740 | 12/17/2019 |
14.9.1 | 2,677 | 11/30/2019 |
14.9.0 | 620 | 11/29/2019 |
14.8.1 | 748 | 11/26/2019 |
14.8.0 | 12,417 | 11/20/2019 |
14.7.0 | 6,538 | 10/9/2019 |
14.6.6 | 677 | 10/8/2019 |
14.6.5 | 6,452 | 9/27/2019 |
14.6.4 | 752 | 9/21/2019 |
14.6.3 | 1,697 | 8/12/2019 |
14.6.2 | 1,479 | 8/3/2019 |
14.6.1 | 732 | 8/3/2019 |
14.6.0 | 822 | 7/26/2019 |
14.5.7 | 1,390 | 7/18/2019 |
14.5.6 | 4,858 | 7/10/2019 |
14.5.5 | 820 | 7/1/2019 |
14.5.4 | 784 | 6/17/2019 |
14.5.3 | 931 | 6/5/2019 |
14.5.2 | 779 | 5/30/2019 |
14.5.1 | 742 | 5/28/2019 |
14.5.0 | 791 | 5/24/2019 |
14.4.0 | 1,362 | 5/22/2019 |
14.3.4 | 874 | 5/14/2019 |
14.3.3 | 895 | 5/9/2019 |
14.3.2 | 831 | 4/30/2019 |
14.3.1 | 804 | 4/27/2019 |
14.3.0 | 844 | 4/24/2019 |
14.2.3 | 787 | 4/17/2019 |
14.2.2 | 782 | 4/10/2019 |
14.2.1 | 779 | 4/5/2019 |
14.2.0 | 2,911 | 3/16/2019 |
14.1.1 | 788 | 3/8/2019 |
14.1.0 | 982 | 2/11/2019 |
14.0.4 | 37,978 | 1/31/2019 |
14.0.3 | 919 | 1/22/2019 |
14.0.2 | 4,158 | 12/15/2018 |
14.0.1 | 16,984 | 11/29/2018 |
14.0.0 | 1,004 | 11/19/2018 |
13.3.0 | 3,349 | 11/16/2018 |
13.2.2 | 952 | 11/15/2018 |
13.2.1 | 1,018 | 11/13/2018 |
13.2.0 | 964 | 10/31/2018 |
13.1.5 | 942 | 10/31/2018 |
13.1.4 | 962 | 10/25/2018 |
13.1.3 | 962 | 10/18/2018 |
13.1.2 | 1,297 | 9/12/2018 |
13.1.1 | 2,355 | 9/11/2018 |
13.1.0 | 1,020 | 9/11/2018 |
13.0.0 | 1,076 | 8/29/2018 |
12.3.6 | 1,025 | 8/29/2018 |
12.3.5 | 1,499 | 8/22/2018 |
12.3.4 | 1,035 | 8/21/2018 |
12.3.3 | 25,805 | 8/21/2018 |
12.3.2 | 1,103 | 8/20/2018 |
12.3.1 | 1,084 | 8/20/2018 |
12.3.0 | 1,055 | 8/20/2018 |
12.2.2 | 1,094 | 8/15/2018 |
12.2.1 | 1,082 | 8/9/2018 |
12.2.0 | 1,052 | 8/8/2018 |
12.1.11 | 4,024 | 7/30/2018 |
12.1.10 | 2,673 | 7/20/2018 |
12.1.9 | 1,339 | 7/10/2018 |
12.1.8 | 1,157 | 7/2/2018 |
12.1.7 | 1,248 | 6/7/2018 |
12.1.6 | 9,245 | 6/4/2018 |
12.1.5 | 1,208 | 6/2/2018 |
12.1.4 | 1,223 | 5/25/2018 |
12.1.3 | 2,347 | 5/16/2018 |
12.1.2 | 1,160 | 5/15/2018 |
12.1.1 | 2,383 | 5/14/2018 |
12.1.0 | 1,193 | 5/9/2018 |
12.0.7 | 1,324 | 5/5/2018 |
12.0.6 | 1,255 | 5/4/2018 |
12.0.5 | 1,246 | 5/3/2018 |
12.0.4 | 2,401 | 4/30/2018 |
12.0.3 | 1,305 | 4/30/2018 |