activity icon indicating copy to clipboard operation
activity copied to clipboard

Feature request: file activity export on demand

Open jasonbayton opened this issue 7 years ago • 5 comments

Context: https://help.nextcloud.com/t/is-it-possible-to-export-activity-on-demand/5598

It'd be very useful for reporting/audit purposes to be able to export the activity of a file. Currently it's possible to see what has happened (uploaded, downloaded, shared) when clicking on the file within the web interface:

But aside from occasional activity emails which don't provide the full activity every email, copying and pasting from that area in the UI is the only option.

jasonbayton avatar Nov 29 '16 10:11 jasonbayton

+1 Export to .csv would be ideal. Either here, or in the main activity app.

There's an interesting app that popped up in the ownCloud app store: https://apps.owncloud.com/content/show.php?action=content&content=174809

Maybe that dev could be brought asked to include an export option if the main activity app wants to be kept minimal.

drkmccy avatar Feb 28 '17 13:02 drkmccy

The app is now also in our app store, however it's an admin tool not respecting privacy. Speaking of that, there is an app called "admin audit" which logs any activity on files into a log file. Maybe that's better suitable for auditing. Other then that I still fail to see a use case for an export feature. Also note, that there is an xml style endpoint ocs/v2.php/cloud/activity which you can use to extract the data from:

curl -k -H "OCS-APIRequest: true" https://admin:password@localhost/ocs/v2.php/cloud/activity
<?xml version="1.0"?>
<ocs>
 <meta>
  <status>ok</status>
  <statuscode>200</statuscode>
  <message>OK</message>
 </meta>
 <data>
  <element>
   <id>48</id>
   <subject>User One created testtest/PUSH TODO.txt</subject>
   <message/>
   <file>/testtest/PUSH TODO.txt</file>
   <link>https://nextcloud12.local/index.php/apps/files/?dir=/testtest</link>
   <date>2017-03-01T09:27:51+00:00</date>
  </element>
...

However that one has no filter for a specific file. But we can just keep this feature request, maybe someone wants to work on a tool to extract this correctly.

nickvergessen avatar Mar 01 '17 11:03 nickvergessen

Hello, Do you know if something has been developped to be able to download the activity logs in like csv ?

billetj avatar Jul 19 '18 13:07 billetj

Hello,

nickvergessen I found the endpoint you offer "ocs/v2.php/cloud/activity" very useful to export the activity of user. But I found a limitation about the quantity of element to export. There is a way to control this limit or reclaim more elements.

Thanks a lot

eduardo-rodriguez-mena avatar Jul 27 '18 16:07 eduardo-rodriguez-mena

now there is an setting for rss. the "problem" of the rss fead is that it contain the information always as feed header, and the rss feed is in general not really readable.

so maybe update the rss export and make it useful for .csv could be an option.

Andreas-Kainz avatar Jan 07 '20 22:01 Andreas-Kainz