Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions blog-service/2025-08-08-collection.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: Github Copilot Source (Collection)
image: https://help.sumologic.com/img/sumo-square.png
keywords:
- c2c
- github-copilot-source
hide_table_of_contents: true
---

import useBaseUrl from '@docusaurus/useBaseUrl';

We're excited to announce the release of our new cloud-to-cloud source for Github Copilot. This source aims to collect the organization and team metrics logs from the Copilot platform and send them to Sumo Logic for streamlined analysis. [Learn more](/docs/send-data/hosted-collectors/cloud-to-cloud-integration-framework/github-copilot-source).
1 change: 1 addition & 0 deletions cid-redirects.json
Original file line number Diff line number Diff line change
Expand Up @@ -2914,6 +2914,7 @@
"/cid/21333": "/docs/integrations/microsoft-azure/microsoft-defender-for-endpoint",
"/cid/21039": "/docs/send-data/hosted-collectors/cloud-to-cloud-integration-framework/vectra-source",
"/cid/21059": "/docs/send-data/hosted-collectors/cloud-to-cloud-integration-framework/onelogin-source",
"/cid/27061": "/docs/send-data/hosted-collectors/cloud-to-cloud-integration-framework/github-copilot-source",
"/cid/21041": "/docs/integrations/google/cloud-security-command-center",
"/cid/21097": "/docs/integrations/saas-cloud/confluent-cloud",
"/cid/21040": "/docs/manage/manage-subscription/create-and-manage-orgs/create-manage-orgs-service-providers",
Expand Down
2 changes: 1 addition & 1 deletion docs/integrations/product-list/product-list-a-l.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ For descriptions of the different types of integrations Sumo Logic offers, see [
| <img src={useBaseUrl('img/integrations/misc/genea-logo.svg')} alt="Thumbnail icon" width="100"/> | [Genea](https://www.getgenea.com/) | Cloud SIEM integration: [Sequr](https://github.com/SumoLogic/cloud-siem-content-catalog/blob/master/vendors/8eb022d6-fc75-49e7-8308-2fd04d046ea2.md) |
| <img src={useBaseUrl('img/integrations/misc/genetec-logo.png')} alt="Thumbnail icon" width="75"/> | [Genetec](https://www.genetec.com/) | Cloud SIEM integration: [Genetec](https://github.com/SumoLogic/cloud-siem-content-catalog/blob/master/vendors/e71c7bca-0423-4dbe-885e-efed5e058190.md) |
| <img src={useBaseUrl('img/integrations/misc/gigamon-logo.png')} alt="Thumbnail icon" width="75"/> | [Gigamon](https://www.gigamon.com/) | Cloud SIEM integration: [Gigamon](https://github.com/SumoLogic/cloud-siem-content-catalog/blob/master/vendors/f575ffed-7b6d-406e-9a55-848b4b6a720f.md) <br/>Partner integrations:<br/>- [Gigamon HAWK](https://github.com/SumoLogic/sumologic-public-partner-apps/tree/master/Gigamon_HAWK)<br/>- [Gigamon ThreatINSIGHT](https://github.com/SumoLogic/sumologic-public-partner-apps/tree/master/Gigamon_ThreatINSIGHT) |
| <img src={useBaseUrl('img/integrations/app-development/GitHub.png')} alt="Thumbnail icon" width="50"/> | [GitHub](https://github.com/) | App: [GitHub](/docs/integrations/app-development/github/) <br/>Automation integration: [GitHub](/docs/platform-services/automation-service/app-central/integrations/github/) <br/>Cloud SIEM integration: [Github](https://github.com/SumoLogic/cloud-siem-content-catalog/blob/master/vendors/193c791a-bb10-4742-a429-1256535f888b.md#vendors-github) <br/>Community app: [Sumo Logic for GitHub Actions](https://github.com/SumoLogic/sumologic-content/tree/master/GitHub/GitHub_Actions) |
| <img src={useBaseUrl('img/integrations/app-development/GitHub.png')} alt="Thumbnail icon" width="50"/> | [GitHub](https://github.com/) | App: [GitHub](/docs/integrations/app-development/github/) <br/>Automation integration: [GitHub](/docs/platform-services/automation-service/app-central/integrations/github/) <br/>Cloud SIEM integration: [Github](https://github.com/SumoLogic/cloud-siem-content-catalog/blob/master/vendors/193c791a-bb10-4742-a429-1256535f888b.md#vendors-github) <br/>Collector: [Github Copilot](/docs/send-data/hosted-collectors/cloud-to-cloud-integration-framework/github-copilot-source) <br/>Community app: [Sumo Logic for GitHub Actions](https://github.com/SumoLogic/sumologic-content/tree/master/GitHub/GitHub_Actions) |
| <img src={useBaseUrl('img/integrations/app-development/gitlab.png')} alt="Thumbnail icon" width="50"/> | [GitLab](https://about.gitlab.com/) | App: [GitLab](/docs/integrations/app-development/gitlab/) <br/>Automation integration: [GitLab](/docs/platform-services/automation-service/app-central/integrations/gitlab/) |
| <img src={useBaseUrl('img/integrations/saas-cloud/gmail-icon.png')} alt="Thumbnail icon" width="50"/> | [Gmail](https://www.google.com/gmail/about/) | App: [Gmail Trace Logs](/docs/integrations/saas-cloud/gmail-tracelogs) <br/>Automation integrations: <br/>- [Gmail](/docs/platform-services/automation-service/app-central/integrations/gmail/) <br/>- [Gmail Multiple Mailbox](/docs/platform-services/automation-service/app-central/integrations/gmail-multiple-mailbox/) <br/>Collector: [Gmail Trace Logs Source](/docs/send-data/hosted-collectors/cloud-to-cloud-integration-framework/gmail-tracelogs-source) |
| <img src={useBaseUrl('img/platform-services/automation-service/app-central/logos/google.png')} alt="Thumbnail icon" width="75"/> | [Google](https://about.google/) | Apps: <br/>- [Google App Engine](/docs/integrations/google/app-engine/) <br/>- [Google BigQuery](/docs/integrations/google/bigquery/) <br/>- [Google Cloud AlloyDB for PostgreSQL](/docs/integrations/google/cloud-alloydb-for-postgresql/) <br/>- [Google Cloud API Gateway](/docs/integrations/google/cloud-api-gateway/) <br/>- [Google Cloud APIs](/docs/integrations/google/cloud-apis/) <br/>- [Google Cloud Armor](/docs/integrations/google/cloud-armor/) <br/>- [Google Cloud Audit](/docs/integrations/google/cloud-audit) <br/>- [Google Cloud Auto Scaler](/docs/integrations/google/cloud-auto-scaler) <br/>- [Google Cloud Backup for GKE](/docs/integrations/google/cloud-backup-for-gke/) <br/>- [Google Cloud BigQuery BI Engine](/docs/integrations/google/cloud-bigquery-bi-engine/) <br/>- [Google Cloud Bigtable](/docs/integrations/google/cloud-bigtable/) <br/>- [Google Cloud Certificate Authority Service](/docs/integrations/google/cloud-certificate-authority-service/) <br/>- [Google Cloud Certificate Manager](/docs/integrations/google/cloud-certificate-manager/) <br/>- [Google Cloud Composer](/docs/integrations/google/cloud-composer/) <br/>- [Google Compute Engine](/docs/integrations/google/compute-engine/) <br/>- [Google Cloud Dataflow](/docs/integrations/google/cloud-dataflow/) <br/>- [Google Cloud Dataproc](/docs/integrations/google/cloud-dataproc/) <br/>- [Google Cloud Dataproc Metastore](/docs/integrations/google/cloud-dataproc-metastore/) <br/>- [Google Cloud Datastore](/docs/integrations/google/cloud-datastore/) <br/>- [Google Cloud Datastream](/docs/integrations/google/cloud-datastream/) <br/>- [Google Cloud Deploy](/docs/integrations/google/cloud-deploy/) <br/>- [Google Cloud Filestore](/docs/integrations/google/cloud-filestore/) <br/>- [Google Cloud Firebase](/docs/integrations/google/cloud-firebase/) <br/>- [Google Cloud Firestore](/docs/integrations/google/cloud-firestore/) <br/>- [Google Cloud Firewall](/docs/integrations/google/cloud-firewall/) <br/>- [Google Cloud Fleet Engine](/docs/integrations/google/cloud-fleet-engine/) <br/>- [Google Cloud Functions](/docs/integrations/google/cloud-functions/) <br/>- [Google Cloud Interconnect](/docs/integrations/google/cloud-interconnect/) <br/>- [Google Cloud Load Balancing](/docs/integrations/google/cloud-load-balancing/) <br/>- [Google Cloud Logging](/docs/integrations/google/cloud-logging/) <br/>- [Google Cloud Memorystore for Redis](/docs/integrations/google/cloud-memorystore-for-redis/) <br/>- [Google Cloud Net App Cloud Volumes Service](/docs/integrations/google/cloud-net-app-cloud-volumes-service/) <br/>- [Google Cloud Network Topology](/docs/integrations/google/cloud-network-topology/) <br/>- [Google Cloud Pub Sub](/docs/integrations/google/cloud-pub-sub/) <br/>- [Google Cloud Router](/docs/integrations/google/cloud-router/) <br/>- [Google Cloud Run](/docs/integrations/google/cloud-run/) <br/>- [Google Cloud Security Command Center](/docs/integrations/google/cloud-security-command-center/) <br/>- [Google Cloud Spanner](/docs/integrations/google/cloud-spanner/) <br/>- [Google Cloud SQL](/docs/integrations/google/cloud-sql/) <br/>- [Google Cloud Storage](/docs/integrations/google/cloud-storage/) <br/>- [Google Cloud Tasks](/docs/integrations/google/cloud-tasks/) <br/>- [Google Cloud TPU](/docs/integrations/google/cloud-tpu/) <br/>- [Google Cloud Trace](/docs/integrations/google/cloud-trace/) <br/>- [Google Cloud Traffic Director](/docs/integrations/google/cloud-traffic-director/) <br/>- [Google Cloud Vertex AI](/docs/integrations/google/cloud-vertex-ai/) <br/>- [Google Cloud VPC](/docs/integrations/google/cloud-vpc/) <br/>- [Google Cloud VPN](/docs/integrations/google/cloud-vpn/) <br/>- [Google Kubernetes Engine (GKE)](/docs/integrations/google/kubernetes-engine/) <br/>Automation integrations: <br/>- [Chronicle](/docs/platform-services/automation-service/app-central/integrations/chronicle/) <br/>- [Google Chat](/docs/platform-services/automation-service/app-central/integrations/google-chat/) <br/>- [Google Safe Browsing](/docs/platform-services/automation-service/app-central/integrations/google-safe-browsing/) <br/>- [Mandiant Advantage Threat intelligence](/docs/platform-services/automation-service/app-central/integrations/mandiant-advantage-threat-intelligence/) <br/>Cloud SIEM integration: [Google](https://github.com/SumoLogic/cloud-siem-content-catalog/blob/master/vendors/45601247-66a5-4c9c-b3af-c422f5b4cbeb.md) <br/>Collectors: <br/>- [Google BigQuery Source](/docs/send-data/hosted-collectors/cloud-to-cloud-integration-framework/google-bigquery-source/) <br/>- [GCP Metrics Source](/docs/send-data/hosted-collectors/google-source/gcp-metrics-source/) <br/>- [Google Cloud Platform (GCP) Source](/docs/send-data/hosted-collectors/google-source/google-cloud-platform-source/) <br/>- [Mandiant Threat Intel Source](/docs/send-data/hosted-collectors/cloud-to-cloud-integration-framework/mandiant-threat-intel-source/)<br/>Community app: [Sumo Logic for GCP Balancer Metrics](https://github.com/SumoLogic/sumologic-content/tree/master/GCP/Load_Balancer_Metrics) |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
---
id: github-copilot-source
title: Github Copilot Source
sidebar_label: Github Copilot
tags:
- cloud-to-cloud
- github-copilot
description: Learn to collect the organization metrics and team metrics from Github Copilot platform.
---

import useBaseUrl from '@docusaurus/useBaseUrl';

<img src={useBaseUrl('img/platform-services/automation-service/app-central/logos/github-copilot.png')} alt="Github-Copilot-icon" width="70" />

Github is a web-based platform that uses Git for version control and collaboration in software development. It enables developers to create, store, manage, and share code in repositories, track changes, and collaborate on projects with features such as branches, pull requests, and issue tracking.

Copilot is an AI-powered pair programmer that integrates with various development environments. It leverages machine learning models trained on publicly available code to provide real-time code suggestions, explanations, and even generate entire functions or tests based on context and natural language prompts. Copilot's features aim to enhance developer productivity, accelerate coding, and improve code quality.

## Data collected

| Source | Description | Polling interval |
| :-- | :-- | :-- |
| [Organization Metrics](https://docs.github.com/en/rest/copilot/copilot-metrics?apiVersion=2022-11-28#get-copilot-metrics-for-an-organization) | Provides aggregated usage data for Copilot features within an organization, including code completions, chat, and pull request summaries. | 24 hours |
| [Team Metrics](https://docs.github.com/en/rest/copilot/copilot-metrics?apiVersion=2022-11-28#get-copilot-metrics-for-a-team) | Provides feature usage for specific teams, with breakdowns by language, editor, and model. | 24 hours |

## Setup

### Vendor configuration

You are required to provide the **Organization Name** and **PAT Token** to configure the Github Copilot source.

1. **Organization Name**: Name of the organization. The name is not case sensitive.
2. **PAT Token**: Fine-grained PAT(Personal Access Token) token of the account. Follow the steps from the [GitHub Documentation](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) to generate the fine-grained token. Configure a never-expiring fine-grained token for smooth integration.

#### Pre-requisites

1. The fine-grained PAT token must have at least one of the following permission sets:
- "Github Copilot Business" organization permissions (read).
- "Administration" organization permissions (read).
2. To access any of the above endpoints, the Copilot metrics API access policy must be enabled for the organization (or organization containing the team if team metrics is configured).
3. Only organization owners and billing managers of the parent enterprise can view Copilot metrics.
- The PAT tokens need either (`manage_billing:copilot`, `read:org`), or `read:enterprise` scopes to use the endpoints. Refer to the [GitHub Documentation](https://docs.github.com/en/rest/copilot/copilot-metrics?apiVersion=2022-11-28#get-copilot-metrics-for-an-organization) for further details.

### Source configuration

When you create a Github Copilot Source, you add it to a Hosted Collector. Before creating the source, identify the Hosted Collector you want to use or create a new Hosted Collector. For instructions, see [Configure a Hosted Collector and Source](/docs/send-data/hosted-collectors/configure-hosted-collector).

To configure a Github Copilot Source, follow the steps below:
1. [**Classic UI**](/docs/get-started/sumo-logic-ui-classic). In the main Sumo Logic menu, select **Manage Data > Collection > Collection**. <br/>[**New UI**](/docs/get-started/sumo-logic-ui). In the Sumo Logic top menu select **Configuration**, and then under **Data Collection** select **Collection**. You can also click the **Go To...** menu at the top of the screen and select **Collection**.
1. On the Collection page, click **Add Source** next to a Hosted Collector.
1. Search for and select **Github Copilot**.
1. Enter a **Name** for the Source. The description is optional.
1. (Optional) For **Source Category**, enter any string to tag the output collected from the Source. Category metadata is stored in a searchable field called `_sourceCategory`.
1. (Optional) **Fields**. Click the **+Add** button to define the fields you want to associate. Each field needs a name (key) and value.
* ![green check circle.png](/img/reuse/green-check-circle.png) A green circle with a check mark is shown when the field exists in the Fields table schema.
* ![orange exclamation point.png](/img/reuse/orange-exclamation-point.png) An orange triangle with an exclamation point is shown when the field doesn't exist in the Fields table schema. In this case, an option to automatically add the nonexistent fields to the Fields table schema is provided. If a field is sent to Sumo Logic that does not exist in the Fields schema it is ignored, known as dropped.
1. **Organization Name**. Name of the organization. The name is not case sensitive.
1. **PAT Token**. Enter the PAT token generated from the [Github Copilot platform](#vendor-configuration).
1. (Optional) **Collect Team Metric Logs**. Select this checkbox to collect the team metric logs from the Copilot platform.
1. **Team Names**. Write the team names of which you want to collect metric logs.
1. **Metrics Period(in days)**. Specifies the number of past days for which metrics data should be collect. This is set to 1 day by default. You can adjust it based on your needs.
1. When you are finished configuring the Source, click **Save**.

## JSON schema

Sources can be configured using UTF-8 encoded JSON files with the Collector Management API. See [Use JSON to Configure Sources](/docs/send-data/use-json-configure-sources) for more details.

| Parameter | Type | Value | Required | Description |
|:--|:--|:--|:--|:--|
| schemaRef | JSON Object | `{"type":"Github Copilot"}` | Yes | Define the specific schema type. |
| sourceType | String | `"Universal"` | Yes | Type of source. |
| config | JSON Object | [Configuration object](#configuration-object) | Yes | Source type specific values. |

### Configuration Object

| Parameter | Type | Required | Default | Description | Example |
|:--|:--|:--|:--|:--|:--|
| name | String | Yes | `null` | Type a desired name of the source. The name must be unique per Collector. This value is assigned to the [metadata](/docs/search/get-started-with-search/search-basics/built-in-metadata) field `_source`. | `"mySource"` |
| description | String | No | `null` | Type a description of the source. | `"Testing source"` |
| category | String | No | `null` | Type a category of the source. This value is assigned to the [metadata](/docs/search/get-started-with-search/search-basics/built-in-metadata) field `_sourceCategory`. See [best practices](/docs/send-data/best-practices) for details. | `"mySource/test"` |
| fields | JSON Object | No | `null` | JSON map of key-value fields (metadata) to apply to the Collector or Source. Use the boolean field _siemForward to enable forwarding to SIEM.| `{"_siemForward": false, "fieldA": "valueA"}` |
| organization | String | Yes | `null` | Name of your organization. | sanlabs |
| patToken | String | Yes | `null` | PAT Token of the account. | pat_gitxxxxx |
| collectTeamMetrics | Boolean | No | `false` | Specify if we need to collect the team metrics logs. | true |
| teamNames | String Array | No | `null` | List of teams of which the metrics should be collected. | dev-team |
| metricPeriodInDays | Integer | Yes | 1 | Specifies the number of past days for which metrics data should be collect. Range 1-28. | 2 |

### JSON example

```json reference
https://github.com/SumoLogic/sumologic-documentation/blob/main/static/files/c2c/github-copilot/example.json
```

### Terraform example

```sh reference
https://github.com/SumoLogic/sumologic-documentation/blob/main/static/files/c2c/github-copilot/example.tf
```

## Limitations

Due to the behavior of both APIs, data is only available for the previous day, there will be 24 hours latency at any given point in time. Refer to the [Github Documentation](https://docs.github.com/en/rest/copilot/copilot-metrics?apiVersion=2022-11-28#get-copilot-metrics-for-an-organization) for further details.

## FAQ

:::info
Click [here](/docs/c2c/info) for more information about Cloud-to-Cloud sources.
:::
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,12 @@ In this section, we'll introduce the following concepts:
<p>Pulls Gmail log data using BigQuery Library APIs.</p>
</div>
</div>
<div className="box smallbox card">
<div className="container">
<a href="/docs/send-data/hosted-collectors/cloud-to-cloud-integration-framework/github-copilot-source"><img src={useBaseUrl('img/platform-services/automation-service/app-central/logos/github-copilot.png')} alt="Thumbnail icon" width="100"/><h4>Github Copilot</h4></a>
<p>Learn to collect the organization metrics and team metrics from Github Copilot platform.</p>
</div>
</div>
<div className="box smallbox card">
<div className="container">
<a href="/docs/send-data/hosted-collectors/cloud-to-cloud-integration-framework/google-bigquery-source"><img src={useBaseUrl('img/send-data/google-bigquery-icon.png ')} alt="Gmail" width="70"/><h4>Google BigQuery</h4></a>
Expand Down
1 change: 1 addition & 0 deletions sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ module.exports = {
'send-data/hosted-collectors/cloud-to-cloud-integration-framework/druva-source',
'send-data/hosted-collectors/cloud-to-cloud-integration-framework/druva-cyber-resilience-source',
'send-data/hosted-collectors/cloud-to-cloud-integration-framework/duo-source',
'send-data/hosted-collectors/cloud-to-cloud-integration-framework/github-copilot-source',
'send-data/hosted-collectors/cloud-to-cloud-integration-framework/gmail-tracelogs-source',
'send-data/hosted-collectors/cloud-to-cloud-integration-framework/google-bigquery-source',
'send-data/hosted-collectors/cloud-to-cloud-integration-framework/google-workspace-alertcenter',
Expand Down
Loading