View the record of operations (audit log)
The audit log is a record of who did what and when in a space. It records actions such as publishing or deleting entries, changing a member’s role, and issuing API keys. This page explains how to view the audit log, filter it, and download it as CSV.
No one can change or delete the audit log. Operations that only view entries or media are not recorded.
Before you begin
Section titled “Before you begin”- You need the [監査ログの閲覧](View audit log) permission in the space. Among the built-in roles, [オーナー](Owner) and [管理者](Admin) have it
View the audit log
Section titled “View the audit log”- In the left menu of the admin, click [監査ログ](Audit log).
Records are shown newest first. To show more, click [さらに表示](Show more) below the table.
| Column | Contents |
|---|---|
| [日時](Date and time) | The date and time of the operation |
| [操作した人](Actor) | Name and email address (as they were at the time) |
| [操作](Action) | The name of the operation (such as “公開” (Publish)), with the operation code (such as entry.publish) below it |
| [対象](Target) | The name of the object operated on (as it was at the time), with its type and ID below it |
| [IP アドレス](IP address) | The IP address at the time of the operation |
| [詳細](Details) | Click to open the detailed values for each operation (such as the role before and after a change) and the browser information |
Besides a person’s name, [操作した人] can show the following.
| Display | Meaning |
|---|---|
| “名前(アクセストークン)” (Name (access token)) | That person operated with an access token, from the CLI or similar |
| “API キー「名前」” (API key “name”) | Written with that API key |
| “システム(予約公開・CLI)” (System (scheduled publishing, CLI)) | Scheduled publishing or scheduled unpublishing ran, and similar cases |
| “削除されたユーザー” (Deleted user) | The account of the person who operated was later anonymized |
Filter
Section titled “Filter”To filter, do the following.
- In the fields at the top of the [監査ログ](Audit log) screen, enter your conditions. Leave fields you don’t use empty.
- Click [絞り込む](Filter).
Only records that match the conditions are shown. To remove the conditions, click [条件を消す](Clear conditions).
| Field | What to enter |
|---|---|
| [開始]、[終了](Start, End) | The period. Dates and times are in your browser’s time zone. The [開始] date and time is included; the [終了] date and time is not |
| [操作](Action) | An operation code (such as entry.publish). If you end it with ., you select all operations that start with that name (entry. selects all entry operations) |
| [操作した人の ID](Actor ID) | The ID of a person or an API key |
| [対象の ID](Target ID) | The ID of the object operated on (such as an entry ID) |
When you click the [操作] field, common suggestions appear.
Operation codes
Section titled “Operation codes”These are the main operation codes. End a code with . to filter by a group.
| Code | Operations |
|---|---|
entry. |
Creating an entry, saving a draft, publishing, unpublishing, discarding a draft, deleting, setting a schedule, failed scheduled publishing |
content_type. |
Creating a content type, changing its name or endpoint, deleting it |
schema.update |
Changing the schema |
media. |
Uploading, changing, and deleting media |
member. |
A member joining, changing a role, removing a member, a member leaving |
invitation. |
Creating and revoking invitations |
role. |
Creating, changing, and deleting roles |
api_key. |
Issuing, changing, revoking, and re-enabling API keys |
webhook. |
Creating, changing, and deleting webhooks, sending tests, resending |
space. |
Exporting a space, downloading an exported file, applying a schema, and more |
For example, to find out who published a certain entry and when, enter “entry.publish” in [操作] and that entry’s ID in [対象の ID], then click [絞り込む].
Download as CSV
Section titled “Download as CSV”- In [開始](Start) and [終了](End), enter the period you want to download. The period can be up to 1 year.
- (Optional) Enter conditions in the other fields too.
- Click [CSV をダウンロード](Download CSV).
Until you enter both [開始] and [終了], [CSV をダウンロード] does not appear. Instead, “CSV をダウンロードするには、開始と終了を指定してください(1 年まで)” (To download CSV, specify the start and end (up to 1 year)) is shown.
The CSV is UTF-8, and the first row is the header. The columns are as follows.
occurredAt,action,actorType,actorId,actorName,actorEmail,targetType,targetId,targetLabel,details,ip,userAgent,actorTokenIdIf the text is garbled when you open it in Excel, use Excel’s [データ]>[テキストまたは CSV から](Data > From Text/CSV) and choose UTF-8 as the encoding to import it.
View records that don’t belong to a space
Section titled “View records that don’t belong to a space”Logins, creating and deleting users, and creating spaces don’t belong to any space, so they don’t appear in a space’s audit log. Administrators of the environment (such as the person who created the environment) can view them as follows.
- Click your name in the upper right of the screen.
- Under [インスタンスの管理](Instance administration), click [監査ログ(インスタンス)](Audit log (instance)).
Viewing, filtering, and downloading CSV work the same as in a space’s audit log. For failed logins, [操作した人](Actor) shows “不明(ログインの失敗)” (Unknown (failed login)).
- Perform one operation (for example, publish one entry).
- Reopen the [監査ログ](Audit log) screen.
Check that the operation appears at the top under your name (for example, [操作] is “公開” (Publish) and [対象] is that entry).