Logs

Logs let you detect errors and unexpected behaviors occurring in your application.

Environment Logs

Web Servers Logs

Artifakt aggregates the following log categories for each environment:

  • Web Server – Anything related to Web servers (Apache or Nginx) or coming from your application, i.e. what is generated by the code of your application or its dependencies..

  • Database – Everything related to your application database. You will find a section about slow queries (SQL queries whose execution takes more than 10 seconds) and another one about errors.

For each of the above categories, it is possible to:

  • Select a specific log file (you can customize these sources)

  • Filter log entries by level (error, warning, info, etc.)

  • Filter log entries by date

  • Filter log entries by keywords

Depending on your platform type, the log retention period will vary according to the table below.

Platform type

Log retention period

Starter

30 days

Scalable

90 days

Real-time Log Mode

You also have a real-time mode allowing you to see the content of the log files without having to reload the pages. This mode can be particularly useful during debugging sessions.

When you enable the real-time mode, the filters you would have set beforehand are reset and become unavailable.

Custom Log Files

To stream specific log entries from your source code to the Artifakt Console, you should send the logs directly to the standard output stdout or stderr. Then, the data would be aggregated and available from Environment β†’ Logs.

Custom Log Levels

You can define custom log levels to filter and sort log entries more easily. For example, you can define a new log level called Import and using the ?import pattern. Then, go to Environment β†’ Logs and you will be able to filter log entries that contain the "import" string.

Custom Logs Levels Configuration

For more information about the patterns syntax, please refer to the AWS documentation.