Foren

Download data in Audit Portlet

Gaurav Sharma, geändert vor 8 Jahren.

Download data in Audit Portlet

New Member Beiträge: 13 Beitrittsdatum: 23.02.15 Neueste Beiträge
I needed to track user logins and signups, so I installed the Audit portlet available for Liferay EE. Now, I'd like to download the data in the Audit portlet in the form of a CSV file but the portlet does not provide this feature. What is the best way to achieve this?
thumbnail
Andew Jardine, geändert vor 8 Jahren.

RE: Download data in Audit Portlet

Liferay Legend Beiträge: 2416 Beitrittsdatum: 22.12.10 Neueste Beiträge
Hi Gaurav.

Have you tried dumping the audit table using a SQL query?
thumbnail
David H Nebinger, geändert vor 8 Jahren.

RE: Download data in Audit Portlet

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
The problem with a dump (well, you'd have to see it as a problem) is that it will contain the bundle keys and not the language bundle values. There's also the fkeys to the user(s), etc.

So that may be enough for you or you might find it to be a bit raw to work from. But there's nothing stopping you from adding an export option. I think you get the source as part of the audit plugin itself so it should be an option to layer in an export with all the replaced values...