System logs not showing up

Description

The system service logs are not showing up both from UI and REST endpoints. I can only see appfabric logs from a k8s cluster

Release Notes

None

is duplicated by

Activity

Show:

Edwin Elia March 20, 2019 at 11:39 PM

Ajai Narayanan March 19, 2019 at 9:19 PM

Talked to . We decided to just query the last 7 days (UTC time stamp - 7 days) as the start time for querying the logs.

Ajai Narayanan March 19, 2019 at 9:05 PM

Talked to . The UI will be using the `/uptime` endpoint in UI which gets the duration in ms. We can subtract this duration in milliseconds from UTC time to get the cdap start time. The min of startime or last 7 days is what we need to pass to the logs API to get all the logs since CDAP started.

Vinisha Shah March 18, 2019 at 8:31 PM
Edited

This happens because UI queries logs without specifying time range. In that case, backend returns logs for last 1 hour only. Instead if UI queries logs from start timestamp 7 days in past, then all the logs should be returned by backed. Had offline discussion about this with and

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Components

Fix versions

Priority

Created March 16, 2019 at 12:02 AM
Updated March 22, 2019 at 5:38 PM
Resolved March 22, 2019 at 5:38 PM