Skip to content

Commit eb62f2c

Browse files
committed
Initial Commit
1 parent a0063e4 commit eb62f2c

File tree

9 files changed

+24
-21
lines changed

9 files changed

+24
-21
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ Sumo Logic Connections do not need a collector or folder.
4848
Configure the collector resource as below:
4949
5050
```shell
51-
resource "sumologic_collector" "sumo_atlassian_collector" {
51+
resource "sumologic_collector" "sumo_collector" {
5252
name = "SumoLogic Atlassian"
5353
category = "Atlassian"
5454
}
5555
```
5656
57-
In the module declaration, pass the collector id as `sumologic_collector.sumo_atlassian_collector.id`.
57+
In the module declaration, pass the collector id as `sumologic_collector.sumo_collector.id`.
5858
5959
Configure a folder as below:
6060
@@ -64,7 +64,7 @@ resource "sumologic_folder" "folder" {
6464
name = "SumoLogic Atlassian"
6565
description = "SumoLogic Atlassian Applications"
6666
parent_id = data.sumologic_personal_folder.personalFolder.id
67-
depends_on = [sumologic_collector.sumo_atlassian_collector]
67+
depends_on = [sumologic_collector.sumo_collector]
6868
}
6969
```
7070
@@ -80,11 +80,12 @@ module "sumologic-jira-cloud-app" {
8080
sumo_access_id = "<SUMOLOGIC ACCESS ID>"
8181
sumo_access_key = "<SUMOLOGIC ACCESS KEY>"
8282
sumo_api_endpoint = "<SUMOLOGIC ENDPOINT URI>"
83-
collector_id = sumologic_collector.sumo_atlassian_collector.id
83+
collector_id = sumologic_collector.sumo_collector.id
8484
source_category = "Atlassian/Cloud/Jira"
8585
folder_id = sumologic_folder.folder.id
8686
jira_cloud_jql = "" # Optional
8787
jira_cloud_events = ["jira:issue_created", "jira:issue_updated"] # Optional. By default all events are configured.
88+
app_version = "1.0"
8889
# version = "{revision}"
8990
}
9091
```

atlassian/cloud/bitbucket/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module "sumologic-jira-bitbucket-app" {
2929
sumo_access_id = "<SUMO_ACCESS_ID>"
3030
sumo_access_key = "<SUMO_ACCESS_KEY>"
3131
sumo_api_endpoint = "https://api.sumologic.com/api/v1/"
32-
collector_id = sumologic_collector.sumo_atlassian_collector.id
32+
collector_id = sumologic_collector.sumo_collector.id
3333
source_category = "Atlassian/Bitbucket"
3434
folder_id = sumologic_folder.folder.id
3535
bitbucket_cloud_owner = "<BITBUCKET_OWNER_NAME_OR_TEAM_NAME>"

atlassian/cloud/jira/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module "sumologic-jira-cloud-app" {
3131
sumo_access_id = "<SUMO_ACCESS_ID>"
3232
sumo_access_key = "<SUMO_ACCESS_KEY>"
3333
sumo_api_endpoint = "https://api.sumologic.com/api/v1/"
34-
collector_id = sumologic_collector.sumo_atlassian_collector.id
34+
collector_id = sumologic_collector.sumo_collector.id
3535
source_category = "Atlassian/Cloud/Jira"
3636
folder_id = sumologic_folder.folder.id
3737
jira_cloud_jql = "" # Optional

atlassian/server/jira/README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,16 @@ module "sumologic-jira-server-app" {
3131
providers = {
3232
jira = jira.server
3333
}
34-
sumo_access_id = "<SUMO_ACCESS_ID>"
35-
sumo_access_key = "<SUMO_ACCESS_KEY>"
36-
sumo_api_endpoint = "https://api.sumologic.com/api/v1/"
37-
collector_id = sumologic_collector.sumo_atlassian_collector.id
38-
source_category = "Atlassian/Jira/Events"
39-
folder_id = sumologic_folder.folder.id
40-
jira_server_jql = "" # Optional
41-
jira_server_events = ["jira:issue_created", "jira:issue_updated"] # Optional. By default all events are configured.
42-
app_version = "1.0"
34+
sumo_access_id = "<SUMO_ACCESS_ID>"
35+
sumo_access_key = "<SUMO_ACCESS_KEY>"
36+
sumo_api_endpoint = "https://api.sumologic.com/api/v1/"
37+
collector_id = sumologic_collector.sumo_collector.id
38+
source_category = "Atlassian/Jira/Events"
39+
jira_server_access_logs_sourcecategory = "Atlassian/Jira/Server*"
40+
folder_id = sumologic_folder.folder.id
41+
jira_server_jql = "" # Optional
42+
jira_server_events = ["jira:issue_created", "jira:issue_updated"] # Optional. By default all events are configured.
43+
app_version = "1.0"
4344
}
4445
```
4546

@@ -53,6 +54,7 @@ module "sumologic-jira-server-app" {
5354
|collector_id|Sumo Logic Collector ID|string||yes
5455
|folder_id|Sumo Logic Folder ID|string||yes
5556
|source_category|Jira Server Source Category|string|Atlassian/Jira/Events|yes
57+
|jira_server_access_logs_sourcecategory|This module configures Jira Server WebHooks and creates resources in Sumo Logic. Jira Server Logs collection needs to be configured as explained in Step 1 here. Configure the log collection and update the variable jira_server_access_logs_sourcecategory |string|"Atlassian/Jira/Server*"|yes
5658
|jira_server_jql|Jira Server Query Language expression|string||no
5759
|jira_server_events|Jira Server Events to Push to Sumo Logic|list|List of all the Jira Server Events|yes
5860
|app_version|The app_version input parameter can be used to install a new copy of the app. When the app_version field is changed, it will force Terraform to install a new app folder with the current timestamp.|String|1.0|no

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module "sumologic-jira-server-app" {
3131
sumo_access_id = "<SUMO_ACCESS_ID>"
3232
sumo_access_key = "<SUMO_ACCESS_KEY>"
3333
sumo_api_endpoint = "https://api.sumologic.com/api/v1/"
34-
collector_id = sumologic_collector.sumo_atlassian_collector.id
34+
collector_id = sumologic_collector.sumo_collector.id
3535
source_category = "Atlassian/Jira/Events"
3636
folder_id = sumologic_folder.folder.id
3737
jira_server_jql = "" # Optional

examples/bitbucket.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module "sumologic-jira-bitbucket-app" {
1010
sumo_access_id = "<SUMO_ACCESS_ID>"
1111
sumo_access_key = "<SUMO_ACCESS_KEY>"
1212
sumo_api_endpoint = "https://api.sumologic.com/api/v1/"
13-
collector_id = sumologic_collector.sumo_atlassian_collector.id
13+
collector_id = sumologic_collector.sumo_collector.id
1414
source_category = "Atlassian/Bitbucket"
1515
folder_id = sumologic_folder.folder.id
1616
bitbucket_cloud_owner = "<BITBUCKET_OWNER_NAME_OR_TEAM_NAME"

examples/jira_cloud.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module "sumologic-jira-cloud-app" {
1111
sumo_access_id = "<SUMO_ACCESS_ID>"
1212
sumo_access_key = "<SUMO_ACCESS_KEY>"
1313
sumo_api_endpoint = "https://api.sumologic.com/api/v1/"
14-
collector_id = sumologic_collector.sumo_atlassian_collector.id
14+
collector_id = sumologic_collector.sumo_collector.id
1515
source_category = "Atlassian/Cloud/Jira"
1616
folder_id = sumologic_folder.folder.id
1717
jira_cloud_jql = ""

examples/jira_server.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module "sumologic-jira-server-app" {
1515
sumo_access_id = "<SUMO_ACCESS_ID>"
1616
sumo_access_key = "<SUMO_ACCESS_KEY>"
1717
sumo_api_endpoint = "https://api.sumologic.com/api/v1/"
18-
collector_id = sumologic_collector.sumo_atlassian_collector.id
18+
collector_id = sumologic_collector.sumo_collector.id
1919
source_category = "Atlassian/Jira/Events"
2020
folder_id = sumologic_folder.folder.id
2121
jira_server_jql = ""

examples/sumologic_collector_and_folder.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ provider "sumologic" {
66
}
77

88
# Create/Delete Collector
9-
resource "sumologic_collector" "sumo_atlassian_collector" {
9+
resource "sumologic_collector" "sumo_collector" {
1010
name = "SumoLogic Atlassian"
1111
category = "Atlassian"
1212
}
@@ -17,5 +17,5 @@ resource "sumologic_folder" "folder" {
1717
name = "SumoLogic Atlassian"
1818
description = "SumoLogic Atlassian Applications"
1919
parent_id = data.sumologic_personal_folder.personalFolder.id
20-
depends_on = [sumologic_collector.sumo_atlassian_collector]
20+
depends_on = [sumologic_collector.sumo_collector]
2121
}

0 commit comments

Comments
 (0)