Closed mjstealey closed 1 year ago
Enable event logging that is output to a file as defined in section 3.3
Events are logged to a rotating log file defined by the metricsLogger logging object. Format outlined below:
metricsLogger
Event message ::= <Datetime> <Preamble> <Identifier> <Event details> Datetime ::= <Date and Time in UTC> Preamble ::= User event | Project event | Publication event Identifier ::= <User> | <Project> | <Publication> User ::= usr:<UUID>[:<User email>] Project ::= prj:<UUID> Publication ::= pub:<UUID> Event details ::= <Verb> [ <Attribute name> <Attribute value>] [by <User>] Verb ::= create | modify | modify-add | modify-remove | delete Attribute name ::= <string> Attribute value ::= <string> | '<string>' UUID ::= <uuid string>
Events are broken into areas related to granular API interactions and are not aggregate in nature
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 create
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify-add role ROLE
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify-remove role ROLE
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify display_name NAME by usr:0000-0000-0000-0001
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify preferred_email EMAIL by usr:0000-0000-0000-0001
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify PREF BOOL by usr:0000-0000-0000-0001
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify bio 'BIO' by usr:0000-0000-0000-0001
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify cv 'URL' by usr:0000-0000-0000-0001
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify job 'JOB' by usr:0000-0000-0000-0001
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify pronouns 'PRONOUNS' by usr:0000-0000-0000-0001
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify website 'URL' by usr:0000-0000-0000-0001
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify-add personal_page 'PAGE' by usr:0000-0000-0000-0001
'PAGE'
'url=URL, type=TYPE'
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify-remove personal_page 'PAGE' by usr:0000-0000-0000-0001
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify-add other_identity 'IDENTITY' by usr:0000-0000-0000-0001
'IDENTITY'
'identity=IDENT, type=TYPE'
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify-remove other_identity 'IDENTITY' by usr:0000-0000-0000-0001
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef create by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify-add tag 'TAG' by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify-remove tag 'TAG' by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify-add member usr:0000-0000-0000-0001 by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify-remove member usr:0000-0000-0000-0001 by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify-add owner usr:0000-0000-0000-0001 by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify-remove owner usr:0000-0000-0000-0001 by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef delete by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify description 'DESC' by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify is_public BOOL by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify name 'NAME' by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify PREF BOOL by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify award_information 'INFO' by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify goals 'GOALS' by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify-add keyword 'KEYWORD' by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify-remove keyword 'KEYWORD' by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify project_status 'STATUS' by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify purpose 'PURPOSE' by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify-add reference 'REFERENCE' by usr:0000-0000-0000-0002
'REFERENCE'
'description=DESC, url=URL'
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify-remove reference 'REFERENCE' by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 create sshkey KEYTYPE key:feed-beef-feed-beef
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 deactivate sshkey KEYTYPE key:feed-beef-feed-beef
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 delete sshkey KEYTYPE key:feed-beef-feed-beef
deployed in v1.4.0 #15
FABRIC Metrics Logging
Enable event logging that is output to a file as defined in section 3.3
Event logging format
Events are logged to a rotating log file defined by the
metricsLogger
logging object. Format outlined below:Events are broken into areas related to granular API interactions and are not aggregate in nature
API endpoints
Announcements
People
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 create
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify-add role ROLE
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify-remove role ROLE
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify display_name NAME by usr:0000-0000-0000-0001
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify preferred_email EMAIL by usr:0000-0000-0000-0001
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify PREF BOOL by usr:0000-0000-0000-0001
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify bio 'BIO' by usr:0000-0000-0000-0001
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify cv 'URL' by usr:0000-0000-0000-0001
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify job 'JOB' by usr:0000-0000-0000-0001
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify pronouns 'PRONOUNS' by usr:0000-0000-0000-0001
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify website 'URL' by usr:0000-0000-0000-0001
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify-add personal_page 'PAGE' by usr:0000-0000-0000-0001
'PAGE'
-->'url=URL, type=TYPE'
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify-remove personal_page 'PAGE' by usr:0000-0000-0000-0001
'PAGE'
-->'url=URL, type=TYPE'
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify-add other_identity 'IDENTITY' by usr:0000-0000-0000-0001
'IDENTITY'
-->'identity=IDENT, type=TYPE'
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 modify-remove other_identity 'IDENTITY' by usr:0000-0000-0000-0001
'IDENTITY'
-->'identity=IDENT, type=TYPE'
Projects
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef create by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify-add tag 'TAG' by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify-remove tag 'TAG' by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify-add member usr:0000-0000-0000-0001 by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify-remove member usr:0000-0000-0000-0001 by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify-add owner usr:0000-0000-0000-0001 by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify-remove owner usr:0000-0000-0000-0001 by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef delete by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify description 'DESC' by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify is_public BOOL by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify name 'NAME' by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify PREF BOOL by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify award_information 'INFO' by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify goals 'GOALS' by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify-add keyword 'KEYWORD' by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify-remove keyword 'KEYWORD' by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify project_status 'STATUS' by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify purpose 'PURPOSE' by usr:0000-0000-0000-0002
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify-add reference 'REFERENCE' by usr:0000-0000-0000-0002
'REFERENCE'
-->'description=DESC, url=URL'
2022-09-06 19:45:56,022 Project event prj:dead-beef-dead-beef modify-remove reference 'REFERENCE' by usr:0000-0000-0000-0002
'REFERENCE'
-->'description=DESC, url=URL'
Publications
SSH Keys
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 create sshkey KEYTYPE key:feed-beef-feed-beef
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 deactivate sshkey KEYTYPE key:feed-beef-feed-beef
2022-09-06 19:45:56,022 User event usr:0000-0000-0000-0001 delete sshkey KEYTYPE key:feed-beef-feed-beef
Testbed Info