SlideShare a Scribd company logo
Grails Audit Logging
By:
Vishal Sahu
What is Audit Log?
An Audit log is a security-relevant chronological record, set of records, and/or
destination and source of records that provide documentary evidence of the
sequence of activities that have affected at any time a specific operation,
procedure, or event.
Industries using Audit Logging:
● TeleCommunications
● Information Security
● Accounting
● Clinical Research
● Nursing Research
Grails Audit Logging
The Audit Logging plugin adds Grails GORM Events based Audit Logging
capabilities to a Grails project and it also adds support to domain models for
hooking into the Grails GORM events system.
Installation
dependencies {
compile 'org.grails.plugins:audit-logging:{version}'
}
Then:
grails compile
Create your Domain Artifact
After installing the plugin, you must perform the following command to let the
plugin create the audit-logging domain class within your project.
● grails audit-quickstart com.audit AuditTrail
Auditing of domain class
Enables audit logging using the introduced domain class AuditLogEvent which
will record insert, update, and delete events. Update events will be logged in
detail with the property name and the old and new values.
● static auditable = true
Event Handlers
You may use the optional event handlers in your Domain classes. Example:
● onSave
● onDelete
● onChange
If you want to use Events Handlers only, then you can use:
static auditable = [handlersOnly : true]
Thanks.
Sample Application: https://github.com/NexThoughts/Grails-Audit-Logging-Example-Demo
For any queries you can reach me at:
vishal@nexthoughts.com
https://github.com/Vishal-Sahu
https://github.com/Nexthoughts

More Related Content

PDF
NIIT C PROGRAMMING CERTIFICATE
PDF
Farallon Scooter DPV Manual mk5-mk6
PPTX
Museos y Teatros de la Zona Metropolitana de Guadalajara.
PDF
Презентація Zillya! Антивірус 2016
PDF
buku-iqra-5.pdf
PDF
SESINHO O CAVALEIRO DAS SOMBRAS
PDF
ข้อสอบโอเน็ตภาษาอังกฤษ ปี54
PDF
Hizb 20
NIIT C PROGRAMMING CERTIFICATE
Farallon Scooter DPV Manual mk5-mk6
Museos y Teatros de la Zona Metropolitana de Guadalajara.
Презентація Zillya! Антивірус 2016
buku-iqra-5.pdf
SESINHO O CAVALEIRO DAS SOMBRAS
ข้อสอบโอเน็ตภาษาอังกฤษ ปี54
Hizb 20

What's hot (18)

PDF
Chico Ludens Specijal 020 - Chico tajni agent
PDF
Colors FW25-26 trend book
PDF
1035 mocvare luizijane
PDF
Zagor VC OP 032 - Povratak Kandraksa-1
PDF
Pelajaran Bahasa Arab Nahwu Shorof Buku 1
PDF
Vajat erp 138
PDF
Iqro 3
PDF
Zagor - Tajna mlina
PDF
Dylan Dog VČ SB - 026 - Crni užas
PDF
Quran with urdu translation and Tafseer | Para14
PDF
Iqro 5
PDF
CAPE Caribbean Studies 2014 Paper 2
PDF
Certificate of AWARD EAMP-US EMBASSY 1
PDF
Quran with Tajwid Surah 10 ﴾القرآن سورۃ يونس﴿ Yunus 🙪 PDF
PDF
Vistas en Sistema Diédrico
PDF
ฟันฝ่าเก้าชั้นฟ้า เล่ม 1
DOCX
Cedula nieves
PDF
DPHE Clerk Cum Typist Exam Question Solution 2021.pdf
Chico Ludens Specijal 020 - Chico tajni agent
Colors FW25-26 trend book
1035 mocvare luizijane
Zagor VC OP 032 - Povratak Kandraksa-1
Pelajaran Bahasa Arab Nahwu Shorof Buku 1
Vajat erp 138
Iqro 3
Zagor - Tajna mlina
Dylan Dog VČ SB - 026 - Crni užas
Quran with urdu translation and Tafseer | Para14
Iqro 5
CAPE Caribbean Studies 2014 Paper 2
Certificate of AWARD EAMP-US EMBASSY 1
Quran with Tajwid Surah 10 ﴾القرآن سورۃ يونس﴿ Yunus 🙪 PDF
Vistas en Sistema Diédrico
ฟันฝ่าเก้าชั้นฟ้า เล่ม 1
Cedula nieves
DPHE Clerk Cum Typist Exam Question Solution 2021.pdf
Ad

Viewers also liked (20)

PPTX
Grails with swagger
PPTX
Grails Custom Plugin
ODP
Elastic search
PPTX
Advanced criteria queries
PPTX
Introduction to redis
PDF
Grails internationalization-160524154831
PPT
Bootcamp linux commands
PPTX
Grails custom tag lib
PDF
Angular 2 - An Introduction
PPTX
PDF
PPTX
Java reflection
PPTX
MetaProgramming with Groovy
PPTX
Actors model in gpars
PPTX
Grails Plugins(Console, DB Migration, Asset Pipeline and Remote pagination)
PPT
Grails Controllers
Grails with swagger
Grails Custom Plugin
Elastic search
Advanced criteria queries
Introduction to redis
Grails internationalization-160524154831
Bootcamp linux commands
Grails custom tag lib
Angular 2 - An Introduction
Java reflection
MetaProgramming with Groovy
Actors model in gpars
Grails Plugins(Console, DB Migration, Asset Pipeline and Remote pagination)
Grails Controllers
Ad

Similar to Grails audit logging (20)

PDF
Cloud-Scale Log Monitoring _ Datadog.pdf
PDF
Nava SIEM Agent Datasheet
PPTX
SpiraPlan Overview Presentation (2021)
PDF
GCP Security Refresher and GKE Enterprise In Action
PDF
Streamline Your Validation Process with GoVal - Features and Benefits
PPTX
SpiraTeam Overview Presentation (2022)
PPT
Access control_Emergency access management, access risk management_GRC overvi...
PDF
HTML5 on the AGL demo platform with Chromium and WAM (AGL AMM March 2021)
PPTX
Inflectra Lightning Session: Exploring the Full Potential of the Inflectra Suite
PDF
New Products Overview: Use Cases and Demos
PDF
New Products Overview: Use Cases and Demos
PDF
Compliance-as-a-Service document pdf text
PPTX
SpiraPlan Overview Presentation (2019)
PPTX
Company presentation english 1 2015
DOCX
1. Google Cloud Platform Load BalancingIntroductionGoog.docx
PDF
Securing Your App Deployments with Tunnels, OIDC, RBAC, and Progressive Deliv...
PDF
WSO2 Complex Event Processor - Product Overview
PDF
SECHEIM_TRADING
PDF
Google Cloud Platform 2014Q1 - Starter Guide
Cloud-Scale Log Monitoring _ Datadog.pdf
Nava SIEM Agent Datasheet
SpiraPlan Overview Presentation (2021)
GCP Security Refresher and GKE Enterprise In Action
Streamline Your Validation Process with GoVal - Features and Benefits
SpiraTeam Overview Presentation (2022)
Access control_Emergency access management, access risk management_GRC overvi...
HTML5 on the AGL demo platform with Chromium and WAM (AGL AMM March 2021)
Inflectra Lightning Session: Exploring the Full Potential of the Inflectra Suite
New Products Overview: Use Cases and Demos
New Products Overview: Use Cases and Demos
Compliance-as-a-Service document pdf text
SpiraPlan Overview Presentation (2019)
Company presentation english 1 2015
1. Google Cloud Platform Load BalancingIntroductionGoog.docx
Securing Your App Deployments with Tunnels, OIDC, RBAC, and Progressive Deliv...
WSO2 Complex Event Processor - Product Overview
SECHEIM_TRADING
Google Cloud Platform 2014Q1 - Starter Guide

More from NexThoughts Technologies (20)

PDF
PDF
Docker & kubernetes
PDF
Apache commons
PDF
Microservice Architecture using Spring Boot with React & Redux
PDF
Solid Principles
PDF
Introduction to TypeScript
PDF
Smart Contract samples
PDF
My Doc of geth
PDF
Geth important commands
PDF
Ethereum genesis
PPTX
Springboot Microservices
PDF
An Introduction to Redux
PPTX
Google authentication
Docker & kubernetes
Apache commons
Microservice Architecture using Spring Boot with React & Redux
Solid Principles
Introduction to TypeScript
Smart Contract samples
My Doc of geth
Geth important commands
Ethereum genesis
Springboot Microservices
An Introduction to Redux
Google authentication

Recently uploaded (20)

PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPT
Teaching material agriculture food technology
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
KodekX | Application Modernization Development
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Cloud computing and distributed systems.
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
sap open course for s4hana steps from ECC to s4
20250228 LYD VKU AI Blended-Learning.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
The AUB Centre for AI in Media Proposal.docx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Teaching material agriculture food technology
Building Integrated photovoltaic BIPV_UPV.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
KodekX | Application Modernization Development
Mobile App Security Testing_ A Comprehensive Guide.pdf
Encapsulation_ Review paper, used for researhc scholars
Dropbox Q2 2025 Financial Results & Investor Presentation
MYSQL Presentation for SQL database connectivity
Cloud computing and distributed systems.
MIND Revenue Release Quarter 2 2025 Press Release
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
sap open course for s4hana steps from ECC to s4

Grails audit logging

  • 2. What is Audit Log? An Audit log is a security-relevant chronological record, set of records, and/or destination and source of records that provide documentary evidence of the sequence of activities that have affected at any time a specific operation, procedure, or event. Industries using Audit Logging: ● TeleCommunications ● Information Security ● Accounting ● Clinical Research ● Nursing Research
  • 3. Grails Audit Logging The Audit Logging plugin adds Grails GORM Events based Audit Logging capabilities to a Grails project and it also adds support to domain models for hooking into the Grails GORM events system.
  • 5. Create your Domain Artifact After installing the plugin, you must perform the following command to let the plugin create the audit-logging domain class within your project. ● grails audit-quickstart com.audit AuditTrail
  • 6. Auditing of domain class Enables audit logging using the introduced domain class AuditLogEvent which will record insert, update, and delete events. Update events will be logged in detail with the property name and the old and new values. ● static auditable = true
  • 7. Event Handlers You may use the optional event handlers in your Domain classes. Example: ● onSave ● onDelete ● onChange If you want to use Events Handlers only, then you can use: static auditable = [handlersOnly : true]
  • 8. Thanks. Sample Application: https://github.com/NexThoughts/Grails-Audit-Logging-Example-Demo For any queries you can reach me at: vishal@nexthoughts.com https://github.com/Vishal-Sahu https://github.com/Nexthoughts