Audit.NET.Elasticsearch 22.0.1

.NET Standard 2.0 .NET Framework 4.6.1
dotnet add package Audit.NET.Elasticsearch --version 22.0.1
NuGet\Install-Package Audit.NET.Elasticsearch -Version 22.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="22.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Audit.NET.Elasticsearch --version 22.0.1
#r "nuget: Audit.NET.Elasticsearch, 22.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.
// Install Audit.NET.Elasticsearch as a Cake Addin
#addin nuget:?package=Audit.NET.Elasticsearch&version=22.0.1

// Install Audit.NET.Elasticsearch as a Cake Tool
#tool nuget:?package=Audit.NET.Elasticsearch&version=22.0.1

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 AuditConnectionSettings(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. It is recommended to be an instance of AuditConnectionSettings.

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-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 is compatible.  net462 was computed.  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)
Additional computed target framework(s)
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
22.0.1 89 11/16/2023
22.0.0 59 11/14/2023
21.1.0 397 10/9/2023
21.0.4 18,434 9/15/2023
21.0.3 9,880 7/9/2023
21.0.2 146 7/6/2023
21.0.1 2,168 5/27/2023
21.0.0 806 4/15/2023
20.2.4 415 3/27/2023
20.2.3 1,145 3/17/2023
20.2.2 243 3/14/2023
20.2.1 240 3/11/2023
20.2.0 393 3/7/2023
20.1.6 281 2/23/2023
20.1.5 4,906 2/9/2023
20.1.4 1,768 1/28/2023
20.1.3 1,063 12/21/2022
20.1.2 446 12/14/2022
20.1.1 340 12/12/2022
20.1.0 382 12/4/2022
20.0.4 326 11/30/2022
20.0.3 1,817 10/28/2022
20.0.2 425 10/26/2022
20.0.1 769 10/21/2022
20.0.0 1,129 10/1/2022
19.4.1 4,392 9/10/2022
19.4.0 562 9/2/2022
19.3.0 1,147 8/23/2022
19.2.2 703 8/11/2022
19.2.1 842 8/6/2022
19.2.0 581 7/24/2022
19.1.4 1,854 5/23/2022
19.1.3 473 5/22/2022
19.1.2 501 5/18/2022
19.1.1 686 4/28/2022
19.1.0 688 4/10/2022
19.0.7 715 3/13/2022
19.0.6 58,553 3/7/2022
19.0.5 2,928 1/28/2022
19.0.4 13,033 1/23/2022
19.0.3 3,778 12/14/2021
19.0.2 367 12/11/2021
19.0.1 12,818 11/20/2021
19.0.0 4,525 11/11/2021
19.0.0-rc.net60.2 164 9/26/2021
19.0.0-rc.net60.1 204 9/16/2021
18.1.6 11,088 9/26/2021
18.1.5 574 9/7/2021
18.1.4 454 9/6/2021
18.1.3 520 8/19/2021
18.1.2 546 8/8/2021
18.1.1 522 8/5/2021
18.1.0 475 8/1/2021
18.0.1 463 7/30/2021
18.0.0 554 7/26/2021
17.0.8 9,960 7/7/2021
17.0.7 3,331 6/16/2021
17.0.6 789 6/5/2021
17.0.5 2,045 5/28/2021
17.0.4 2,713 5/4/2021
17.0.3 475 5/1/2021
17.0.2 17,721 4/22/2021
17.0.1 454 4/18/2021
17.0.0 1,379 3/26/2021
16.5.6 451 3/25/2021
16.5.5 458 3/23/2021
16.5.4 2,139 3/9/2021
16.5.3 448 2/26/2021
16.5.2 468 2/23/2021
16.5.1 494 2/21/2021
16.5.0 596 2/17/2021
16.4.5 496 2/15/2021
16.4.4 451 2/5/2021
16.4.3 924 1/27/2021
16.4.2 474 1/22/2021
16.4.1 510 1/21/2021
16.4.0 2,675 1/11/2021
16.3.3 515 1/8/2021
16.3.2 532 1/3/2021
16.3.1 520 12/31/2020
16.3.0 514 12/30/2020
16.2.1 589 12/27/2020
16.2.0 4,669 10/13/2020
16.1.5 646 10/4/2020
16.1.4 637 9/17/2020
16.1.3 692 9/13/2020
16.1.2 550 9/9/2020
16.1.1 574 9/3/2020
16.1.0 235,296 8/19/2020
16.0.3 1,946 8/15/2020
16.0.2 567 8/9/2020
16.0.1 606 8/8/2020
16.0.0 498 8/7/2020
15.3.0 76,855 7/23/2020
15.2.3 1,789 7/14/2020
15.2.2 2,395 5/19/2020
15.2.1 994 5/12/2020
15.2.0 592 5/9/2020
15.1.1 577 5/4/2020
15.1.0 1,163 4/13/2020
15.0.5 1,542 3/18/2020
15.0.4 1,611 2/28/2020
15.0.3 581 2/26/2020
15.0.2 61,905 1/20/2020
15.0.1 1,598 1/10/2020
15.0.0 4,637 12/17/2019
14.9.1 2,139 11/30/2019
14.9.0 588 11/29/2019
14.8.1 716 11/26/2019
14.8.0 12,381 11/20/2019
14.7.0 6,315 10/9/2019
14.6.6 640 10/8/2019
14.6.5 5,946 9/27/2019
14.6.4 719 9/21/2019
14.6.3 1,595 8/12/2019
14.6.2 1,436 8/3/2019
14.6.1 699 8/3/2019
14.6.0 786 7/26/2019
14.5.7 1,355 7/18/2019
14.5.6 4,809 7/10/2019
14.5.5 789 7/1/2019
14.5.4 742 6/17/2019
14.5.3 898 6/5/2019
14.5.2 743 5/30/2019
14.5.1 708 5/28/2019
14.5.0 755 5/24/2019
14.4.0 1,326 5/22/2019
14.3.4 839 5/14/2019
14.3.3 861 5/9/2019
14.3.2 794 4/30/2019
14.3.1 769 4/27/2019
14.3.0 809 4/24/2019
14.2.3 753 4/17/2019
14.2.2 747 4/10/2019
14.2.1 743 4/5/2019
14.2.0 2,864 3/16/2019
14.1.1 753 3/8/2019
14.1.0 937 2/11/2019
14.0.4 32,988 1/31/2019
14.0.3 876 1/22/2019
14.0.2 4,118 12/15/2018
14.0.1 16,942 11/29/2018
14.0.0 959 11/19/2018
13.3.0 3,284 11/16/2018
13.2.2 901 11/15/2018
13.2.1 972 11/13/2018
13.2.0 920 10/31/2018
13.1.5 894 10/31/2018
13.1.4 912 10/25/2018
13.1.3 917 10/18/2018
13.1.2 1,242 9/12/2018
13.1.1 2,301 9/11/2018
13.1.0 969 9/11/2018
13.0.0 1,024 8/29/2018
12.3.6 966 8/29/2018
12.3.5 1,447 8/22/2018
12.3.4 984 8/21/2018
12.3.3 25,752 8/21/2018
12.3.2 1,050 8/20/2018
12.3.1 1,031 8/20/2018
12.3.0 1,002 8/20/2018
12.2.2 1,040 8/15/2018
12.2.1 1,028 8/9/2018
12.2.0 1,014 8/8/2018
12.1.11 3,976 7/30/2018
12.1.10 2,627 7/20/2018
12.1.9 1,293 7/10/2018
12.1.8 1,108 7/2/2018
12.1.7 1,200 6/7/2018
12.1.6 9,199 6/4/2018
12.1.5 1,160 6/2/2018
12.1.4 1,171 5/25/2018
12.1.3 2,302 5/16/2018
12.1.2 1,115 5/15/2018
12.1.1 2,337 5/14/2018
12.1.0 1,146 5/9/2018
12.0.7 1,268 5/5/2018
12.0.6 1,206 5/4/2018
12.0.5 1,199 5/3/2018
12.0.4 2,349 4/30/2018
12.0.3 1,256 4/30/2018