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
35
votes
7 answers

How to Change the time zone in Python logging?

I would like to change the timestamp in the log file so that it reflects my current time zone so that i can debug errors at a faster rate, is it possible that i can change the time zone in the log file ? currently my config…
25mhz
  • 1,052
  • 2
  • 10
  • 14
28
votes
4 answers

Log User Activity on ASP.NET MVC Application

Is there A good strategy to Log the User activity on an ASP MVC App? (ActionFilters/ HTTPModules). Something like last user activity (just like StackOverflow "Seen 23 mins ago"), and even what Pages and Controllers were used, and pushing even…
JOBG
  • 4,544
  • 4
  • 26
  • 47
16
votes
3 answers

How to log raw HTTP request/response in Python FastAPI?

We are writing a web service using Python FastAPI that is going to be hosted in Kubernetes. For auditing purposes, we need to save the raw JSON body of the request/response for specific routes. The body size of both request and response JSON is…
12
votes
5 answers

Audit Property change - Spring MVC+ JPA

I have a class Client. I want to be able to audit the changes of property of this class(not entire class - just it's properties). public class Client { private Long id; private String firstName; private String lastName; private String email; private…
Irakli
  • 973
  • 3
  • 19
  • 45
12
votes
2 answers

How to get id from entity for Auditlog in Entity Framework 6

I know it's several similar posts out there, but I cannot find any with a solution to this issue. I want to add a (sort of) AudioLog when adding, changing or deleting entities (soft-delete) in Entity Framework 6. I've overridden the SaveChanges and…
10
votes
5 answers

How to create Triggers to add the change events into Audit Log tables

Suppose we have 50 tables in a database and we want to capture all the changes (Previous value and new value of columns) across the columns of each table. An audit table will be there, which will have below columns: ID, Server_Name, User_Name,…
9
votes
4 answers

How to log production database changes made via the Django shell

I would like to automatically generate some sort of log of all the database changes that are made via the Django shell in the production environment. We use schema and data migration scripts to alter the production database and they are version…
viam0Zah
  • 25,949
  • 8
  • 77
  • 100
9
votes
4 answers

Rails 4 Auditing Gem

I'm looking for a Rails 4 supported gem that does auditing related tasks. Similar gems I found, but are not supporting Rails 4 (except for paper-trail, but it has all of that versioning stuff that I don't need): github audited github pfeed github…
andro1d
  • 568
  • 2
  • 11
  • 20
9
votes
2 answers

Injecting JPA's Entity Manager in Hibernate's EmptyInterceptor

I am using JPA-2.0 with Hibernate in my data access layer. For audit logging purposes, I am using Hibernate's EmptyInterceptor by configuring below property in persistence.xml:
Narendra Verma
  • 2,372
  • 6
  • 34
  • 61
8
votes
1 answer

How to add audit for logout with Jhipster generated code?

I debugged how audit is getting added into system for successful login and figured out that CustomAuditEventRepository.auditEventRepository().add(AuditEvent event) is getting invoked using aop. Is there any documentation how to add audits for any…
raok1997
  • 369
  • 5
  • 12
8
votes
0 answers

SQLAlchemy audit logging; how to handle deletes?

I'm using a modified version of the versioning code example that comes with SQLAlchemy to record a user id and date on changes. However, I also want to modify it so deletes are done by marking a is_deleted type flag instead of running an actual SQL…
Tim Tisdall
  • 9,914
  • 3
  • 52
  • 82
7
votes
0 answers

Auditing in Express.js Middleware

Im looking at universal way to audit the express middleware that I have written for some APIs. I have come up with several ways of doing but none seems that efficient to me. For now I'm only wanting to log to console or a log file but later on I…
nixgadget
  • 6,983
  • 16
  • 70
  • 103
7
votes
2 answers

Double records inserted in grails using audit-logging plugin

I have installed the audit-logging plugin into my application. The grails version is 2.1.1 and the plugin version is 1.0.1. In my Config.groovy class, I have added this auditLog { verbose = true // verbosely log all changed values to db …
7
votes
2 answers

How can I encrypt password in log4j.properties?

Is there any way that i can encrypt password in log4j.properties following is my…
ANILBABU
  • 297
  • 2
  • 6
  • 21
6
votes
0 answers

Executing Security Class(TokenAuthenticator) before Data-Dog/AuditBundle

I am using Data-Dog/Auditbundle for AuditLogs in my symfony application.Also I have TokenAuthenticator as my guard for api's. But bundle's EventSubscriber is being called before TokenAuthenticator and hence public function…
Vipulw
  • 1,253
  • 5
  • 12
1
2 3
25 26