Questions tagged [audit.net]

An extensible framework to audit executing operations in .NET

An extensible framework to audit executing operations in .NET including support for .NET Framework 4.5 and Net Core.

With Audit.NET you can generate tracking information about operations being executed. Logs environmental information such as the caller user id, machine name, method name, exceptions, including execution time and duration.

Extensions to log to json Files, Event Log, SQL, MySQL, MongoDB, AzureBlob, PostgreSQL, Redis, Elasticsearch and CosmosDB are provided. And also extensions to audit different systems such as EntityFramework, MVC, WebAPI, SignalR and WCF.

Project site

121 questions
1
vote
1 answer

Invalid cast exception when audit logging from multiple tables to a single EF audit table

My application uses Audit.NET with Audit.EntityFramework for audit logging data changes. For the purpose of facilitation the creation of audit log / data changes visualisation, I decided to log changes from a few tables into a single one. Long story…
damird
  • 73
  • 4
1
vote
2 answers

Include fields from related tables

I'm using EF with DotNet Core 2.1 in my application. The application deals with data in multiple related and with FK interconnected tables. I need audit logging data only changes to one table. However, my problem is, the table I need to audit log…
damird
  • 73
  • 4
1
vote
0 answers

Audit.Net Audit.MVC Extension Is Not Logging

I'm trying to setup Audit.NET's Audit.MVC extension, but it's not creating log files. I'm thinking im missing something obvious here, here's what i've got, i can't find any more documentation on what i should be doing. Controller using System; using…
loveforfire33
  • 1,090
  • 3
  • 25
  • 46
1
vote
1 answer

Does Audit.NET EF work with EF Core 2.1, and specifically ambient transactions

Just stumbled on this library (EF version) and looks very good. Just wondering if this is currently compatible with EF Core 2.1 as well as ambient transactions. I see that there is a onScopeCreated / onScopeSaving to handle transactions. Will…
Los Morales
  • 2,061
  • 7
  • 26
  • 42
1
vote
0 answers

Object multiple reference IEntityTracker error while saving audit table

first I know this question has been asked but I really couldn't find an answer nor find the root of the problem so maybe a someone points me in the right direction. I'm having the An entity object cannot be referenced by multiple instances of…
Asım Gündüz
  • 1,257
  • 3
  • 17
  • 42
1
vote
1 answer

Setting up for selective auditing in same DbContext

I just stumbled onto Audit.Net and I'm hooked. I went through the Audit.Net Entity Framework (6) documentation and am a bit lost in the output part. My solution is a bit many-layers design: Mvc 5 website Wcf Client Using…
DoomerDGR8
  • 4,840
  • 6
  • 43
  • 91
1
vote
0 answers

Audit.net framework in asp.net mvc performance using AuditIdentityDbContext

I am using the audit.net and audit.entityframework for audit logging changes made in a asp.net MVC 5 application using entityframework code first principle. On a user webform multiple roles can be assigned to a user. Using the following short loop…
pbos
  • 11
  • 1
1
vote
1 answer

Audit.WebAPI configuration

I am using version 7.0.6 of Audit.NET. I added the following line to my WEB API registration method config.Filters.Add(new Audit.WebApi.AuditApiAttribute()); When i run the application it gives the following runtime error self referencing loop…
Srikar
  • 31
  • 3
1
vote
1 answer

Hold Old and New value in SaveChange as DbEntityEntry.Entity to Audit

As you know we can Audit object in SaveChange() but I have some problem with Modified and Deleted entities as following, First I am using Audit.Net(this is very simple to use) to Audit my objects the below method should do audit as: private int…
Aria
  • 3,724
  • 1
  • 20
  • 51
0
votes
1 answer

How to add @timestamp field to Audit.Net event before sending into ElasticSearch

I am using Audit.Net with ElasticSearch DataProvider to store API logs into an Elastic index. And I need to implement Elastic search ILM on that index, but to do this a "@timestamp" field need to be set in the root of the document that elastic index…
0
votes
1 answer

Audit.Net doesn't work with default asp.net Core DI

Good afternoon. I tried to use this library in my Asp.Net Core application. I need to collect logs from my Web.Api app (via audit.net.webapi), and from the server (audit.net). To do this, I created a custom provider, in which, through DI…
0
votes
0 answers

Getting Failed while calling GetEvents from postgresqlprovider

IEnumerable events = provider.EnumerateEvents("EventData #> '{Environment,UserName}' = '"abc"'");
0
votes
1 answer

How to convert StartDate and EndDate to DateTimeZone in Event Audit .Net?

{ "EventType": "Order:Update", "Environment": { "UserName": "Federico", "MachineName": "HP", "DomainName": "HP", "CallingMethodName": "Audit.UnitTest.AuditTests.TestUpdate()", "Exception": null, "Culture": "en-GB" }, "Target": { "Type":…
Calvin
  • 3
  • 2
0
votes
2 answers

Audit.net with azure table storage

How can i store audit data in azure table storage,audit.net provides (https://github.com/thepirat000/Audit.NET#data-providers-included) sqldataprovider only can you please help me. Thanks
-1
votes
1 answer

Audit.Net MVC - How to solve the NullReferenceException?

We have been using the Audit.Net package in our system. It is very useful! However, we have run into an error when trying to implement it for a different environment/client. The auditing does work in a different Controller class, but in this one we…
Igavshne
  • 699
  • 7
  • 33
1 2 3
8
9