Audit.NET.Elasticsearch
27.2.0
dotnet add package Audit.NET.Elasticsearch --version 27.2.0
NuGet\Install-Package Audit.NET.Elasticsearch -Version 27.2.0
<PackageReference Include="Audit.NET.Elasticsearch" Version="27.2.0" />
paket add Audit.NET.Elasticsearch --version 27.2.0
#r "nuget: Audit.NET.Elasticsearch, 27.2.0"
// Install Audit.NET.Elasticsearch as a Cake Addin #addin nuget:?package=Audit.NET.Elasticsearch&version=27.2.0 // Install Audit.NET.Elasticsearch as a Cake Tool #tool nuget:?package=Audit.NET.Elasticsearch&version=27.2.0
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 Elastic.Clients.Elasticsearch 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()
{
ClientSettings = new ElasticsearchClientSettings(new Uri("http://localhost:9200")),
Index = new(ev => ev.EventType),
IdBuilder = ev => Guid.NewGuid()
};
Or by using the fluent configuration API:
Audit.Core.Configuration.Setup()
.UseElasticsearch(config => config
.Client(new ElasticsearchClient("<CLOUD ID>", new BasicAuthentication("user", "pass")))
.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:
- Client / ClientSettings: Specifies how to create the Elasticsearch client. You can either pass an instance of the ElasticsearchClient or provide the ElasticsearchClientSettings.
Optional:
- Index: The Elasticsearch index name to use. Can be NULL to use the default index.
- Id / IdBuilder: 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. |
-
.NETFramework 4.6.2
- Audit.NET (>= 27.2.0)
- Elastic.Clients.Elasticsearch (>= 8.14.6)
-
.NETStandard 2.0
- Audit.NET (>= 27.2.0)
- Elastic.Clients.Elasticsearch (>= 8.14.6)
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 |
---|---|---|
27.2.0 | 74 | 11/23/2024 |
27.1.1 | 247 | 10/28/2024 |
27.1.0 | 90 | 10/24/2024 |
27.0.3 | 232 | 9/25/2024 |
27.0.2 | 185 | 9/19/2024 |
27.0.1 | 122 | 9/4/2024 |
27.0.0 | 97 | 9/3/2024 |
26.0.1 | 262 | 8/22/2024 |
26.0.0 | 157 | 7/19/2024 |
25.0.7 | 28,055 | 7/4/2024 |
25.0.6 | 991 | 6/24/2024 |
25.0.5 | 188 | 6/18/2024 |
25.0.4 | 13,734 | 3/24/2024 |
25.0.3 | 148 | 3/13/2024 |
25.0.2 | 128 | 3/12/2024 |
25.0.1 | 237 | 2/28/2024 |
25.0.0 | 1,427 | 2/16/2024 |
24.0.1 | 161 | 2/12/2024 |
24.0.0 | 116 | 2/12/2024 |
23.0.0 | 4,503 | 12/14/2023 |
22.1.0 | 27,429 | 12/9/2023 |
22.0.2 | 11,976 | 12/1/2023 |
22.0.1 | 4,262 | 11/16/2023 |
22.0.0 | 222 | 11/14/2023 |
21.1.0 | 2,047 | 10/9/2023 |
21.0.4 | 21,004 | 9/15/2023 |
21.0.3 | 13,754 | 7/9/2023 |
21.0.2 | 215 | 7/6/2023 |
21.0.1 | 3,455 | 5/27/2023 |
21.0.0 | 906 | 4/15/2023 |
20.2.4 | 506 | 3/27/2023 |
20.2.3 | 1,655 | 3/17/2023 |
20.2.2 | 306 | 3/14/2023 |
20.2.1 | 302 | 3/11/2023 |
20.2.0 | 458 | 3/7/2023 |
20.1.6 | 352 | 2/23/2023 |
20.1.5 | 5,072 | 2/9/2023 |
20.1.4 | 1,836 | 1/28/2023 |
20.1.3 | 1,200 | 12/21/2022 |
20.1.2 | 513 | 12/14/2022 |
20.1.1 | 407 | 12/12/2022 |
20.1.0 | 429 | 12/4/2022 |
20.0.4 | 389 | 11/30/2022 |
20.0.3 | 4,116 | 10/28/2022 |
20.0.2 | 470 | 10/26/2022 |
20.0.1 | 831 | 10/21/2022 |
20.0.0 | 1,193 | 10/1/2022 |
19.4.1 | 8,583 | 9/10/2022 |
19.4.0 | 622 | 9/2/2022 |
19.3.0 | 1,320 | 8/23/2022 |
19.2.2 | 785 | 8/11/2022 |
19.2.1 | 905 | 8/6/2022 |
19.2.0 | 649 | 7/24/2022 |
19.1.4 | 1,995 | 5/23/2022 |
19.1.3 | 526 | 5/22/2022 |
19.1.2 | 555 | 5/18/2022 |
19.1.1 | 744 | 4/28/2022 |
19.1.0 | 745 | 4/10/2022 |
19.0.7 | 795 | 3/13/2022 |
19.0.6 | 62,073 | 3/7/2022 |
19.0.5 | 3,152 | 1/28/2022 |
19.0.4 | 13,209 | 1/23/2022 |
19.0.3 | 4,019 | 12/14/2021 |
19.0.2 | 420 | 12/11/2021 |
19.0.1 | 12,858 | 11/20/2021 |
19.0.0 | 4,581 | 11/11/2021 |
19.0.0-rc.net60.2 | 179 | 9/26/2021 |
19.0.0-rc.net60.1 | 219 | 9/16/2021 |
18.1.6 | 11,441 | 9/26/2021 |
18.1.5 | 786 | 9/7/2021 |
18.1.4 | 507 | 9/6/2021 |
18.1.3 | 581 | 8/19/2021 |
18.1.2 | 602 | 8/8/2021 |
18.1.1 | 576 | 8/5/2021 |
18.1.0 | 531 | 8/1/2021 |
18.0.1 | 519 | 7/30/2021 |
18.0.0 | 612 | 7/26/2021 |
17.0.8 | 14,071 | 7/7/2021 |
17.0.7 | 4,792 | 6/16/2021 |
17.0.6 | 837 | 6/5/2021 |
17.0.5 | 2,100 | 5/28/2021 |
17.0.4 | 2,768 | 5/4/2021 |
17.0.3 | 527 | 5/1/2021 |
17.0.2 | 21,133 | 4/22/2021 |
17.0.1 | 508 | 4/18/2021 |
17.0.0 | 1,435 | 3/26/2021 |
16.5.6 | 517 | 3/25/2021 |
16.5.5 | 508 | 3/23/2021 |
16.5.4 | 4,153 | 3/9/2021 |
16.5.3 | 502 | 2/26/2021 |
16.5.2 | 519 | 2/23/2021 |
16.5.1 | 545 | 2/21/2021 |
16.5.0 | 647 | 2/17/2021 |
16.4.5 | 547 | 2/15/2021 |
16.4.4 | 503 | 2/5/2021 |
16.4.3 | 1,164 | 1/27/2021 |
16.4.2 | 514 | 1/22/2021 |
16.4.1 | 560 | 1/21/2021 |
16.4.0 | 3,168 | 1/11/2021 |
16.3.3 | 572 | 1/8/2021 |
16.3.2 | 585 | 1/3/2021 |
16.3.1 | 574 | 12/31/2020 |
16.3.0 | 549 | 12/30/2020 |
16.2.1 | 643 | 12/27/2020 |
16.2.0 | 7,681 | 10/13/2020 |
16.1.5 | 702 | 10/4/2020 |
16.1.4 | 696 | 9/17/2020 |
16.1.3 | 753 | 9/13/2020 |
16.1.2 | 604 | 9/9/2020 |
16.1.1 | 630 | 9/3/2020 |
16.1.0 | 235,355 | 8/19/2020 |
16.0.3 | 1,996 | 8/15/2020 |
16.0.2 | 620 | 8/9/2020 |
16.0.1 | 658 | 8/8/2020 |
16.0.0 | 551 | 8/7/2020 |
15.3.0 | 106,187 | 7/23/2020 |
15.2.3 | 1,943 | 7/14/2020 |
15.2.2 | 2,883 | 5/19/2020 |
15.2.1 | 1,031 | 5/12/2020 |
15.2.0 | 645 | 5/9/2020 |
15.1.1 | 637 | 5/4/2020 |
15.1.0 | 1,217 | 4/13/2020 |
15.0.5 | 1,609 | 3/18/2020 |
15.0.4 | 1,678 | 2/28/2020 |
15.0.3 | 642 | 2/26/2020 |
15.0.2 | 61,959 | 1/20/2020 |
15.0.1 | 1,652 | 1/10/2020 |
15.0.0 | 4,783 | 12/17/2019 |
14.9.1 | 2,980 | 11/30/2019 |
14.9.0 | 641 | 11/29/2019 |
14.8.1 | 769 | 11/26/2019 |
14.8.0 | 12,440 | 11/20/2019 |
14.7.0 | 6,559 | 10/9/2019 |
14.6.6 | 698 | 10/8/2019 |
14.6.5 | 6,790 | 9/27/2019 |
14.6.4 | 772 | 9/21/2019 |
14.6.3 | 1,764 | 8/12/2019 |
14.6.2 | 1,504 | 8/3/2019 |
14.6.1 | 752 | 8/3/2019 |
14.6.0 | 845 | 7/26/2019 |
14.5.7 | 1,409 | 7/18/2019 |
14.5.6 | 4,884 | 7/10/2019 |
14.5.5 | 840 | 7/1/2019 |
14.5.4 | 820 | 6/17/2019 |
14.5.3 | 951 | 6/5/2019 |
14.5.2 | 787 | 5/30/2019 |
14.5.1 | 765 | 5/28/2019 |
14.5.0 | 814 | 5/24/2019 |
14.4.0 | 1,381 | 5/22/2019 |
14.3.4 | 904 | 5/14/2019 |
14.3.3 | 916 | 5/9/2019 |
14.3.2 | 853 | 4/30/2019 |
14.3.1 | 825 | 4/27/2019 |
14.3.0 | 875 | 4/24/2019 |
14.2.3 | 811 | 4/17/2019 |
14.2.2 | 812 | 4/10/2019 |
14.2.1 | 803 | 4/5/2019 |
14.2.0 | 2,946 | 3/16/2019 |
14.1.1 | 809 | 3/8/2019 |
14.1.0 | 1,013 | 2/11/2019 |
14.0.4 | 39,632 | 1/31/2019 |
14.0.3 | 929 | 1/22/2019 |
14.0.2 | 4,186 | 12/15/2018 |
14.0.1 | 17,012 | 11/29/2018 |
14.0.0 | 1,027 | 11/19/2018 |
13.3.0 | 3,375 | 11/16/2018 |
13.2.2 | 973 | 11/15/2018 |
13.2.1 | 1,041 | 11/13/2018 |
13.2.0 | 990 | 10/31/2018 |
13.1.5 | 965 | 10/31/2018 |
13.1.4 | 984 | 10/25/2018 |
13.1.3 | 988 | 10/18/2018 |
13.1.2 | 1,325 | 9/12/2018 |
13.1.1 | 2,378 | 9/11/2018 |
13.1.0 | 1,050 | 9/11/2018 |
13.0.0 | 1,102 | 8/29/2018 |
12.3.6 | 1,056 | 8/29/2018 |
12.3.5 | 1,532 | 8/22/2018 |
12.3.4 | 1,069 | 8/21/2018 |
12.3.3 | 25,832 | 8/21/2018 |
12.3.2 | 1,126 | 8/20/2018 |
12.3.1 | 1,108 | 8/20/2018 |
12.3.0 | 1,080 | 8/20/2018 |
12.2.2 | 1,121 | 8/15/2018 |
12.2.1 | 1,109 | 8/9/2018 |
12.2.0 | 1,073 | 8/8/2018 |
12.1.11 | 4,059 | 7/30/2018 |
12.1.10 | 2,699 | 7/20/2018 |
12.1.9 | 1,363 | 7/10/2018 |
12.1.8 | 1,185 | 7/2/2018 |
12.1.7 | 1,276 | 6/7/2018 |
12.1.6 | 9,265 | 6/4/2018 |
12.1.5 | 1,233 | 6/2/2018 |
12.1.4 | 1,243 | 5/25/2018 |
12.1.3 | 2,381 | 5/16/2018 |
12.1.2 | 1,184 | 5/15/2018 |
12.1.1 | 2,414 | 5/14/2018 |
12.1.0 | 1,220 | 5/9/2018 |
12.0.7 | 1,367 | 5/5/2018 |
12.0.6 | 1,267 | 5/4/2018 |
12.0.5 | 1,272 | 5/3/2018 |
12.0.4 | 2,425 | 4/30/2018 |
12.0.3 | 1,336 | 4/30/2018 |