|
| 1 | +# SumoLogic-GCP-Logging |
| 2 | + |
| 3 | + |
| 4 | +This module is used to create GCP and Sumo Logic resources to collect logs from the [Cloud Logging] service in GCP. |
| 5 | +Features include: |
| 6 | +- Create a Sumologic source and a collector |
| 7 | +- Create a PubSub Topic and a Subscription |
| 8 | +- Create a Cloud Logging Sink |
| 9 | +- Assign the pubsub.publisher role to the Cloud Logging service account |
| 10 | + |
| 11 | +For examples please check the [example] folder. |
| 12 | + |
| 13 | +<!-- Links --> |
| 14 | +[Cloud Logging]:https://cloud.google.com/logging |
| 15 | +[example]:(example) |
| 16 | + |
| 17 | +## Requirements |
| 18 | + |
| 19 | +| Name | Version | |
| 20 | +|------|---------| |
| 21 | +| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13 | |
| 22 | +| <a name="requirement_google"></a> [google](#requirement\_google) | >= 4.0 | |
| 23 | +| <a name="requirement_sumologic"></a> [sumologic](#requirement\_sumologic) | >= 2.11 | |
| 24 | + |
| 25 | +## Providers |
| 26 | + |
| 27 | +| Name | Version | |
| 28 | +|------|---------| |
| 29 | +| <a name="provider_google"></a> [google](#provider\_google) | >= 4.0 | |
| 30 | +| <a name="provider_sumologic"></a> [sumologic](#provider\_sumologic) | >= 2.11 | |
| 31 | + |
| 32 | +## Modules |
| 33 | + |
| 34 | +No modules. |
| 35 | + |
| 36 | +## Resources |
| 37 | + |
| 38 | +| Name | Type | |
| 39 | +|------|------| |
| 40 | +| [google_logging_project_sink.sumologic](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/logging_project_sink) | resource | |
| 41 | +| [google_project_iam_binding.sumologic](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/project_iam_binding) | resource | |
| 42 | +| [google_pubsub_subscription.sumologic](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/pubsub_subscription) | resource | |
| 43 | +| [google_pubsub_topic.sumologic](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/pubsub_topic) | resource | |
| 44 | +| [sumologic_collector.this](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs/resources/collector) | resource | |
| 45 | +| [sumologic_gcp_source.this](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs/resources/gcp_source) | resource | |
| 46 | + |
| 47 | +## Inputs |
| 48 | + |
| 49 | +| Name | Description | Type | Default | Required | |
| 50 | +|------|-------------|------|---------|:--------:| |
| 51 | +| <a name="input_gcp_project"></a> [gcp\_project](#input\_gcp\_project) | GCP project ID. | `string` | n/a | yes | |
| 52 | +| <a name="input_logging_sink_filter"></a> [logging\_sink\_filter](#input\_logging\_sink\_filter) | Logging filter for the GCP sink. | `string` | `null` | no | |
| 53 | +| <a name="input_name"></a> [name](#input\_name) | Names that will be assigned to resources. | `string` | n/a | yes | |
| 54 | +| <a name="input_sumologic_category"></a> [sumologic\_category](#input\_sumologic\_category) | The category description for the collector/source. | `string` | `"gcp"` | no | |
| 55 | +| <a name="input_sumologic_collector_fields"></a> [sumologic\_collector\_fields](#input\_sumologic\_collector\_fields) | A Map containing key/value pairs. | `map(any)` | `null` | no | |
| 56 | +| <a name="input_sumologic_collector_name"></a> [sumologic\_collector\_name](#input\_sumologic\_collector\_name) | Name for the collector. | `string` | `null` | no | |
| 57 | +| <a name="input_sumologic_collector_timezone"></a> [sumologic\_collector\_timezone](#input\_sumologic\_collector\_timezone) | The time zone to use for this collector. | `string` | `null` | no | |
| 58 | +| <a name="input_sumologic_description"></a> [sumologic\_description](#input\_sumologic\_description) | The description of the created resources collector/source. | `string` | `null` | no | |
| 59 | +| <a name="input_sumologic_source_name"></a> [sumologic\_source\_name](#input\_sumologic\_source\_name) | Name for the GCP source. | `string` | `null` | no | |
| 60 | + |
| 61 | +## Outputs |
| 62 | + |
| 63 | +No outputs. |
0 commit comments