Skip to main content
Version: 2.x (upcoming)

Audit events

The API service records every completed API call that changes or reads data in its audit log, auditing.log, one line per call. For where the audit log is, its line format, and how to search it, see Logging and monitoring.

How auditing works​

The AuditService (from gr.cite.tools.auditing) is injected into every REST controller. At the end of each endpoint method, after the main operation succeeds, the controller calls auditService.track(...) with an event identifier and the relevant context parameters. The audit service writes one line to the audit logger, which routes to auditing.log.

Audit calls are placed at the end of successful controller methods only. They are not triggered on authorization failures or exceptions, so the audit log reflects completed, authorized operations.

Each line names the event with its id, for example "Plan_Lookup": 5001, and carries the user, the HTTP request, and the context the controller passed. The line format is described in Audit log format.

Call patterns​

Single parameter:

this.auditService.track(AuditableAction.Plan_Delete, "id", id);

Multiple parameters:

this.auditService.track(AuditableAction.Plan_Lookup, Map.ofEntries(
new AbstractMap.SimpleEntry<String, Object>("id", id),
new AbstractMap.SimpleEntry<String, Object>("fields", fieldSet)
));

Audit event reference​

All audit events are defined in AuditableAction.java in the main API service. Each event has a numeric ID and a string name. The name appears in auditing.log.

note

Assets are called descriptions in the API and data model, so audit event names such as Description_Query refer to operations on assets.

Plans (5000–5026)​

Event IDEvent nameTrigger
5000Plan_QueryList/search Plans
5001Plan_LookupRetrieve a single Plan by ID
5002Plan_PersistCreate or update a Plan
5003Plan_DeleteDelete a Plan
5004Plan_CloneClone a Plan
5005Plan_PersistNewVersionCreate a new version of a Plan
5006Plan_Assign_UsersAssign users to a Plan
5007Plan_RemoveUserRemove a user from a Plan
5008Plan_Invite_UsersSend invitations to collaborate on a Plan
5009Plan_Invite_AcceptAccept a Plan collaboration invitation
5010Plan_PublicQueryQuery publicly visible Plans
5011Plan_ExportExport a Plan to a file format
5012Plan_PublicLookupRetrieve a single public Plan by ID
5013Plan_FinalizeFinalize a Plan
5014Plan_Undo_FinalizeUndo finalization of a Plan
5015Plan_ValidateValidate a Plan
5016Plan_GetXmlExport a Plan as XML
5017Plan_ImportImport a Plan from XML
5018Plan_ExportPublicExport a public Plan to a file format
5019Plan_PublicCloneClone a public Plan
5020Plan_SetStatusChange a Plan's workflow status
5021Plan_Creation_From_RequestCreate a Plan from a Plan update request
5022Plan_GetActiveUsersList active users of a Plan
5023Plan_UpdateDescriptionTemplatesAdd or remove the asset templates of a Plan's sections
5024Plan_GetUsersList the collaborators of a Plan
5025Plan_VersionDiffCompare two versions of a Plan
5026Plan_GetPublicXmlExport a public Plan as XML

Assets (6000–6015)​

Event IDEvent nameTrigger
6000Description_QueryList/search Assets
6001Description_LookupRetrieve a single Asset by ID
6002Description_PersistCreate or update an Asset
6003Description_DeleteDelete an Asset
6004Description_PublicQueryQuery publicly visible Assets
6005Description_PublicLookupRetrieve a single public Asset by ID
6006Description_PersistStatusChange an Asset's workflow status
6007Description_UploadFieldFilesUpload files attached to Asset fields
6008Description_GetFieldFileDownload a file attached to an Asset field
6009Description_ValidateValidate an Asset
6010Description_GetDescriptionSectionPermissionsRetrieve section-level permissions for an Asset
6011Description_UpdateDescriptionTemplateUpdate the template linked to an Asset
6012Description_GetXmlExport an Asset as XML
6013Description_GetPublicXmlExport a public Asset as XML
6014Description_PersistMultipleCreate or update multiple Assets
6015Description_CloneClone an Asset

Blueprints (3000–3011)​

Event IDEvent nameTrigger
3000PlanBlueprint_QueryList/search Plan Blueprints
3001PlanBlueprint_LookupRetrieve a single Blueprint by ID
3002PlanBlueprint_PersistCreate or update a Blueprint
3003PlanBlueprint_DeleteDelete a Blueprint
3004PlanBlueprint_CloneClone a Blueprint
3005PlanBlueprint_PersistNewVersionCreate a new version of a Blueprint
3006PlanBlueprint_GetXmlExport a Blueprint as XML
3007PlanBlueprint_ImportImport a Blueprint from XML
3008PlanBlueprintType_QueryList Blueprint types
3009PlanBlueprintType_LookupRetrieve a single Blueprint type
3010PlanBlueprintType_PersistCreate or update a Blueprint type
3011PlanBlueprintType_DeleteDelete a Blueprint type

Asset templates (8000–8008)​

Event IDEvent nameTrigger
8000DescriptionTemplate_QueryList/search Asset Templates
8001DescriptionTemplate_LookupRetrieve a single Template by ID
8002DescriptionTemplate_PersistCreate or update a Template
8003DescriptionTemplate_DeleteDelete a Template
8004DescriptionTemplate_CloneClone a Template
8005DescriptionTemplate_PersistNewVersionCreate a new version of a Template
8006DescriptionTemplate_GetXmlExport a Template as XML
8007DescriptionTemplate_ImportImport a Template from XML
8008DescriptionTemplate_AssignUsersSet the editors of an Asset Template

Asset types (1000–1003)​

Event IDEvent nameTrigger
1000DescriptionTemplateType_QueryList Asset types
1001DescriptionTemplateType_LookupRetrieve a single Asset type
1002DescriptionTemplateType_PersistCreate or update an Asset type
1003DescriptionTemplateType_DeleteDelete an Asset type

Users (11000–11017)​

Event IDEvent nameTrigger
11000User_QueryList/search users
11001User_LookupRetrieve a single user by ID
11002User_PersistCreate or update a user
11003User_DeleteDelete a user
11004User_LookupByEmailLook up a user by email address
11005User_ExportCsvExport user list as CSV
11006User_PersistRolesUpdate a user's roles
11007User_LanguageMineRetrieve the current user's language preference
11008User_TimezoneMineRetrieve the current user's timezone preference
11009User_CultureMineRetrieve the current user's culture preference
11010User_MergeRequestRequest to merge two user accounts
11011User_MergeConfirmConfirm a user account merge
11012User_RemoveCredentialRequestRequest to remove a user credential
11013User_RemoveCredentialConfirmConfirm removal of a user credential
11014User_PlanAssociatedQueryQuery Plans associated with a user
11015User_AllowMergeAccountAllow another account to merge into this user
11016User_InviteToTenantInvite a user to a tenant
11017User_InviteToTenantConfirmConfirm a tenant invitation

Tenants (12000–12003)​

Event IDEvent nameTrigger
12000Tenant_QueryList/search tenants
12001Tenant_LookupRetrieve a single tenant by ID
12002Tenant_PersistCreate or update a tenant
12003Tenant_DeleteDelete a tenant

Tenant configuration (270000–270005)​

Event IDEvent nameTrigger
270000TenantConfiguration_QueryList tenant configuration entries
270001TenantConfiguration_LookupRetrieve a single tenant configuration entry
270002TenantConfiguration_PersistCreate or update a tenant configuration entry
270003TenantConfiguration_DeleteDelete a tenant configuration entry
270004TenantConfiguration_LookupByTypeRetrieve tenant configuration by type
270005TenantConfiguration_LookupBActiveTypeRetrieve active tenant configuration by type

References (7000–7007)​

Event IDEvent nameTrigger
7000Reference_QueryList/search References
7001Reference_LookupRetrieve a single Reference by ID
7002Reference_PersistCreate or update a Reference
7003Reference_DeleteDelete a Reference
7004Reference_SearchSearch References
7005Reference_TestTest a Reference type configuration
7006Reference_UsageList References ranked by the number of plans or assets that use them
7007Reference_TestSourceTest one external source of a Reference type

Reference types (10000–10004)​

Event IDEvent nameTrigger
10000ReferenceType_QueryList/search Reference types
10001ReferenceType_LookupRetrieve a single Reference type
10002ReferenceType_PersistCreate or update a Reference type
10003ReferenceType_DeleteDelete a Reference type
10004ReferenceType_PublicLogoRetrieve the logo of a Reference type (anonymous access)

Prefilling sources (260000–260006)​

Event IDEvent nameTrigger
260000PrefillingSource_QueryList/search prefilling sources
260001PrefillingSource_LookupRetrieve a single prefilling source
260002PrefillingSource_PersistCreate or update a prefilling source
260003PrefillingSource_DeleteDelete a prefilling source
260004PrefillingSource_GenerateGenerate an Asset from a prefilling source
260005PrefillingSource_TestTest a prefilling source configuration
260006PrefillingSource_TestSourceTest one external source of a prefilling source

Statuses and workflows​

Event IDEvent nameTrigger
300000PlanStatus_QueryList Plan statuses
300001PlanStatus_LookupRetrieve a single Plan status
300002PlanStatus_PersistCreate or update a Plan status
300003PlanStatus_DeleteDelete a Plan status
400000DescriptionStatus_QueryList Asset statuses
400001DescriptionStatus_LookupRetrieve a single Asset status
400002DescriptionStatus_PersistCreate or update an Asset status
400003DescriptionStatus_DeleteDelete an Asset status
500000PlanWorkflow_QueryList Plan workflows
500001PlanWorkflow_LookupRetrieve a single Plan workflow
500002PlanWorkflow_PersistCreate or update a Plan workflow
500003PlanWorkflow_DeleteDelete a Plan workflow
600000DescriptionWorkflow_QueryList Asset workflows
600001DescriptionWorkflow_LookupRetrieve a single Asset workflow
600002DescriptionWorkflow_PersistCreate or update an Asset workflow
600003DescriptionWorkflow_DeleteDelete an Asset workflow

Entity DOIs (2000–2003)​

Event IDEvent nameTrigger
2000EntityDoi_QueryList DOI associations
2001EntityDoi_LookupRetrieve a single DOI association
2002EntityDoi_PersistCreate or update a DOI association
2003EntityDoi_DeleteDelete a DOI association

Storage files (14000–14002)​

Event IDEvent nameTrigger
14000StorageFile_DownloadDownload a stored file
14001StorageFile_UploadUpload a stored file
14002StorageFile_QueryList stored files

Tags (19000–19003)​

Event IDEvent nameTrigger
19000Tag_QueryList/search tags
19001Tag_LookupRetrieve a single tag
19002Tag_PersistCreate or update a tag
19003Tag_DeleteDelete a tag

Languages (13000–13003)​

Event IDEvent nameTrigger
13000Language_QueryList available languages
13001Language_LookupRetrieve a single language
13002Language_PersistCreate or update a language
13003Language_DeleteDelete a language

Supportive material (9000–9003)​

Event IDEvent nameTrigger
9000SupportiveMaterial_QueryList supportive material entries
9001SupportiveMaterial_LookupRetrieve a single supportive material entry
9002SupportiveMaterial_PersistCreate or update a supportive material entry
9003SupportiveMaterial_DeleteDelete a supportive material entry

User settings (4000–4003)​

Event IDEvent nameTrigger
4000User_Settings_QueryList user settings entries
4001User_Settings_LookupRetrieve a single user settings entry
4002User_Settings_PersistCreate or update a user settings entry
4003User_Settings_DeleteDelete a user settings entry

Locks (17000–17009)​

Event IDEvent nameTrigger
17000Lock_QueryList entity locks
17001Lock_LookupRetrieve a single lock
17002Lock_PersistAcquire a lock
17003Lock_DeleteRelease a lock
17004Lock_IsLockedCheck whether an entity is locked
17005Lock_UnLockedConfirm an entity is not locked
17006Lock_TouchedExtend a lock's TTL
17007Lock_LockedConfirm an entity is locked
17008Lock_UnLockedMultipleRelease multiple locks at once
17009Lock_CheckLockCheck lock status

Usage limits (290000–290003)​

Event IDEvent nameTrigger
290000UsageLimit_QueryList usage limit rules
290001UsageLimit_LookupRetrieve a single usage limit rule
290002UsageLimit_PersistCreate or update a usage limit rule
290003UsageLimit_DeleteDelete a usage limit rule

Plan update requests (700000–700007)​

Event IDEvent nameTrigger
700000PlanUpdateRequest_QueryList Plan update requests
700001PlanUpdateRequest_LookupRetrieve a single Plan update request
700002PlanUpdateRequest_PersistCreate or update a Plan update request
700003PlanUpdateRequest_DeleteDelete a Plan update request
700004PlanUpdateRequest_PreprocessingPreprocess a Plan update request
700005PlanUpdateRequest_BuildPlanBuild a Plan from an update request
700006PlanUpdateRequest_ApplyApply an update request to create a Plan
700007PlanUpdateRequest_PreviewPreview a Plan or Asset built from an update request

Dashboard (15000–15002)​

Event IDEvent nameTrigger
15000Dashboard_MyRecentActivityItemsRetrieve the current user's recent activity
15001Dashboard_MyDashboardStatisticsRetrieve the current user's dashboard statistics
15002Dashboard_PublicDashboardStatisticsRetrieve public dashboard statistics

Principal (240000–240001)​

Event IDEvent nameTrigger
240000Principal_LookupRetrieve the authenticated principal's details
240001Principal_MyTenantsRetrieve the current user's tenant memberships

Deposit integration (18000–18009)​

Event IDEvent nameTrigger
18000Deposit_GetAvailableRepositoriesList configured deposit repositories
18001Deposit_GetAccessTokenObtain a deposit repository access token
18002Deposit_DepositSubmit a Plan to a deposit repository
18003Deposit_GetLogoRetrieve a deposit repository logo
18004Deposit_GetRepositoryRetrieve a deposit repository configuration
18005Deposit_GetAuthMethodsList authentication methods for a deposit repository
18006Deposit_PreviewPreview the metadata that a deposit would send
18007Deposit_SearchVocabularySearch a repository's controlled vocabulary for a preview field
18008Deposit_GetFilesList the files that a deposit would upload
18009Deposit_GetFileDownload a file that a deposit would upload

File transformers and evaluators (20000–20002)​

Event IDEvent nameTrigger
20000FileTransformer_GetAvailableConfigurationsList configured file transformer services
20001Evaluator_GetAvailableConfigurationsList configured evaluator services
20002FileTransformer_ValidateTemplateValidate an uploaded export template with its file transformer

Evaluations (1100000–1100003)​

Event IDEvent nameTrigger
1100000Evaluation_QueryList evaluation results
1100001Evaluation_LookupRetrieve a single evaluation result
1100002Evaluation_PersistCreate or update an evaluation result
1100003Evaluation_DeleteDelete an evaluation result

Annotations and notifications (16000, 280000)​

Event IDEvent nameTrigger
16000Notification_PersistCreate a notification
280000Annotation_Created_NotifySend notification for a new annotation
280001MaDMP_TouchedmaDMP synchronization event triggered

Semantics (250000–250001)​

Event IDEvent nameTrigger
250000GetSemanticsRetrieve the list of available semantics
250001GetPluginSemanticsRetrieve the semantics manifests published by the plugins

Contact support (210000–210001)​

Event IDEvent nameTrigger
210000ContactSupport_SentSubmit a contact support request (authenticated)
210001ContactSupport_PublicSentSubmit a contact support request (anonymous)

Terms and conditions (800000)​

Event IDEvent nameTrigger
800000UserTermsAcceptance_AcceptA user accepts the Terms and Conditions

Tenant transfer (900000–900006)​

Event IDEvent nameTrigger
900000TenantTransfer_ExportExport a transfer bundle
900001TenantTransfer_AnalyzeImportCheck a transfer bundle before import (dry run)
900002TenantTransfer_ImportImport a transfer bundle
900003TenantTransfer_AnalyzePurgeAnalyze a tenant data purge (dry run)
900004TenantTransfer_PurgePermanently delete tenant data
900005TenantTransfer_AnalyzeCopyCheck a copy from another tenant (dry run)
900006TenantTransfer_CopyCopy content from another tenant

Statistics (1000000)​

Event IDEvent nameTrigger
1000000Statistics_QueryQuery statistics or the names of the entities they refer to

Reports (1500000–1500003)​

Event IDEvent nameTrigger
1500000Report_OutlineRetrieve the outline (questions) of a template or blueprint for reporting
1500001Report_QueryRun an answer report
1500002Report_ExportCsvExport the answers behind a report as CSV
1500003Report_SearchQuestionsSearch the questions that can be reported

Webhooks (1200000–1200006)​

Event IDEvent nameTrigger
1200000WebhookSubscription_QueryList webhooks of the tenant
1200001WebhookSubscription_LookupRetrieve a single webhook by ID
1200002WebhookSubscription_PersistCreate or update a webhook
1200003WebhookSubscription_DeleteDelete a webhook
1200004WebhookSubscription_PingQueue a test Ping delivery
1200005WebhookDelivery_QueryList deliveries of a webhook
1200006WebhookDelivery_RedeliverQueue a failed delivery again

Outgoing deliveries themselves are not audit events; their outcome is recorded in the delivery log described in Webhooks.

Maintenance (220000, 230000–230041)​

These events are emitted by the maintenance endpoints (/api/maintenance/*). The Maintenance page starts tasks as a server-side run, which records one Maintenance_StartRun event with the list of tasks, not one event per task; the per-task events below are recorded when a task endpoint is called directly. Clearing the indexes from the page records Maintenance_ClearElastic.

Event IDEvent nameTrigger
220000Maintenance_GenerateElasticRebuild Elasticsearch indexes
230000Maintenance_ClearElasticClear Elasticsearch indexes
230001Maintenance_SendUserTouchEventsResend user accounting touch events
230002Maintenance_SendTenantTouchEventsResend tenant accounting touch events
230003Maintenance_SendPlanTouchEventsResend Plan accounting touch events
230004Maintenance_SendDescriptionTouchEventsResend Asset accounting touch events
230005Maintenance_SendPlanAccountingEntriesEventsResend Plan accounting entries
230006Maintenance_SendBlueprintAccountingEntriesEventsResend Blueprint accounting entries
230007Maintenance_SendDescriptionAccountingEntriesEventsResend Asset accounting entries
230008Maintenance_SendDescriptionTemplateAccountingEntriesEventsResend Template accounting entries
230009Maintenance_SendDescriptionTemplateTypeAccountingEntriesEventsResend Asset type accounting entries
230010Maintenance_SendPrefillingSourceAccountingEntriesEventsResend prefilling source accounting entries
230011Maintenance_SendReferenceTypeAccountingEntriesEventsResend Reference type accounting entries
230012Maintenance_SendUserAccountingEntriesEventsResend user accounting entries
230013Maintenance_SendIndicatorCreateEntryEventsResend indicator creation entries
230014Maintenance_SendIndicatorResetEntryEventsResend indicator reset entries
230015Maintenance_SendIndicatorAccessEntryEventsResend indicator access entries
230016Maintenance_SendIndicatorPointPlanEntryEventsResend Plan indicator point entries
230017Maintenance_SendIndicatorPointDescriptionEntryEventsResend Asset indicator point entries
230018Maintenance_SendIndicatorPointReferenceEntryEventsResend Reference indicator point entries
230019Maintenance_SendIndicatorPointUserEntryEventsResend user indicator point entries
230020Maintenance_SendIndicatorPointPlanBlueprintEntryEventsResend Blueprint indicator point entries
230021Maintenance_SendIndicatorPointDescriptionTemplateEntryEventsResend Template indicator point entries
230022Maintenance_SendPlanStatusAccountingEntriesEventsResend Plan status accounting entries
230023Maintenance_SendDescriptionStatusAccountingEntriesEventsResend Asset status accounting entries
230024Maintenance_SendEvaluationPlanAccountingEntriesEventsResend Plan evaluation accounting entries
230025Maintenance_SendEvaluationDescriptionAccountingEntriesEventsResend Asset evaluation accounting entries
230026Maintenance_SendIndicatorPointTenantEntryEventsResend tenant indicator point entries
230028Maintenance_SendReferenceEntriesEventsResend Reference accounting entries
230029Maintenance_SendLanguageEntriesEventsResend language accounting entries
230030Maintenance_SendBlueprintTypeAccountingEntriesEventsResend Blueprint type accounting entries
230031Maintenance_SendDashboardTouchedEntryEventsRepublish the KPI dashboards
230035Maintenance_SendIndicatorPointPlanBlueprintTypeEntryEventsResend Blueprint type indicator point entries
230036Maintenance_SendIndicatorPointDescriptionTemplateTypeEntryEventsResend Asset type indicator point entries
230037Maintenance_StartRunStart a maintenance run
230038Maintenance_LatestRunRetrieve the latest maintenance run
230039Maintenance_StopRunStop a maintenance run after its current task
230040Maintenance_LastTaskRunsRetrieve the last run of each maintenance task
230041Maintenance_DatabaseMigrationsRetrieve the database migration state and history

See also​