Questions tagged [audit-logging]

Audit-logging is the practice of keeping records of system activity

Audit-logging is the practice of keeping records of system activity. Audit logging does not contain information about the technical operation of a system, like print statements, but rather keeps track of discrete events that occur within a system. Examples are "User X accessed data Y at Time T", etc.

389 questions
6
votes
2 answers

Hibernate audit log of fields' change

How can I log the changes of the entity into log files? Consider I have Person like this. import org.hibernate.envers.Audited; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.GeneratedValue; import…
mohsen Lzd
  • 313
  • 1
  • 4
  • 13
5
votes
2 answers

Log4Net is creating file but not writing to it

Recently i had an issue making Log4Net work (described here) but after that it was OK. I have left this behind a while because i needed to develop some modules and i left the logging somewhat behind. Now that i look, i have even tried changing the…
Dimitri
  • 1,185
  • 2
  • 15
  • 37
5
votes
2 answers

Unable to log in MS SQL using Serilog

I am using Serilog with MSSqlServer sink. Even though I followed all the steps mentioned in Serilog.Sinks.MSSqlServer still I am unable to log any message in SQL Table. I really appreciate if you could tell me what part do I missed or configured…
ssmsexe
  • 209
  • 2
  • 4
  • 10
5
votes
2 answers

NHibernate Envers like Audit Log with Entity Framework 6+

NHibernate Envers does a good job of creating an Audit Log whenever an entity is Updated/Deleted. Basically it creates an Audit table for each auditable entity and write a snapshot of the data into the Audit table. For e.g. if Customer records are…
Deep Shah
  • 420
  • 2
  • 14
5
votes
1 answer

How to access current_account in models in Padrino?

I'm working on a Padrino application that has a main App and an Admin app. When a user logins through session, I just run the following two lines to log him in. account = Account.authenticate(params[:email],…
Kevon
  • 137
  • 2
  • 8
4
votes
3 answers

Method to record what activities are performed on Database? -MySQL / PHP

I have decided to create a new table in my database that will be used for auditing all actions performed on my database. My table "activity" is fairly simple and contains the following columns: activity_id - the primary key user_id - foreign key…
tomaytotomato
  • 3,788
  • 16
  • 64
  • 119
4
votes
4 answers

How to get all the transaction logs (insert update delete) for a specific table in SQL Server 2008

I want to get all the transactions applied on a specific table in SQL Server 2008. I found the last time a table was updated using this script: SELECT OBJECT_NAME(OBJECT_ID) AS DatabaseName, last_user_update,* FROM…
hasan lamaa
  • 241
  • 2
  • 3
  • 5
4
votes
4 answers

Wrap log4j or create custom logger?

I have an application that needs to log two different types of messages: application log messages and audit messages. Application log messages match the standard lo4j Logger perfectly, but there are several required parameters for the audit log. I…
Brian
  • 2,375
  • 4
  • 24
  • 35
4
votes
6 answers

auditlog with Django and DRF

I need to implement auditlog feature in one of my project which is using Django 1.8 and Django-Rest-Framework 3.2.2. I have extended BaseUserManager class to create user model since I had to use email as a username in my application ( if this…
4
votes
2 answers

jpa non managed entities

Let's say I have to fire a query like this: Select primarykey, columnname, old_value, new_value from first_audit_log; Select primarykey, columnname, old_value, new_value from second_audit_log; Select primarykey, columnname, old_value, new_value…
user1224036
  • 988
  • 1
  • 15
  • 34
3
votes
4 answers

How to design a good auditing algorithm?

I need to perform some kind of auditing. We want to store when a record is inserted, updated, removed or opened. For now I have created a simple method on a Singleton class: public void Audit(string audit, AuditTypes type) { AuditEntry = new…
Martijn
  • 24,441
  • 60
  • 174
  • 261
3
votes
1 answer

Serilog audit log using sub-logger

I'm trying to use Serilog to write an audit log for a subset of log events. That is, of all the events which are logged, a subset should be logged using a sub-logger to my chosen sink(s) and if it fails, I want it to fail noisily with an…
Mark Embling
  • 12,605
  • 8
  • 39
  • 53
3
votes
1 answer

How can i get the logs of roles modifications on some specific IAM user in GCP

I need to know who modified(added or deleted) the roles for some specific IAM user in GCP. I could not get these details in GCP logging even after adding data write in audit logging for IAM permissions. Are we missing something here?
3
votes
2 answers

Is there a good way to find the person who deleted a message in a on_message_delete event?

Heyo, so I'm trying to make a delete logger that just essentially sends a message in a pre-defined channel saying 'x user deleted a message by x person' however I have a problem. So how I'm currently getting the name of who deleted the message is by…
Broso56
  • 55
  • 5
3
votes
2 answers

Disable Only HealthCheck Related Logging

I'm trying to figure out a way to disable any health-check related ILogger logging. I am aware of LogLevel filtering, but that will not work here. As an example, I have a healthcheck that makes an outbound call to a RabbitMQ metrics API. This…
Nathan A
  • 11,059
  • 4
  • 47
  • 63
1
2
3
25 26