GCP Logs¶
The Google Cloud Logs explorer allows you to retrieve information on the number of logs and their severity. To get your Google Logs connector working, simply add the Vault you created previously or create a new one. Options
- Name*: A simple label for easier identification in the SenHub interface.
- Description: For your personal reference only.
- Vault: Select the appropriate vault for this resource from the list box.
- Group: optional — assign this instance to a group to organise it within SenHub.
- Time period: Choose the appropriate time period from the list box. Seventeen time period can be retrieved from the last 15 seconds to the last 30 days.
Example output
For the selected time period, the connector returns the job start time and a count of matching log entries broken down by Google Cloud severity level:
{
"metrics": [
{ "channel": "Start Time", "value": 1725981405127, "unit": "ms" },
{ "channel": "DEFAULT", "value": 0 },
{ "channel": "DEBUG", "value": 3 },
{ "channel": "INFO", "value": 120 },
{ "channel": "NOTICE", "value": 0 },
{ "channel": "WARNING", "value": 8 },
{ "channel": "ERROR", "value": 2 },
{ "channel": "CRITICAL", "value": 0 },
{ "channel": "ALERT", "value": 0 },
{ "channel": "EMERGENCY", "value": 0 }
],
"message": "Metrics successfully retrieved.",
"status": "OK",
"date": 1725981405127
}