Open-AudIT
https://www.open-audit.org/phpBB3/

System Audit Log does only list new values, not the old ones
https://www.open-audit.org/phpBB3/viewtopic.php?f=20&t=6485
Page 1 of 1

Author:  FranzXaver [ Tue Jan 05, 2016 7:43 pm ]
Post subject:  System Audit Log does only list new values, not the old ones

Right now, when I change e.g the hostname from a server the following line will be written to the Audit Log:

Code:
Administrator    2016-01-05 10:41:12    System Manual Data Changed    hostname - new_hostname


Is it possible to also add the old value to the log?

E.g:

Code:
Administrator    2016-01-05 10:41:12    System Manual Data Changed    hostname - changed from hostname to new_hostname


I already found the code in /code_igniter/application/models/m_audit_log.php in the function insert_audit_event($field_name, $field_value, $system_id) but I am not sure how to add the old value.

Author:  jpa [ Wed Jan 06, 2016 5:01 am ]
Post subject:  Re: System Audit Log does only list new values, not the old

This is not easy. You would need to find all the locations where insert_audit_event is called in the code and modify those to include the old data information. There are not very many but where they are called the "old" data is not readily available (except one instance.) So you would need to have additional code to find the old value to pass to insert_audit_event. It's not that difficult but you'll need to contract Opmantek or make an enhancement request and wait.

And insert_audit_event should be changed to include an old_data parameter which could be empty.

Page 1 of 1 All times are UTC + 10 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/