Audit.NET.Elasticsearch 25.0.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package Audit.NET.Elasticsearch --version 25.0.5
                    
NuGet\Install-Package Audit.NET.Elasticsearch -Version 25.0.5
                    
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="25.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Audit.NET.Elasticsearch" Version="25.0.5" />
                    
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 25.0.5
                    
#r "nuget: Audit.NET.Elasticsearch, 25.0.5"
                    
#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.
#:package Audit.NET.Elasticsearch@25.0.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Audit.NET.Elasticsearch&version=25.0.5
                    
Install as a Cake Addin
#tool nuget:?package=Audit.NET.Elasticsearch&version=25.0.5
                    
Install 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 NEST 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()
{
    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 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
31.0.2 1,130 10/2/2025
31.0.1 1,875 8/28/2025
31.0.0 171 8/22/2025
30.1.3 181 8/19/2025
30.1.2 181 8/14/2025
30.1.1 211 8/13/2025
30.0.2 3,466 6/26/2025
30.0.1 1,277 5/29/2025
30.0.0 199 5/27/2025
29.0.1 852 5/8/2025
29.0.0 754 5/6/2025
28.0.0 216 5/5/2025
27.5.3 258 4/23/2025
27.5.2 378 4/9/2025
27.5.1 176 4/4/2025
27.5.0 9,125 3/5/2025
27.4.1 2,049 2/9/2025
27.4.0 169 1/29/2025
27.3.3 1,552 1/21/2025
27.3.2 360 12/11/2024
27.3.1 151 12/10/2024
27.3.0 281 12/8/2024
27.2.0 2,010 11/23/2024
27.1.1 604 10/28/2024
27.1.0 192 10/24/2024
27.0.3 367 9/25/2024
27.0.2 674 9/19/2024
27.0.1 218 9/4/2024
27.0.0 181 9/3/2024
26.0.1 962 8/22/2024
26.0.0 742 7/19/2024
25.0.7 45,743 7/4/2024
25.0.6 1,799 6/24/2024
25.0.5 271 6/18/2024
25.0.4 14,868 3/24/2024
25.0.3 221 3/13/2024
25.0.2 213 3/12/2024
25.0.1 334 2/28/2024
25.0.0 7,983 2/16/2024
24.0.1 257 2/12/2024
24.0.0 202 2/12/2024
23.0.0 6,864 12/14/2023
22.1.0 27,573 12/9/2023
22.0.2 12,096 12/1/2023
22.0.1 5,998 11/16/2023
22.0.0 273 11/14/2023
21.1.0 2,735 10/9/2023
21.0.4 21,070 9/15/2023
21.0.3 13,935 7/9/2023
21.0.2 300 7/6/2023
21.0.1 4,142 5/27/2023
21.0.0 1,023 4/15/2023
20.2.4 614 3/27/2023
20.2.3 1,771 3/17/2023
20.2.2 401 3/14/2023
20.2.1 410 3/11/2023
20.2.0 561 3/7/2023
20.1.6 459 2/23/2023
20.1.5 5,206 2/9/2023
20.1.4 1,943 1/28/2023
20.1.3 1,313 12/21/2022
20.1.2 620 12/14/2022
20.1.1 512 12/12/2022
20.1.0 535 12/4/2022
20.0.4 502 11/30/2022
20.0.3 5,984 10/28/2022
20.0.2 573 10/26/2022
20.0.1 937 10/21/2022
20.0.0 1,444 10/1/2022
19.4.1 19,226 9/10/2022
19.4.0 730 9/2/2022
19.3.0 1,444 8/23/2022
19.2.2 899 8/11/2022
19.2.1 1,030 8/6/2022
19.2.0 761 7/24/2022
19.1.4 2,149 5/23/2022
19.1.3 657 5/22/2022
19.1.2 675 5/18/2022
19.1.1 873 4/28/2022
19.1.0 881 4/10/2022
19.0.7 945 3/13/2022
19.0.6 66,316 3/7/2022
19.0.5 3,496 1/28/2022
19.0.4 13,355 1/23/2022
19.0.3 4,332 12/14/2021
19.0.2 554 12/11/2021
19.0.1 12,994 11/20/2021
19.0.0 4,725 11/11/2021
19.0.0-rc.net60.2 293 9/26/2021
19.0.0-rc.net60.1 334 9/16/2021
18.1.6 11,677 9/26/2021
18.1.5 971 9/7/2021
18.1.4 648 9/6/2021
18.1.3 728 8/19/2021
18.1.2 739 8/8/2021
18.1.1 701 8/5/2021
18.1.0 673 8/1/2021
18.0.1 651 7/30/2021
18.0.0 752 7/26/2021
17.0.8 28,538 7/7/2021
17.0.7 5,458 6/16/2021
17.0.6 974 6/5/2021
17.0.5 2,240 5/28/2021
17.0.4 2,930 5/4/2021
17.0.3 660 5/1/2021
17.0.2 24,174 4/22/2021
17.0.1 654 4/18/2021
17.0.0 1,590 3/26/2021
16.5.6 671 3/25/2021
16.5.5 665 3/23/2021
16.5.4 7,042 3/9/2021
16.5.3 660 2/26/2021
16.5.2 670 2/23/2021
16.5.1 698 2/21/2021
16.5.0 802 2/17/2021
16.4.5 702 2/15/2021
16.4.4 661 2/5/2021
16.4.3 1,632 1/27/2021
16.4.2 673 1/22/2021
16.4.1 719 1/21/2021
16.4.0 4,445 1/11/2021
16.3.3 733 1/8/2021
16.3.2 768 1/3/2021
16.3.1 729 12/31/2020
16.3.0 709 12/30/2020
16.2.1 798 12/27/2020
16.2.0 8,260 10/13/2020
16.1.5 870 10/4/2020
16.1.4 857 9/17/2020
16.1.3 920 9/13/2020
16.1.2 774 9/9/2020
16.1.1 796 9/3/2020
16.1.0 235,665 8/19/2020
16.0.3 2,152 8/15/2020
16.0.2 770 8/9/2020
16.0.1 811 8/8/2020
16.0.0 698 8/7/2020
15.3.0 125,693 7/23/2020
15.2.3 2,104 7/14/2020
15.2.2 3,325 5/19/2020
15.2.1 1,205 5/12/2020
15.2.0 810 5/9/2020
15.1.1 796 5/4/2020
15.1.0 1,378 4/13/2020
15.0.5 1,783 3/18/2020
15.0.4 1,842 2/28/2020
15.0.3 794 2/26/2020
15.0.2 62,131 1/20/2020
15.0.1 1,797 1/10/2020
15.0.0 5,040 12/17/2019
14.9.1 5,007 11/30/2019
14.9.0 800 11/29/2019
14.8.1 940 11/26/2019
14.8.0 12,594 11/20/2019
14.7.0 6,734 10/9/2019
14.6.6 872 10/8/2019
14.6.5 7,046 9/27/2019
14.6.4 939 9/21/2019
14.6.3 1,985 8/12/2019
14.6.2 1,665 8/3/2019
14.6.1 920 8/3/2019
14.6.0 1,006 7/26/2019
14.5.7 1,579 7/18/2019
14.5.6 5,070 7/10/2019
14.5.5 1,009 7/1/2019
14.5.4 977 6/17/2019
14.5.3 1,124 6/5/2019
14.5.2 968 5/30/2019
14.5.1 932 5/28/2019
14.5.0 977 5/24/2019
14.4.0 1,547 5/22/2019
14.3.4 1,066 5/14/2019
14.3.3 1,095 5/9/2019
14.3.2 1,020 4/30/2019
14.3.1 981 4/27/2019
14.3.0 1,061 4/24/2019
14.2.3 987 4/17/2019
14.2.2 973 4/10/2019
14.2.1 974 4/5/2019
14.2.0 3,118 3/16/2019
14.1.1 979 3/8/2019
14.1.0 1,172 2/11/2019
14.0.4 41,918 1/31/2019
14.0.3 1,102 1/22/2019
14.0.2 4,351 12/15/2018
14.0.1 17,170 11/29/2018
14.0.0 1,232 11/19/2018
13.3.0 3,571 11/16/2018
13.2.2 1,162 11/15/2018
13.2.1 1,248 11/13/2018
13.2.0 1,170 10/31/2018
13.1.5 1,149 10/31/2018
13.1.4 1,171 10/25/2018
13.1.3 1,181 10/18/2018
13.1.2 1,526 9/12/2018
13.1.1 2,576 9/11/2018
13.1.0 1,256 9/11/2018
13.0.0 1,311 8/29/2018
12.3.6 1,253 8/29/2018
12.3.5 1,730 8/22/2018
12.3.4 1,280 8/21/2018
12.3.3 26,033 8/21/2018
12.3.2 1,330 8/20/2018
12.3.1 1,320 8/20/2018
12.3.0 1,286 8/20/2018
12.2.2 1,332 8/15/2018
12.2.1 1,305 8/9/2018
12.2.0 1,380 8/8/2018
12.1.11 4,374 7/30/2018
12.1.10 3,004 7/20/2018
12.1.9 1,793 7/10/2018
12.1.8 1,621 7/2/2018
12.1.7 1,726 6/7/2018
12.1.6 9,587 6/4/2018
12.1.5 1,684 6/2/2018
12.1.4 1,703 5/25/2018
12.1.3 2,725 5/16/2018
12.1.2 1,494 5/15/2018
12.1.1 2,877 5/14/2018
12.1.0 1,689 5/9/2018
12.0.7 1,829 5/5/2018
12.0.6 1,721 5/4/2018
12.0.5 1,722 5/3/2018
12.0.4 2,875 4/30/2018
12.0.3 1,794 4/30/2018