Skip to content

Commit fc5a10a

Browse files
authored
Merge branch 'main' into MSSPs-library-content
2 parents 2e0d4e2 + 280b993 commit fc5a10a

21 files changed

+111
-139
lines changed

.clabot

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@
184184
"dlindelof-sumologic",
185185
"snyk-bot",
186186
"stephenthedev",
187-
"Apoorvkudesia-sumologic"
187+
"Apoorvkudesia-sumologic",
188+
"ntanwar-sumo"
188189
],
189190
"message": "Thank you for your contribution! As this is an open source project, we require contributors to sign our Contributor License Agreement and do not have yours on file. To proceed with your PR, please [sign your name here](https://forms.gle/YgLddrckeJaCdZYA6) and we will add you to our approved list of contributors.",
190191
"label": "cla-signed",

docs/integrations/microsoft-azure/azure-api-management.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ When you configure the Event Hubs source or HTTP source, plan your source catego
3232

3333
### Configure metrics collection
3434

35-
To set up the Azure Metrics source in Sumo Logic, refer to [Azure Metrics Source](/docs/send-data/hosted-collectors/microsoft-source/azure-metrics-source).
35+
import MetricsSourceBeta from '../../reuse/metrics-source-beta.md';
36+
37+
<MetricsSourceBeta/>
3638

37-
3839
:::note
3940
In the v2 service tiers, API Management has replaced the capacity metric with separate CPU and memory utilization metrics
4041
:::

docs/integrations/microsoft-azure/azure-app-service-plan.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ When you configure the event hubs source or HTTP source, plan your source catego
3131

3232
### Configure metrics collection
3333

34-
To set up the Azure Metrics source in Sumo Logic, refer to [Azure Metrics Source](/docs/send-data/hosted-collectors/microsoft-source/azure-metrics-source).
34+
import MetricsSourceBeta from '../../reuse/metrics-source-beta.md';
35+
36+
<MetricsSourceBeta/>
3537

3638
### Configure logs collection
3739

docs/integrations/microsoft-azure/azure-application-gateway.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ When you configure the event hubs source or HTTP source, plan your source catego
4242

4343
### Configure metrics collection
4444

45-
To set up the Azure Metrics source in Sumo Logic, refer to [Azure Metrics Source](/docs/send-data/hosted-collectors/microsoft-source/azure-metrics-source).
45+
import MetricsSourceBeta from '../../reuse/metrics-source-beta.md';
46+
47+
<MetricsSourceBeta/>
4648

4749
### Configure logs collection
4850

docs/integrations/microsoft-azure/azure-cache-for-redis.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ When you configure the event hubs source or HTTP source, plan your source catego
3232

3333
### Configure metrics collection
3434

35-
To set up the Azure Metrics source in Sumo Logic, refer to [Azure Metrics Source](/docs/send-data/hosted-collectors/microsoft-source/azure-metrics-source).
35+
import MetricsSourceBeta from '../../reuse/metrics-source-beta.md';
36+
37+
<MetricsSourceBeta/>
3638

3739
### Configure logs collection
3840

docs/integrations/microsoft-azure/azure-container-instances.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,12 @@ For more information on supported dimensions, refer to the [Azure documentation]
2525

2626
* Set up application logs collection using fluent-bit sidecar container using the [http output plugin](https://docs.fluentbit.io/manual/1.5/pipeline/outputs/http) and the [tail input plugin](https://docs.fluentbit.io/manual/1.5/pipeline/inputs/tail). You must explicitly enable fluent-bit collection for each container group which you want to monitor.
2727
* Metrics collection using our [Azure Metrics Source](/docs/send-data/hosted-collectors/microsoft-source/azure-metrics-source).
28-
29-
:::note
30-
Sumo Logic Metrics source is currently in Beta, to participate, contact your Sumo Logic account executive.
31-
:::
3228

3329
### Configure metrics collection
3430

35-
To set up the Azure Metrics source in Sumo Logic, refer to [Azure Metrics Source](/docs/send-data/hosted-collectors/microsoft-source/azure-metrics-source).
31+
import MetricsSourceBeta from '../../reuse/metrics-source-beta.md';
32+
33+
<MetricsSourceBeta/>
3634

3735
### Configure logs collection
3836

docs/integrations/microsoft-azure/azure-cosmos-db-for-postgresql.md

Lines changed: 36 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -23,105 +23,17 @@ For Azure Cosmos DB for PostgreSQL, you can collect the following logs and metri
2323
Azure service sends monitoring data to Azure Monitor, which can then [stream data to Eventhub](https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/stream-monitoring-data-event-hubs). Sumo Logic supports:
2424

2525
* Logs collection from [Azure Monitor](https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-get-started) using our [Azure Event Hubs source](/docs/send-data/collect-from-other-data-sources/azure-monitoring/ms-azure-event-hubs-source/).
26-
* Metrics collection using our [HTTP Logs and Metrics source](/docs/send-data/collect-from-other-data-sources/azure-monitoring/collect-metrics-azure-monitor/) via Azure Functions deployed using the ARM template.
26+
* Metrics collection using our [Azure Metrics Source](/docs/send-data/hosted-collectors/microsoft-source/azure-metrics-source).
2727

2828
You must explicitly enable diagnostic settings for each Azure Cosmos DB for PostgreSQL cluster you want to monitor. You can forward logs to the same event hub provided they satisfy the limitations and permissions as described [here](https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/diagnostic-settings?tabs=portal#destination-limitations).
2929

3030
When you configure the event hubs source or HTTP source, plan your source category to ease the querying process. A hierarchical approach allows you to make use of wildcards. For example: `Azure/CosmosDBforPostgreSQL/Logs`, `Azure/CosmosDBforPostgreSQL/Metrics`.
3131

32-
33-
### Configure field in field schema
34-
35-
1. [**Classic UI**](/docs/get-started/sumo-logic-ui-classic). In the main Sumo Logic menu, select **Manage Data > Logs > Fields**. <br/>[**New UI**](/docs/get-started/sumo-logic-ui). In the top menu select **Configuration**, and then under **Logs** select **Fields**. You can also click the **Go To...** menu at the top of the screen and select **Fields**.
36-
2. Search for the following fields:
37-
- `tenant_name`. This field is tagged at the collector level. You can get the tenant name using the instructions in the [Microsoft Documentation](https://learn.microsoft.com/en-us/azure/active-directory-b2c/tenant-management-read-tenant-name#get-your-tenant-name).
38-
- `location`. The region to which the resource name belongs to.
39-
- `subscription_id`. ID associated with a subscription where the resource is present.
40-
- `resource_group`. The resource group name where the Azure resource is present.
41-
- `provider_name`. Azure resource provider name (for example, Microsoft.Network).
42-
- `resource_type`. Azure resource type (for example, storage accounts).
43-
- `resource_name`. The name of the resource (for example, storage account name).
44-
- `service_type`. Type of the service that can be accessed with a Azure resource.
45-
- `service_name`. Services that can be accessed with an Azure resource (for example, Azure SQL databases in Azure SQL Server).
46-
3. Create the fields if they are not present. Refer to [Manage fields](/docs/manage/fields/#manage-fields).
47-
48-
### Configure Field Extraction Rules
49-
50-
Create the following Field Extraction Rules (FER) for Azure Storage by following the instructions in the [Create a Field Extraction Rule](/docs/manage/field-extractions/create-field-extraction-rule/). Create the rules below if they are not present.
51-
52-
#### Azure location extraction FER
53-
54-
```sql
55-
Rule Name: AzureLocationExtractionFER
56-
Applied at: Ingest Time
57-
Scope (Specific Data): tenant_name=*
58-
```
59-
60-
```sql title="Parse Expression"
61-
json "location", "properties.resourceLocation", "properties.region" as location, resourceLocation, service_region nodrop
62-
| replace(toLowerCase(resourceLocation), " ", "") as resourceLocation
63-
| if (!isBlank(resourceLocation), resourceLocation, location) as location
64-
| if (!isBlank(service_region), service_region, location) as location
65-
| if (isBlank(location), "global", location) as location
66-
| fields location
67-
```
68-
69-
#### Resource ID extraction FER
70-
71-
```sql
72-
Rule Name: AzureResourceIdExtractionFER
73-
Applied at: Ingest Time
74-
Scope (Specific Data): tenant_name=*
75-
```
76-
77-
```sql title="Parse Expression"
78-
json "resourceId", "ResourceId" as resourceId1, resourceId2 nodrop
79-
| if (isBlank(resourceId1), resourceId2, resourceId1) as resourceId
80-
| toUpperCase(resourceId) as resourceId
81-
| parse regex field=resourceId "/SUBSCRIPTIONS/(?<subscription_id>[^/]+)" nodrop
82-
| parse field=resourceId "/RESOURCEGROUPS/*/" as resource_group nodrop
83-
| parse regex field=resourceId "/PROVIDERS/(?<provider_name>[^/]+)" nodrop
84-
| parse regex field=resourceId "/PROVIDERS/[^/]+(?:/LOCATIONS/[^/]+)?/(?<resource_type>[^/]+)/(?<resource_name>.+)" nodrop
85-
| parse regex field=resource_name "(?<parent_resource_name>[^/]+)(?:/PROVIDERS/[^/]+)?/(?<service_type>[^/]+)/?(?<service_name>.+)" nodrop
86-
| if (isBlank(parent_resource_name), resource_name, parent_resource_name) as resource_name
87-
| fields subscription_id, location, provider_name, resource_group, resource_type, resource_name, service_type, service_name
88-
```
89-
90-
### Configure metric rules
91-
92-
Create the following metrics rules by following the instructions in [Create a metrics rule](/docs/metrics/metric-rules-editor/#create-a-metrics-rule). Create the rules below if they are not present.
93-
94-
#### Azure observability metadata extraction flexible PostgreSQL server level
95-
96-
```sql
97-
Rule Name: AzureObservabilityMetadataExtractionAzureCosmosDBForPostgreSQLLevel
98-
```
99-
100-
```sql title="Metric match expression"
101-
resourceId=/SUBSCRIPTIONS/*/RESOURCEGROUPS/*/PROVIDERS/MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/* tenant_name=*
102-
```
103-
104-
| Fields extracted | Metric rule |
105-
|:------------------|:-------------------------|
106-
| subscription_id | $resourceId._1 |
107-
| resource_group | $resourceId._2 |
108-
| provider_name | MICROSOFT.DBFORPOSTGRESQL|
109-
| resource_type | SERVERGROUPSV2 |
110-
| resource_name | $resourceId._3 |
111-
112-
11332
### Configure metrics collection
11433

115-
In this section, you will configure a pipeline for shipping metrics from Azure Monitor to an Event Hub, on to an Azure Function, and finally to an HTTP Source on a hosted collector in Sumo Logic.
34+
import MetricsSourceBeta from '../../reuse/metrics-source-beta.md';
11635

117-
1. Create hosted collector and tag `tenant_name` field. <br/><img src={useBaseUrl('img/integrations/microsoft-azure/Azure-Storage-Tag-Tenant-Name.png')} alt="Azure Tag Tenant Name" style={{border: '1px solid gray'}} width="500" />
118-
2. [Configure an HTTP Source](/docs/send-data/collect-from-other-data-sources/azure-monitoring/collect-metrics-azure-monitor/#step-1-configure-an-http-source).
119-
1. [Configure and deploy the ARM Template](/docs/send-data/collect-from-other-data-sources/azure-monitoring/collect-metrics-azure-monitor/#step-2-configure-azure-resources-using-arm-template).
120-
1. [Export metrics to Event Hub](/docs/send-data/collect-from-other-data-sources/azure-monitoring/collect-metrics-azure-monitor/#step-3-export-metrics-for-a-particular-resource-to-event-hub). Perform the steps below for each Flexible PostgreSQL Server resource that you want to monitor.
121-
1. Choose `Stream to an event hub` as destination.
122-
1. Select `AllMetrics`.
123-
1. Use the Event hub namespace created by the ARM template in Step 2 above. You can create a new Event hub or use the one created by ARM template. You can use the default policy `RootManageSharedAccessKey` as the policy name. <br/><img src={useBaseUrl('img/send-data/export-metrics-diagnostic-settings-cosmosdbforpostgresql.png')} alt="Azure flexible postgresql server metrics" style={{border: '1px solid gray'}} width="800" />
124-
1. Tag the location field in the source with right location value. <br/><img src={useBaseUrl('img/integrations/microsoft-azure/Azure-Storage-Tag-Location.png')} alt="Azure CosmosDB for PostgreSql Tag Location" style={{border: '1px solid gray'}} width="400" />
36+
<MetricsSourceBeta/>
12537

12638
### Configure logs collection
12739

@@ -157,15 +69,27 @@ Since this source contains logs from multiple regions, ensure that you do not ta
15769

15870
Now that you have set up data collection, install the Azure Database for PostgreSQL Sumo Logic app to use the pre-configured dashboards that provide visibility into your environment for real-time analysis of overall usage.
15971

160-
import AppInstallNoDataSourceV2 from '../../reuse/apps/app-install-index-apps-v2.md';
72+
import AppInstallIndexV2 from '../../reuse/apps/app-install-index-option.md';
16173

162-
<AppInstallNoDataSourceV2/>
74+
<AppInstallIndexV2/>
75+
76+
As part of the app installation process, the following fields will be created by default:
77+
78+
- `tenant_name`. This field is tagged at the collector level. You can get the tenant name using the instructions [here](https://learn.microsoft.com/en-us/azure/active-directory-b2c/tenant-management-read-tenant-name#get-your-tenant-name).
79+
- `location`. The region the resource name belongs to.
80+
- `subscription_id`. ID associated with a subscription where the resource is present.
81+
- `resource_group`. The resource group name where the Azure resource is present.
82+
- `provider_name`. Azure resource provider name (for example, Microsoft.Network).
83+
- `resource_type`. Azure resource type (for example, storage accounts).
84+
- `resource_name`. The name of the resource (for example, storage account name).
85+
- `service_type`. Type of the service that can be accessed with an Azure resource.
86+
- `service_name`. Services that can be accessed with an Azure resource (for example, in Azure Container Instances the service is Subscriptions).
16387

16488
## Viewing the Azure Cosmos DB for PostgreSQL dashboards
16589

166-
import ViewDashboards from '../../reuse/apps/view-dashboards.md';
90+
import ViewDashboardsIndex from '../../reuse/apps/view-dashboards-index.md';
16791

168-
<ViewDashboards/>
92+
<ViewDashboardsIndex/>
16993

17094
### Overview
17195

@@ -282,6 +206,23 @@ import AppUninstall from '../../reuse/apps/app-uninstall.md';
282206

283207
<AppUninstall/>
284208

209+
## Create monitors for Azure Cosmos DB for PostgreSQL
210+
211+
import CreateMonitors from '../../reuse/apps/create-monitors.md';
212+
213+
<CreateMonitors/>
214+
215+
### Azure Cosmos DB for PostgreSQL alerts
216+
217+
These alerts are metrics-based and will work for all Cosmos DB PostgreSQL instances.
218+
219+
| Alert Name | Description | Alert Condition | Recover Condition |
220+
|:-------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------|:----------------|:------------------|
221+
| `Azure Cosmos DB for PostgreSQL - CPU Percent` | This alert is triggered when CPU usage spikes above 80% are detected for any Azure Cosmos DB for PostgreSQL instance. | Count > 80 | Count =< 70 |
222+
| `Azure Cosmos DB for PostgreSQL - Memory Percentage` | This alert is triggered when average Memory utilization spikes above 80% are detected for any Azure Cosmos DB for PostgreSQL instance. | Count > 80 | Count =< 70 |
223+
| `Azure Cosmos DB for PostgreSQL - Storage Percentage` | This alert is triggered when storage percentage goes above 70% for any Azure Cosmos DB for PostgreSQL instance. | Count > 80 | Count =< 70 |
224+
225+
285226
## Troubleshooting
286227

287228
### HTTP Logs and Metrics Source used by Azure Functions

docs/integrations/microsoft-azure/azure-cosmos-db.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ When you configure the Event Hubs source or HTTP source, plan your source catego
4848

4949
### Configure metrics collection
5050

51-
To set up the Azure Metrics source in Sumo Logic, refer to [Azure Metrics Source](/docs/send-data/hosted-collectors/microsoft-source/azure-metrics-source).
51+
import MetricsSourceBeta from '../../reuse/metrics-source-beta.md';
52+
53+
<MetricsSourceBeta/>
5254

5355
### Configure logs collection
5456

docs/integrations/microsoft-azure/azure-database-for-mysql.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ When you configure the event hubs source or HTTP source, plan your source catego
3838

3939
### Configure metrics collection
4040

41-
To set up the Azure Metrics source in Sumo Logic, refer to [Azure Metrics Source](/docs/send-data/hosted-collectors/microsoft-source/azure-metrics-source).
41+
import MetricsSourceBeta from '../../reuse/metrics-source-beta.md';
42+
43+
<MetricsSourceBeta/>
4244

4345
### Configure logs collection
4446

@@ -59,7 +61,7 @@ In this section, you will configure a pipeline for shipping diagnostic logs from
5961
Set error logs related server parameters as given below:
6062
- error_server_log_file: set to *ON*
6163
- log_output: set to *FILE*
62-
64+
6365
Set Slow Query logs related parameters as given below:
6466
- slow_query_log: set to *ON*
6567
- long_query_time: Set the number of seconds a query can run before it's considered "slow". The default is 10 seconds.

docs/integrations/microsoft-azure/azure-database-for-postgresql.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ When you configure the event hubs source or HTTP source, plan your source catego
3434

3535
### Configure metrics collection
3636

37-
To set up the Azure Metrics source in Sumo Logic, refer to [Azure Metrics Source](/docs/send-data/hosted-collectors/microsoft-source/azure-metrics-source).
37+
import MetricsSourceBeta from '../../reuse/metrics-source-beta.md';
38+
39+
<MetricsSourceBeta/>
3840

3941
### Configure logs collection
4042

0 commit comments

Comments
 (0)