0

Earlier was getting access denied for describeLogStreams and after adding the necessary policy got that fixed but now there is response but uploadSequenceToken (and nextToken) are empty.

    AWSLogs.default().describeLogStreams(req!) { (response, error) in
        if ((error) != nil) {
            Logging.logError("ERROR: AWS CW describe Log Stream error: \(String(describing: error))")
        } else {
            self.nextSequenceToken = response?.logStreams?.first?.uploadSequenceToken
// ^^^^^ above value is nil
        }

enter image description here

Any idea?

rysv
  • 2,416
  • 7
  • 30
  • 48

1 Answers1

1

The log stream looks empty. Maybe there is none for now.

  • This helped. Looks like first time around, need to send some logs even with upload token is empty. – rysv Mar 25 '21 at 22:38