Skip to content

Commit

Permalink
Merge pull request #377 from SumoLogic/maisie-events-source-category
Browse files Browse the repository at this point in the history
Add back and expose source category for events source
  • Loading branch information
maimaisie committed Jan 30, 2020
2 parents 4ab42d3 + 68fc8d5 commit 5ce1a72
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions deploy/helm/sumologic/templates/setup/setup-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ data:
resource "sumologic_http_source" "events_source" {
name = local.events-source-name
category = {{ if .Values.sumologic.events.sourceCategory }}{{ .Values.sumologic.events.sourceCategory }}{{- else}}{{ "${var.cluster_name}/${local.events-source-name}" }}{{- end}}
collector_id = "${sumologic_collector.collector.id}"
}
Expand Down
4 changes: 4 additions & 0 deletions deploy/helm/sumologic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ sumologic:
# If enabled, collect K8s events
eventCollectionEnabled: true

events:
# Source category for the Events source. Default: "{clusterName}/events"
sourceCategory: ""

## Format to post logs into Sumo. json, json_merge, or text
logFormat: fields

Expand Down
1 change: 1 addition & 0 deletions deploy/kubernetes/setup-sumologic.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ data:

resource "sumologic_http_source" "events_source" {
name = local.events-source-name
category = ${var.cluster_name}/${local.events-source-name}
collector_id = "${sumologic_collector.collector.id}"
}

Expand Down

0 comments on commit 5ce1a72

Please sign in to comment.