Atlas App Services has reached its end-of-life status and is no longer actively supported by MongoDB. Triggers remain available in the Atlas UI. Refer to the deprecation page for details.
View Recent Logs
You can list the 100 most recent log entries for your application:
appservices logs list
Tail Logs in Real Time
You can use the --tail flag to open a stream that displays application logs
as they come in.
appservices logs list --tail
View Error Logs
You can use the --errors flag to view only error logs. If you don't specify
the flag, the command returns both error logs and regular logs.
appservices logs list --errors
Filter Logs by Type
You can use the --type flag to view logs of one or more specific types. If
you don't specify a type, the command returns logs of all types.
The following types are valid:
authfunctionpushservicetriggergraphql(GraphQL is deprecated. Learn more)syncschema
appservices logs list --type=function --type=trigger
View Logs for a Date Range
You can use the --start and --end flags to view logs from a range of
dates. The flags accept ISODate strings and you can use them separately or
together.
appservices logs list --start="2021-01-01T00:00:00.000+0000" --end="2021-02-01T00:00:00.000+0000"