| look at real (test) logfiles | Adam | Log file directory on Google Drive. In the mod-circulation.log, there is what appears to be a checkout at 11:24:52. How do we parse logs consistently? A lot of the log files are using the log4j format which can be configured to output valid XML - userID (also referenced without a clear label); patronID; userBarcode; firstName, lastName; recipientId; requesterId
11:24:52 INFO SingleRecordFetcher Fetching automatedPatronBlocks with ID: c0ada57f-f592-408d-a835-0df6a5b5c7b1 11:24:55 INFO SubPublishingService Event published successfully. ID: 8c9db1c7-fe27-477c-b219-e4090ac5d014, type: ITEM_CHECKED_OUT, payload: {"userId":"c0ada57f-f592-408d-a835-0df6a5b5c7b1","loanId":"a3baa692-9040-4d85-8b4e-fb288d653394","dueDate":"2021-09-10T12:24:52.274Z" 11:24:55 INFO SubPublishingService Event published successfully. ID: 5985a0db-74ff-441d-bfb7-2ed3c9503951, type: LOG_RECORD, payload: {"logEventType":"CHECK_OUT_EVENT","servicePointId":"7c5abc9f-f3d7-4856-b8d7-6712462ca007","loanId":"a3baa692-9040-4d85-8b4e-fb288d653394","isLoanClosed":false,"dueDate":"2021-09-10T12:24:52.274Z","userId":"c0ada57f-f592-408d-a835-0df6a5b5c7b1","userBarcode":"123456","itemId":"7212ba6a-8dcf-45a1-be9a-ffaa847c4423","itemBarcode":"10101","itemStatusName":"Checked out","holdingsRecordId":"e3ff6133-b9a2-4d4c-a1c9-dc1867d4df19","instanceId":"5bf370e0-8cca-4d9c-82e4-5170ab2a0a39","source":"ADMINISTRATOR, DIKU"} 11:30:30 INFO ActionSessionService Attempting to send a notice for a group of 1 action sessions to user c0ada57f-f592-408d-a835-0df6a5b5c7b1 11:30:30 INFO ionSessionRepository Deleting PatronSessionRecord{id=7e2a7590-4ef5-48ab-859d-ec3c5f6fc902, patronId=c0ada57f-f592-408d-a835-0df6a5b5c7b1, loanId=a3baa692-9040-4d85-8b4e-fb288d653394, actionType=CHECK_OUT}` 14:03:20 INFO ionSessionRepository Deleting PatronSessionRecord{id=2d9ebe1a-cf5b-4f0c-8ec8-ee25e005d82f, patronId=81a4a708-899f-475c-a2b8-5edafe32f60f, loanId=e444dca6-3be3-4dec-8379-ee4a95f9b934, actionType=CHECK_OUT}` 14:22:54 INFO SubPublishingService Event published successfully. ID: f2f8ebf7-986e-4f51-937e-d1b56e51a480, type: LOG_RECORD, payload: {"logEventType":"REQUEST_CREATED_EVENT","payload":{"itemId":"efa8a2b0-60e5-4aaf-96fc-247956efd967","itemBarcode":"8634","itemStatusName":"Checked out","requests":{"created":{"id":"aa81901-ee7e-4048-9ad7-bb42c100f5c3","requestType":"Recall","requestDate":"2021-09-06T11:06:50.000+00:00","requesterId":"53c3ee2e-a1a6-4487-8f70-25c5ca4c4b83","itemId":"efa8a2b0-60e5-4aaf-96fc-247956efd967","status":"Open - Not yet filled","item":{"title":"title of resource","barcode":"8634","identifiers":[{"value":"919112193","identifierTypeId":"8261054f-be78-422d-bd51-4ed9f33c3422"}]},"requester":{"firstName":"Jack","lastName":"Handey","barcode":"38417"},"fulfilmentPreference":"Hold Shelf","pickupServicePointId":"79faacf1-4ba4-42c7-8b2a-566b259e4641","metadata":{"createdDate":"2021-09-10T14:22:54.494+00:00","createdByUserId":"00000000-1111-5555-9999-999999999992","updatedDate":"2021-09-10T14:22:54.494+00:00","updatedByUserId":"00000000-1111-5555-9999-999999999992"},"position":1}}}} 14:26:08 ERROR LogHelper Failed to send patron notice request: PatronNotice{recipientId='53c3ee2e-a1a6-4487-8f70-25c5ca4c4b83', templateId='2d5f138f-e088-4dff-80f6-9830f13bcde7'}. Cause: Server error failure, reason: HTTP request to "http://10.36.1.237:9130/patron-notice" failed, status code: 422, response: "{ 14:26:09 INFO SubPublishingService Event published successfully. ID: 4e7baf0b-c01a-4dd9-9b88-c2fada95294e, type: LOG_RECORD, payload: {"logEventType":"REQUEST_CREATED_EVENT","payload":{"itemId":"332f0363-e945-4077-95c1-3dec1f359732","itemBarcode":"1641","itemStatusName":"Checked out","requests":{"created":{"id":"592441ff-5b09-4705-89d8-d634a32ecf90","requestType":"Recall","requestDate":"2021-09-06T11:06:50.000+00:00","requesterId":"53c3ee2e-a1a6-4487-8f70-25c5ca4c4b83","itemId":"332f0363-e945-4077-95c1-3dec1f359732","status":"Open - Not yet filled","item":{"title":"title of resource","barcode":"1641","identifiers":[{"value":"919112193","identifierTypeId":"8261054f-be78-422d-bd51-4ed9f33c3422"}]},"requester":{"firstName":"Jack","lastName":"Handey","barcode":"38417"},"fulfilmentPreference":"Hold Shelf","pickupServicePointId":"79faacf1-4ba4-42c7-8b2a-566b259e4641","metadata":{"createdDate":"2021-09-10T14:26:08.958+00:00","createdByUserId":"00000000-1111-5555-9999-999999999992","updatedDate":"2021-09-10T14:26:08.958+00:00","updatedByUserId":"00000000-1111-5555-9999-999999999992"},"position":1}}}} 14:26:09 INFO SubPublishingService Event published successfully. ID: 4e7baf0b-c01a-4dd9-9b88-c2fada95294e, type: LOG_RECORD, payload: {"logEventType":"REQUEST_CREATED_EVENT","payload":{"itemId":"332f0363-e945-4077-95c1-3dec1f359732","itemBarcode":"1641","itemStatusName":"Checked out","requests":{"created":{"id":"592441ff-5b09-4705-89d8-d634a32ecf90","requestType":"Recall","requestDate":"2021-09-06T11:06:50.000+00:00","requesterId":"53c3ee2e-a1a6-4487-8f70-25c5ca4c4b83","itemId":"332f0363-e945-4077-95c1-3dec1f359732","status":"Open - Not yet filled","item":{"title":"title of resource","barcode":"1641","identifiers":[{"value":"919112193","identifierTypeId":"8261054f-be78-422d-bd51-4ed9f33c3422"}]},"requester":{"firstName":"Jack","lastName":"Handey","barcode":"38417"},"fulfilmentPreference":"Hold Shelf","pickupServicePointId":"79faacf1-4ba4-42c7-8b2a-566b259e4641","metadata":{"createdDate":"2021-09-10T14:26:08.958+00:00","createdByUserId":"00000000-1111-5555-9999-999999999992","updatedDate":"2021-09-10T14:26:08.958+00:00","updatedByUserId":"00000000-1111-5555-9999-999999999992"},"position":1}}}}
|