Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File activity export on demand #82

Open
jasonbayton opened this issue Nov 29, 2016 · 5 comments
Open

File activity export on demand #82

jasonbayton opened this issue Nov 29, 2016 · 5 comments

Comments

@jasonbayton
Copy link
Member

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.

@drkmccy
Copy link

drkmccy commented Feb 28, 2017

+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.

@nickvergessen
Copy link
Member

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.

@billetj
Copy link

billetj commented Jul 19, 2018

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

@eduardo-rodriguez-mena
Copy link

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

@Andreas-Kainz
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants