08d4877720767d06afdba2ffb7f4a0697fa60853
[arvados.git] / doc / admin / user-activity.html.textile.liquid
1 ---
2 layout: default
3 navsection: admin
4 title: "User activity report"
5 ...
6 {% comment %}
7 Copyright (C) The Arvados Authors. All rights reserved.
8
9 SPDX-License-Identifier: CC-BY-SA-3.0
10 {% endcomment %}
11
12 The @arv-user-activity@ tool generates a summary report of user activity on an Arvados instance based on the audit logs (the @logs@ table).
13
14 h2. Installation
15
16 h2. Option 1: Install from a distribution package
17
18 This installation method is recommended to make the CLI tools available system-wide. It can coexist with the installation method described in option 2, below.
19
20 First, configure the "Arvados package repositories":../../install/packages.html
21
22 {% assign arvados_component = 'python3-arvados-user-activity' %}
23
24 {% include 'install_packages' %}
25
26 h2. Option 2: Install with pip
27
28 Run @pip install arvados-user-activity'@ in an appropriate installation environment, such as a @virtualenv@.
29
30 Note: depends on the "Arvados Python SDK":../sdk/python/sdk-python.html and its associated build prerequisites (e.g. @pycurl@).
31
32 h2. Usage
33
34 Set your Arvados environment, then run the tool giving it the number of days to report for.  It will query the logs and generate a summary report on standard output.
35
36 Example run:
37
38 <pre>
39 $ bin/arv-user-activity --days 14
40 User activity on pirca between 2020-11-10 16:42 and 2020-11-24 16:42
41
42 Peter Amstutz <peter.amstutz@curii.com> (https://workbench.pirca.arvadosapi.com/users/jutro-tpzed-a4qnxq3pcfcgtkz)
43   organization: "Curii"
44   role: "Software Developer"
45
46   2020-11-10 16:51-05:00 to 2020-11-11 13:51-05:00 (21:00) Account activity
47   2020-11-13 13:47-05:00 to 2020-11-14 03:32-05:00 (13:45) Account activity
48   2020-11-14 04:33-05:00 to 2020-11-15 20:33-05:00 (40:00) Account activity
49   2020-11-15 21:34-05:00 to 2020-11-16 13:34-05:00 (16:00) Account activity
50   2020-11-16 16:21-05:00 to 2020-11-16 16:28-05:00 (00:07) Account activity
51   2020-11-17 15:49-05:00 to 2020-11-17 15:49-05:00 (00:00) Account activity
52   2020-11-17 15:51-05:00 Created project "New project" (pirca-j7d0g-7bxvkyr4khfa1a4)
53   2020-11-17 15:51-05:00 Updated project "Test run" (pirca-j7d0g-7bxvkyr4khfa1a4)
54   2020-11-17 15:51-05:00 Ran container "bwa-mem.cwl container" (pirca-xvhdp-xf2w8dkk17jkk5r)
55   2020-11-17 15:51-05:00 to 2020-11-17 15:51-05:00 (0:00) Account activity
56   2020-11-17 15:53-05:00 Ran container "WGS processing workflow scattered over samples container" (pirca-xvhdp-u7bm0wdy6lq4r8k)
57   2020-11-17 15:53-05:00 to 2020-11-17 15:54-05:00 (00:01) Account activity
58   2020-11-17 15:55-05:00 Created collection "output for pirca-dz642-36ffk81c8zzopxz" (pirca-4zz18-np35gw690ndzzk7)
59   2020-11-17 15:55-05:00 to 2020-11-17 15:55-05:00 (0:00) Account activity
60   2020-11-17 15:55-05:00 Created collection "Output of main" (pirca-4zz18-oiiymetwhnnhhwc)
61   2020-11-17 15:55-05:00 Tagged pirca-4zz18-oiiymetwhnnhhwc
62   2020-11-17 15:55-05:00 Updated collection "Output of main" (pirca-4zz18-oiiymetwhnnhhwc)
63   2020-11-17 15:55-05:00 to 2020-11-17 16:04-05:00 (00:09) Account activity
64   2020-11-17 16:04-05:00 Created collection "Output of main" (pirca-4zz18-f6n9n89e3dhtwvl)
65   2020-11-17 16:04-05:00 Tagged pirca-4zz18-f6n9n89e3dhtwvl
66   2020-11-17 16:04-05:00 Updated collection "Output of main" (pirca-4zz18-f6n9n89e3dhtwvl)
67   2020-11-17 16:04-05:00 to 2020-11-17 17:55-05:00 (01:51) Account activity
68   2020-11-17 20:09-05:00 to 2020-11-17 20:09-05:00 (00:00) Account activity
69   2020-11-17 21:35-05:00 to 2020-11-17 21:35-05:00 (00:00) Account activity
70   2020-11-18 10:09-05:00 to 2020-11-18 11:00-05:00 (00:51) Account activity
71   2020-11-18 14:37-05:00 Untagged pirca-4zz18-st8yzjan1nhxo1a
72   2020-11-18 14:37-05:00 Deleted collection "Output of main" (pirca-4zz18-st8yzjan1nhxo1a)
73   2020-11-18 17:44-05:00 to 2020-11-18 17:44-05:00 (00:00) Account activity
74   2020-11-19 12:18-05:00 to 2020-11-19 12:19-05:00 (00:01) Account activity
75   2020-11-19 13:57-05:00 to 2020-11-19 14:21-05:00 (00:24) Account activity
76   2020-11-20 09:48-05:00 to 2020-11-20 22:51-05:00 (13:03) Account activity
77   2020-11-20 23:52-05:00 to 2020-11-22 22:32-05:00 (46:40) Account activity
78   2020-11-22 23:37-05:00 to 2020-11-23 13:52-05:00 (14:15) Account activity
79   2020-11-23 14:53-05:00 to 2020-11-24 11:58-05:00 (21:05) Account activity
80   2020-11-24 15:06-05:00 to 2020-11-24 16:38-05:00 (01:32) Account activity
81
82 Marc Rubenfield <mrubenfield@gmail.com> (https://workbench.pirca.arvadosapi.com/users/jutro-tpzed-v9s9q97pgydh1yf)
83   2020-11-11 12:27-05:00 Untagged pirca-4zz18-xmq257bsla4kdco
84   2020-11-11 12:27-05:00 Deleted collection "Output of main" (pirca-4zz18-xmq257bsla4kdco)
85
86 Ward Vandewege <ward@curii.com> (https://workbench.pirca.arvadosapi.com/users/jutro-tpzed-9z6foyez9ydn2hl)
87   organization: "Curii Corporation, Inc."
88   organization_email: "ward@curii.com"
89   role: "System Administrator"
90   website_url: "https://curii.com"
91
92   2020-11-19 19:30-05:00 to 2020-11-19 19:46-05:00 (00:16) Account activity
93   2020-11-20 10:51-05:00 to 2020-11-20 11:26-05:00 (00:35) Account activity
94   2020-11-24 12:01-05:00 to 2020-11-24 13:01-05:00 (01:00) Account activity
95 </pre>