Working with logs
To view the logs, use any convenient method:
-
Go to the VK Cloud management console.
-
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.
-
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.
-
(Optional) Use the search tools.
-
Click the required log in the list. Detailed information about it will be displayed.
-
Go to the VK Cloud management console.
-
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.
-
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.
-
-
Use any parameter of a specific log to find other logs with the same values for that parameter:
- Open the detailed information for the required log.
- Click the
icon next to the required parameter in the General information and Recognized fields blocks to filter logs by this parameter.
- Make sure the corresponding search query language expression has been added to the Query field.
- (Optional) Repeat for another parameter.
-
Click the Run button.
The list will display logs that match the search criteria.
-
Go to the VK Cloud management console.
-
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.
-
Find the required log. If needed, use the search tools.
-
Copy the entry using one of the following methods:
- In the
Streamview, clickfor the required log and select Copy log details.
- In the
Tableview, 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.
- In the
-
Go to the VK Cloud management console.
-
Go to the Monitoring → Logging section.
-
Find the required event.
-
Add a trigger using one of the following methods:
- In the
Streamview, clickfor the required log and select Create alert.
- In the
Tableview, click the required log, then click the Create trigger button on the panel that opens.
- In the
-
Enter the trigger name.
-
(Optional) Edit the query using the search query language.
-
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.
-
Select an existing notification channel from the list or the
Create new channeloption. If you are creating a new notification channel, specify its parameters:-
Channel name: enter a name for the channel.
-
Notification type: select
EmailorSMS. -
Recipient: enter the email address or phone number of the notification recipient.
-
-
(Optional) Click
Add channel to add another notification channel and specify its parameters.
-
Click the Create trigger button.