What is the best practice for storing an audit trail in a graph

801 views
Skip to first unread message

Paul Jackson

unread,
Apr 25, 2012, 6:23:14 PM4/25/12
to ne...@googlegroups.com
I have a graph and would like to store an audit entry containing user, date/time, and type of change for any changes that occur to the nodes and edges in the graph. I am not sure whether I would like this stored with the entities or centrally, nor how best to store it (string array property, numbered properties, etc.). Wondering if anyone has any ideas on the topic.

Thanks,
Paul Jackson

Michael Hunger

unread,
Apr 25, 2012, 6:27:48 PM4/25/12
to ne...@googlegroups.com
Where and how would you read those audit-trails?

Perhaps a log file would just be the easiest way of doing that.

Of course all this information is contained in the neo4j-logical logs, but there is no officially accessible reader for that.

Otherwise you can register a TransactionEventHandler on the GraphDatabaseService that can intercept and check all modifications and write them to wherever is suitable (the graph - e.g. a secondary linked list structure attached to each node) another kind of database or a regular text file.

Michael
Reply all
Reply to author
Forward
0 new messages