Audit.NET.Elasticsearch
27.3.2
dotnet add package Audit.NET.Elasticsearch --version 27.3.2
NuGet\Install-Package Audit.NET.Elasticsearch -Version 27.3.2
<PackageReference Include="Audit.NET.Elasticsearch" Version="27.3.2" />
paket add Audit.NET.Elasticsearch --version 27.3.2
#r "nuget: Audit.NET.Elasticsearch, 27.3.2"
// Install Audit.NET.Elasticsearch as a Cake Addin #addin nuget:?package=Audit.NET.Elasticsearch&version=27.3.2 // Install Audit.NET.Elasticsearch as a Cake Tool #tool nuget:?package=Audit.NET.Elasticsearch&version=27.3.2
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.3.2)
- Elastic.Clients.Elasticsearch (>= 8.16.3)
-
.NETStandard 2.0
- Audit.NET (>= 27.3.2)
- Elastic.Clients.Elasticsearch (>= 8.16.3)
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.3.2 | 123 | 12/11/2024 |
27.3.1 | 73 | 12/10/2024 |
27.3.0 | 148 | 12/8/2024 |
27.2.0 | 216 | 11/23/2024 |
27.1.1 | 306 | 10/28/2024 |
27.1.0 | 97 | 10/24/2024 |
27.0.3 | 270 | 9/25/2024 |
27.0.2 | 252 | 9/19/2024 |
27.0.1 | 128 | 9/4/2024 |
27.0.0 | 106 | 9/3/2024 |
26.0.1 | 278 | 8/22/2024 |
26.0.0 | 352 | 7/19/2024 |
25.0.7 | 34,916 | 7/4/2024 |
25.0.6 | 1,084 | 6/24/2024 |
25.0.5 | 195 | 6/18/2024 |
25.0.4 | 14,061 | 3/24/2024 |
25.0.3 | 152 | 3/13/2024 |
25.0.2 | 132 | 3/12/2024 |
25.0.1 | 241 | 2/28/2024 |
25.0.0 | 2,645 | 2/16/2024 |
24.0.1 | 169 | 2/12/2024 |
24.0.0 | 124 | 2/12/2024 |
23.0.0 | 4,748 | 12/14/2023 |
22.1.0 | 27,433 | 12/9/2023 |
22.0.2 | 11,983 | 12/1/2023 |
22.0.1 | 4,276 | 11/16/2023 |
22.0.0 | 226 | 11/14/2023 |
21.1.0 | 2,233 | 10/9/2023 |
21.0.4 | 21,008 | 9/15/2023 |
21.0.3 | 13,758 | 7/9/2023 |
21.0.2 | 219 | 7/6/2023 |
21.0.1 | 3,514 | 5/27/2023 |
21.0.0 | 917 | 4/15/2023 |
20.2.4 | 510 | 3/27/2023 |
20.2.3 | 1,666 | 3/17/2023 |
20.2.2 | 310 | 3/14/2023 |
20.2.1 | 306 | 3/11/2023 |
20.2.0 | 462 | 3/7/2023 |
20.1.6 | 356 | 2/23/2023 |
20.1.5 | 5,080 | 2/9/2023 |
20.1.4 | 1,840 | 1/28/2023 |
20.1.3 | 1,204 | 12/21/2022 |
20.1.2 | 517 | 12/14/2022 |
20.1.1 | 411 | 12/12/2022 |
20.1.0 | 433 | 12/4/2022 |
20.0.4 | 393 | 11/30/2022 |
20.0.3 | 4,236 | 10/28/2022 |
20.0.2 | 474 | 10/26/2022 |
20.0.1 | 835 | 10/21/2022 |
20.0.0 | 1,197 | 10/1/2022 |
19.4.1 | 9,097 | 9/10/2022 |
19.4.0 | 626 | 9/2/2022 |
19.3.0 | 1,335 | 8/23/2022 |
19.2.2 | 791 | 8/11/2022 |
19.2.1 | 909 | 8/6/2022 |
19.2.0 | 655 | 7/24/2022 |
19.1.4 | 2,007 | 5/23/2022 |
19.1.3 | 532 | 5/22/2022 |
19.1.2 | 561 | 5/18/2022 |
19.1.1 | 752 | 4/28/2022 |
19.1.0 | 751 | 4/10/2022 |
19.0.7 | 801 | 3/13/2022 |
19.0.6 | 62,541 | 3/7/2022 |
19.0.5 | 3,163 | 1/28/2022 |
19.0.4 | 13,219 | 1/23/2022 |
19.0.3 | 4,034 | 12/14/2021 |
19.0.2 | 428 | 12/11/2021 |
19.0.1 | 12,864 | 11/20/2021 |
19.0.0 | 4,587 | 11/11/2021 |
19.0.0-rc.net60.2 | 181 | 9/26/2021 |
19.0.0-rc.net60.1 | 225 | 9/16/2021 |
18.1.6 | 11,478 | 9/26/2021 |
18.1.5 | 796 | 9/7/2021 |
18.1.4 | 512 | 9/6/2021 |
18.1.3 | 589 | 8/19/2021 |
18.1.2 | 608 | 8/8/2021 |
18.1.1 | 584 | 8/5/2021 |
18.1.0 | 537 | 8/1/2021 |
18.0.1 | 525 | 7/30/2021 |
18.0.0 | 618 | 7/26/2021 |
17.0.8 | 14,556 | 7/7/2021 |
17.0.7 | 4,917 | 6/16/2021 |
17.0.6 | 843 | 6/5/2021 |
17.0.5 | 2,106 | 5/28/2021 |
17.0.4 | 2,774 | 5/4/2021 |
17.0.3 | 533 | 5/1/2021 |
17.0.2 | 21,397 | 4/22/2021 |
17.0.1 | 514 | 4/18/2021 |
17.0.0 | 1,441 | 3/26/2021 |
16.5.6 | 523 | 3/25/2021 |
16.5.5 | 514 | 3/23/2021 |
16.5.4 | 4,448 | 3/9/2021 |
16.5.3 | 509 | 2/26/2021 |
16.5.2 | 525 | 2/23/2021 |
16.5.1 | 553 | 2/21/2021 |
16.5.0 | 653 | 2/17/2021 |
16.4.5 | 553 | 2/15/2021 |
16.4.4 | 509 | 2/5/2021 |
16.4.3 | 1,226 | 1/27/2021 |
16.4.2 | 520 | 1/22/2021 |
16.4.1 | 566 | 1/21/2021 |
16.4.0 | 3,240 | 1/11/2021 |
16.3.3 | 578 | 1/8/2021 |
16.3.2 | 591 | 1/3/2021 |
16.3.1 | 580 | 12/31/2020 |
16.3.0 | 555 | 12/30/2020 |
16.2.1 | 649 | 12/27/2020 |
16.2.0 | 7,742 | 10/13/2020 |
16.1.5 | 714 | 10/4/2020 |
16.1.4 | 702 | 9/17/2020 |
16.1.3 | 761 | 9/13/2020 |
16.1.2 | 612 | 9/9/2020 |
16.1.1 | 638 | 9/3/2020 |
16.1.0 | 235,361 | 8/19/2020 |
16.0.3 | 2,002 | 8/15/2020 |
16.0.2 | 626 | 8/9/2020 |
16.0.1 | 666 | 8/8/2020 |
16.0.0 | 559 | 8/7/2020 |
15.3.0 | 108,221 | 7/23/2020 |
15.2.3 | 1,953 | 7/14/2020 |
15.2.2 | 2,896 | 5/19/2020 |
15.2.1 | 1,037 | 5/12/2020 |
15.2.0 | 651 | 5/9/2020 |
15.1.1 | 643 | 5/4/2020 |
15.1.0 | 1,223 | 4/13/2020 |
15.0.5 | 1,615 | 3/18/2020 |
15.0.4 | 1,684 | 2/28/2020 |
15.0.3 | 648 | 2/26/2020 |
15.0.2 | 61,965 | 1/20/2020 |
15.0.1 | 1,660 | 1/10/2020 |
15.0.0 | 4,801 | 12/17/2019 |
14.9.1 | 3,209 | 11/30/2019 |
14.9.0 | 647 | 11/29/2019 |
14.8.1 | 775 | 11/26/2019 |
14.8.0 | 12,446 | 11/20/2019 |
14.7.0 | 6,565 | 10/9/2019 |
14.6.6 | 708 | 10/8/2019 |
14.6.5 | 6,866 | 9/27/2019 |
14.6.4 | 778 | 9/21/2019 |
14.6.3 | 1,790 | 8/12/2019 |
14.6.2 | 1,510 | 8/3/2019 |
14.6.1 | 758 | 8/3/2019 |
14.6.0 | 851 | 7/26/2019 |
14.5.7 | 1,415 | 7/18/2019 |
14.5.6 | 4,892 | 7/10/2019 |
14.5.5 | 846 | 7/1/2019 |
14.5.4 | 828 | 6/17/2019 |
14.5.3 | 957 | 6/5/2019 |
14.5.2 | 793 | 5/30/2019 |
14.5.1 | 771 | 5/28/2019 |
14.5.0 | 820 | 5/24/2019 |
14.4.0 | 1,387 | 5/22/2019 |
14.3.4 | 915 | 5/14/2019 |
14.3.3 | 924 | 5/9/2019 |
14.3.2 | 861 | 4/30/2019 |
14.3.1 | 832 | 4/27/2019 |
14.3.0 | 881 | 4/24/2019 |
14.2.3 | 817 | 4/17/2019 |
14.2.2 | 819 | 4/10/2019 |
14.2.1 | 811 | 4/5/2019 |
14.2.0 | 2,956 | 3/16/2019 |
14.1.1 | 815 | 3/8/2019 |
14.1.0 | 1,019 | 2/11/2019 |
14.0.4 | 39,981 | 1/31/2019 |
14.0.3 | 935 | 1/22/2019 |
14.0.2 | 4,194 | 12/15/2018 |
14.0.1 | 17,021 | 11/29/2018 |
14.0.0 | 1,036 | 11/19/2018 |
13.3.0 | 3,384 | 11/16/2018 |
13.2.2 | 982 | 11/15/2018 |
13.2.1 | 1,050 | 11/13/2018 |
13.2.0 | 1,001 | 10/31/2018 |
13.1.5 | 977 | 10/31/2018 |
13.1.4 | 995 | 10/25/2018 |
13.1.3 | 999 | 10/18/2018 |
13.1.2 | 1,336 | 9/12/2018 |
13.1.1 | 2,389 | 9/11/2018 |
13.1.0 | 1,061 | 9/11/2018 |
13.0.0 | 1,116 | 8/29/2018 |
12.3.6 | 1,067 | 8/29/2018 |
12.3.5 | 1,543 | 8/22/2018 |
12.3.4 | 1,080 | 8/21/2018 |
12.3.3 | 25,843 | 8/21/2018 |
12.3.2 | 1,137 | 8/20/2018 |
12.3.1 | 1,121 | 8/20/2018 |
12.3.0 | 1,092 | 8/20/2018 |
12.2.2 | 1,132 | 8/15/2018 |
12.2.1 | 1,120 | 8/9/2018 |
12.2.0 | 1,084 | 8/8/2018 |
12.1.11 | 4,070 | 7/30/2018 |
12.1.10 | 2,710 | 7/20/2018 |
12.1.9 | 1,374 | 7/10/2018 |
12.1.8 | 1,196 | 7/2/2018 |
12.1.7 | 1,287 | 6/7/2018 |
12.1.6 | 9,276 | 6/4/2018 |
12.1.5 | 1,244 | 6/2/2018 |
12.1.4 | 1,254 | 5/25/2018 |
12.1.3 | 2,394 | 5/16/2018 |
12.1.2 | 1,195 | 5/15/2018 |
12.1.1 | 2,425 | 5/14/2018 |
12.1.0 | 1,231 | 5/9/2018 |
12.0.7 | 1,378 | 5/5/2018 |
12.0.6 | 1,278 | 5/4/2018 |
12.0.5 | 1,283 | 5/3/2018 |
12.0.4 | 2,436 | 4/30/2018 |
12.0.3 | 1,352 | 4/30/2018 |