VK Cloud logo

Working with logs

Viewing logs

To view the logs, use any convenient method:

  1. Go to the VK Cloud management console.

  2. Go to the Monitoring → Logging section.

    The list of logs and a histogram of log distribution over time will be displayed. It lets you quickly spot spikes in errors or activity.

  3. Use the buttons above the log list to select a display mode:

    • Stream — the list shows fewer details, but you can expand detailed information without leaving the list.
    • Table — a more detailed view that lets you copy brief log data. Detailed information is shown on a separate panel.
  4. (Optional) Use the search tools.

  5. Click the required log in the list. Detailed information about it will be displayed.

Using filters and search queries

  1. Go to the VK Cloud management console.

  2. Go to the Monitoring → Logging section.

    The list of logs and a histogram of log distribution over time will be displayed. It lets you quickly spot spikes in errors or activity.

  3. In the Query field, select one or more log search criteria:

    • Select the required filter values.

      • Period: the period for which logs will be displayed.
      • Level: the severity level of the event. All levels are selected by default.
      • Product: the VK Cloud service the logs are collected from. All services for which logging is configured are selected by default.
    • Formulate and enter a query using the search query language, or select a previously entered query from the Saved queries list.

  4. Use any parameter of a specific log to find other logs with the same values for that parameter:

    1. Open the detailed information for the required log.
    2. Click the Filter icon next to the required parameter in the General information and Recognized fields blocks to filter logs by this parameter.
    3. Make sure the corresponding search query language expression has been added to the Query field.
    4. (Optional) Repeat for another parameter.
  5. Click the Run button.

    The list will display logs that match the search criteria.

Copying the full log entry

  1. Go to the VK Cloud management console.

  2. Go to the Monitoring → Logging section.

    The list of logs and a histogram of log distribution over time will be displayed. It lets you quickly spot spikes in errors or activity.

  3. Find the required log. If needed, use the search tools.

  4. Copy the entry using one of the following methods:

    • In the Stream view, click more-icon for the required log and select Copy log details.
    • In the Table view, click the required log, then click the Copy log details button on the panel that opens.

    The full log entry will be copied in JSON format.

Creating a trigger from a log

  1. Go to the VK Cloud management console.

  2. Go to the Monitoring → Logging section.

  3. Find the required event.

  4. Add a trigger using one of the following methods:

    • In the Stream view, click more-icon for the required log and select Create alert.
    • In the Table view, click the required log, then click the Create trigger button on the panel that opens.
  5. Enter the trigger name.

  6. (Optional) Edit the query using the search query language.

  7. Click the Verify query button.

    If the query is correct, a preview chart of trigger firings based on the records found will be displayed on the right side of the screen.

  8. Select an existing notification channel from the list or the Create new channel option. If you are creating a new notification channel, specify its parameters:

    • Channel name: enter a name for the channel.

    • Notification type: select Email or SMS.

    • Recipient: enter the email address or phone number of the notification recipient.

  9. (Optional) Click plus-icon Add channel to add another notification channel and specify its parameters.

  10. Click the Create trigger button.

Was this article helpful?