Details
Description
Issue
Eventing logs in the file system are correct but for some reason using the "Log" (or "Logs") link in the Eventing Tab for a deployed function the very 1st line of log info is not displayed in the UI
Steps to reproduce
1) Load "travel-sample" data in a clean Couchbase install (with Query and Eventing)
2) In the Eventing Tab
A) import "logfile_issue" from the attached file logfile_issue.json
B) deploy the "logfile_issue"
Note, there will be no activity since 'travel-sample' has no type="logfile_issue" records
3) In the Query Tab run the following two N1QL statements one at a time
INSERT INTO `travel-sample` (KEY,VALUE) VALUES ( "logfile_issue_1", {"some_data":"junk","id":1,"type":"logfile_issue"} );
|
DELETE FROM `travel-sample` WHERE type = "logfile_issue";
|
4) In the Eventing Tab of the UI click "Log"
When we look at the "Log" for "logfile_issue" via the UI it will display every thing in 'reverse order' BUT the very first (or oldest) line is missing. In this test we have two (2) lines displayed
2019-11-24T09:11:22.482-07:00 [INFO] "LINE 3 OnUpdate (LINE 1 does not show in UI via log) docId" "logfile_issue_1"
|
2019-11-24T09:11:22.482-07:00 [INFO] "LINE 2 OnUpdate (LINE 1 does not show in UI via log) docId" "logfile_issue_1"
|
5) However looking in the file system (where the eventing logs are stored) we have three (3) lines of log data
HQ-0460:@eventing jon.strabala$ pwd
|
/Users/jon.strabala/Library/Application Support/Couchbase/var/lib/couchbase/data/@eventing
|
HQ-0460:@eventing jon.strabala$ cat logfile_issue.log
|
2019-11-24T09:11:22.482-07:00 [INFO] "LINE 1 OnUpdate (LINE 1 does not show in UI via log) docId" "logfile_issue_1"
|
2019-11-24T09:11:22.482-07:00 [INFO] "LINE 2 OnUpdate (LINE 1 does not show in UI via log) docId" "logfile_issue_1"
|
2019-11-24T09:11:22.482-07:00 [INFO] "LINE 3 OnUpdate (LINE 1 does not show in UI via log) docId" "logfile_issue_1"
|
HQ-0460:@eventing jon.strabala$
|
Attachments
Issue Links
- backports to
-
MB-41940 [BP MB-37043] - Eventing app logs do not display the very 1st line of log info via the UI
- Closed