Audit.NET.Elasticsearch 29.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Audit.NET.Elasticsearch --version 29.0.1
                    
NuGet\Install-Package Audit.NET.Elasticsearch -Version 29.0.1
                    
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="Audit.NET.Elasticsearch" Version="29.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Audit.NET.Elasticsearch" Version="29.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Audit.NET.Elasticsearch" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Audit.NET.Elasticsearch --version 29.0.1
                    
#r "nuget: Audit.NET.Elasticsearch, 29.0.1"
                    
#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.
#addin nuget:?package=Audit.NET.Elasticsearch&version=29.0.1
                    
Install Audit.NET.Elasticsearch as a Cake Addin
#tool nuget:?package=Audit.NET.Elasticsearch&version=29.0.1
                    
Install Audit.NET.Elasticsearch as a Cake Tool

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

NuGet Status NuGet Count

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" });

ZZZ Projects - Sponsorship

Entity Framework Extensions and Dapper Plus are major sponsors and are proud to contribute to the development of Audit.NET

Combine the power of auditing with the speed of Bulk Operations to get the best of both worlds — audit and performance.

Entity Framework Extensions - Sponsor

Dapper Plus - Sponsor

Product 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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
30.0.1 183 20 days ago
30.0.0 146 21 days ago
29.0.1 554 a month ago
29.0.0 494 a month ago
28.0.0 160 a month ago
27.5.3 184 2 months ago
27.5.2 272 2 months ago
27.5.1 109 2 months ago
27.5.0 4,001 3 months ago
27.4.1 530 4 months ago
27.4.0 117 5 months ago
27.3.3 1,412 5 months ago
27.3.2 291 6 months ago
27.3.1 99 6 months ago
27.3.0 218 6 months ago
27.2.0 1,201 7 months ago
27.1.1 479 8 months ago
27.1.0 125 8 months ago
27.0.3 310 9 months ago
27.0.2 597 9 months ago
27.0.1 147 9 months ago
27.0.0 120 9 months ago
26.0.1 363 10 months ago
26.0.0 615 7/19/2024
25.0.7 45,085 7/4/2024
25.0.6 1,606 6/24/2024
25.0.5 214 6/18/2024
25.0.4 14,235 3/24/2024
25.0.3 169 3/13/2024
25.0.2 147 3/12/2024
25.0.1 275 2/28/2024
25.0.0 7,925 2/16/2024
24.0.1 186 2/12/2024
24.0.0 138 2/12/2024
23.0.0 5,614 12/14/2023
22.1.0 27,487 12/9/2023
22.0.2 12,016 12/1/2023
22.0.1 5,261 11/16/2023
22.0.0 239 11/14/2023
21.1.0 2,545 10/9/2023
21.0.4 21,017 9/15/2023
21.0.3 13,773 7/9/2023
21.0.2 240 7/6/2023
21.0.1 3,727 5/27/2023
21.0.0 947 4/15/2023
20.2.4 534 3/27/2023
20.2.3 1,696 3/17/2023
20.2.2 330 3/14/2023
20.2.1 329 3/11/2023
20.2.0 482 3/7/2023
20.1.6 379 2/23/2023
20.1.5 5,130 2/9/2023
20.1.4 1,863 1/28/2023
20.1.3 1,232 12/21/2022
20.1.2 543 12/14/2022
20.1.1 435 12/12/2022
20.1.0 460 12/4/2022
20.0.4 420 11/30/2022
20.0.3 5,162 10/28/2022
20.0.2 501 10/26/2022
20.0.1 863 10/21/2022
20.0.0 1,226 10/1/2022
19.4.1 14,793 9/10/2022
19.4.0 655 9/2/2022
19.3.0 1,371 8/23/2022
19.2.2 824 8/11/2022
19.2.1 941 8/6/2022
19.2.0 686 7/24/2022
19.1.4 2,044 5/23/2022
19.1.3 565 5/22/2022
19.1.2 595 5/18/2022
19.1.1 790 4/28/2022
19.1.0 795 4/10/2022
19.0.7 849 3/13/2022
19.0.6 64,547 3/7/2022
19.0.5 3,252 1/28/2022
19.0.4 13,262 1/23/2022
19.0.3 4,092 12/14/2021
19.0.2 469 12/11/2021
19.0.1 12,907 11/20/2021
19.0.0 4,636 11/11/2021
19.0.0-rc.net60.2 223 9/26/2021
19.0.0-rc.net60.1 266 9/16/2021
18.1.6 11,564 9/26/2021
18.1.5 870 9/7/2021
18.1.4 555 9/6/2021
18.1.3 647 8/19/2021
18.1.2 650 8/8/2021
18.1.1 624 8/5/2021
18.1.0 579 8/1/2021
18.0.1 564 7/30/2021
18.0.0 662 7/26/2021
17.0.8 21,218 7/7/2021
17.0.7 5,251 6/16/2021
17.0.6 890 6/5/2021
17.0.5 2,149 5/28/2021
17.0.4 2,832 5/4/2021
17.0.3 581 5/1/2021
17.0.2 22,676 4/22/2021
17.0.1 561 4/18/2021
17.0.0 1,493 3/26/2021
16.5.6 574 3/25/2021
16.5.5 562 3/23/2021
16.5.4 6,220 3/9/2021
16.5.3 558 2/26/2021
16.5.2 578 2/23/2021
16.5.1 603 2/21/2021
16.5.0 710 2/17/2021
16.4.5 603 2/15/2021
16.4.4 562 2/5/2021
16.4.3 1,532 1/27/2021
16.4.2 573 1/22/2021
16.4.1 619 1/21/2021
16.4.0 4,155 1/11/2021
16.3.3 631 1/8/2021
16.3.2 661 1/3/2021
16.3.1 631 12/31/2020
16.3.0 606 12/30/2020
16.2.1 701 12/27/2020
16.2.0 8,096 10/13/2020
16.1.5 766 10/4/2020
16.1.4 753 9/17/2020
16.1.3 811 9/13/2020
16.1.2 664 9/9/2020
16.1.1 691 9/3/2020
16.1.0 235,535 8/19/2020
16.0.3 2,054 8/15/2020
16.0.2 678 8/9/2020
16.0.1 714 8/8/2020
16.0.0 608 8/7/2020
15.3.0 119,537 7/23/2020
15.2.3 2,007 7/14/2020
15.2.2 3,101 5/19/2020
15.2.1 1,097 5/12/2020
15.2.0 709 5/9/2020
15.1.1 702 5/4/2020
15.1.0 1,281 4/13/2020
15.0.5 1,673 3/18/2020
15.0.4 1,746 2/28/2020
15.0.3 707 2/26/2020
15.0.2 62,023 1/20/2020
15.0.1 1,717 1/10/2020
15.0.0 4,915 12/17/2019
14.9.1 4,381 11/30/2019
14.9.0 704 11/29/2019
14.8.1 836 11/26/2019
14.8.0 12,505 11/20/2019
14.7.0 6,629 10/9/2019
14.6.6 766 10/8/2019
14.6.5 6,957 9/27/2019
14.6.4 838 9/21/2019
14.6.3 1,850 8/12/2019
14.6.2 1,575 8/3/2019
14.6.1 818 8/3/2019
14.6.0 915 7/26/2019
14.5.7 1,478 7/18/2019
14.5.6 4,961 7/10/2019
14.5.5 906 7/1/2019
14.5.4 890 6/17/2019
14.5.3 1,022 6/5/2019
14.5.2 856 5/30/2019
14.5.1 833 5/28/2019
14.5.0 883 5/24/2019
14.4.0 1,451 5/22/2019
14.3.4 977 5/14/2019
14.3.3 989 5/9/2019
14.3.2 924 4/30/2019
14.3.1 897 4/27/2019
14.3.0 951 4/24/2019
14.2.3 878 4/17/2019
14.2.2 883 4/10/2019
14.2.1 875 4/5/2019
14.2.0 3,031 3/16/2019
14.1.1 881 3/8/2019
14.1.0 1,086 2/11/2019
14.0.4 41,416 1/31/2019
14.0.3 1,000 1/22/2019
14.0.2 4,261 12/15/2018
14.0.1 17,085 11/29/2018
14.0.0 1,111 11/19/2018
13.3.0 3,458 11/16/2018
13.2.2 1,056 11/15/2018
13.2.1 1,125 11/13/2018
13.2.0 1,072 10/31/2018
13.1.5 1,053 10/31/2018
13.1.4 1,073 10/25/2018
13.1.3 1,075 10/18/2018
13.1.2 1,416 9/12/2018
13.1.1 2,470 9/11/2018
13.1.0 1,143 9/11/2018
13.0.0 1,198 8/29/2018
12.3.6 1,147 8/29/2018
12.3.5 1,622 8/22/2018
12.3.4 1,162 8/21/2018
12.3.3 25,925 8/21/2018
12.3.2 1,221 8/20/2018
12.3.1 1,202 8/20/2018
12.3.0 1,173 8/20/2018
12.2.2 1,216 8/15/2018
12.2.1 1,203 8/9/2018
12.2.0 1,221 8/8/2018
12.1.11 4,206 7/30/2018
12.1.10 2,847 7/20/2018
12.1.9 1,574 7/10/2018
12.1.8 1,398 7/2/2018
12.1.7 1,490 6/7/2018
12.1.6 9,411 6/4/2018
12.1.5 1,445 6/2/2018
12.1.4 1,459 5/25/2018
12.1.3 2,534 5/16/2018
12.1.2 1,337 5/15/2018
12.1.1 2,641 5/14/2018
12.1.0 1,447 5/9/2018
12.0.7 1,592 5/5/2018
12.0.6 1,493 5/4/2018
12.0.5 1,499 5/3/2018
12.0.4 2,646 4/30/2018
12.0.3 1,567 4/30/2018