Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Helm, maintained by the CNCF, allows the Kubernetes administrator to install, up
To install and configure defaults with Helm:

```
$ helm install --name my-release -f my_values.yaml https://github.com/splunk/splunk-connect-for-kubernetes/releases/download/v1.0.1/splunk-connect-for-kubernetes-1.0.1.tgz
$ helm install --name my-release -f my_values.yaml https://github.com/adobe-platform/splunk-connect-for-kubernetes/releases/download/v1.0.2/splunk-connect-for-kubernetes-1.0.2.tgz
```

To learn more about using and modifying charts, see:
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/splunk-connect-for-kubernetes/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: splunk-connect-for-kubernetes
version: 1.0.1
version: 1.0.3
description: Collect logs, objects (metadata), and metrics with Splunk.
home: https://github.com/splunk/splunk-connect-for-kubernetes/tree/master/helm-chart
sources:
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/splunk-kubernetes-logging/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
version: 1.0.1
version: 1.0.3
name: splunk-kubernetes-logging
description: Collect logs with Splunk.
home: https://github.com/splunk/splunk-connect-for-kubernetes/tree/master/helm-chart/charts/splunk-kubernetes-logging
Expand Down
12 changes: 10 additions & 2 deletions helm-chart/splunk-kubernetes-logging/templates/configMap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ data:
expression /^(?<log>{{ $logDef.timestampExtraction.regexp }}.*)$/
time_key time
time_type string
time_format {{ $logDef.timestampExtraction.format }}
time_format {{ $logDef.timestampExtraction.format }}
{{- else }}
@type none
message_key log
Expand Down Expand Up @@ -138,6 +138,14 @@ data:

output.conf: |-
<label @SPLUNK>
# filter to remove empty lines
<filter tail.containers.**>
@type grep
<exclude>
key log
pattern ^$
</exclude>
</filter>
# = filters for container logs =
{{- range $name, $logDef := .Values.logs }}
{{- if and $logDef.from.pod $logDef.multiline }}
Expand Down Expand Up @@ -207,7 +215,7 @@ data:
hec_port {{ . }}
{{- end }}
hec_token "#{ENV['SPLUNK_HEC_TOKEN']}"
host "#{ENV['SPLUNK_HEC_HOST']}"
host "#{ENV['SPLUNK_HEC_HOST']}{{ "," }}{{ .Values.global.splunk.environment }}{{ "," }}{{ .Values.global.splunk.region }}"
source_key source
sourcetype_key sourcetype
{{- with or .Values.splunk.hec.indexName .Values.global.splunk.hec.indexName }}
Expand Down
4 changes: 3 additions & 1 deletion helm-chart/splunk-kubernetes-logging/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ global:
hec:
protocol: https
insecureSSL: false
region:
environment:


# logLevel is to set log level of the Splunk log collector. Avaiable values are:
Expand Down Expand Up @@ -85,7 +87,7 @@ journalLogPath: /run/log/journal
# journald:
# unit: docker.service
# ```
#
#
# For `file` logs, `path` is required for specifying where is the log files. Log files are expected in `/var/log`, example:
# ```
# docker:
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/splunk-kubernetes-metrics/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
version: 1.0.1
version: 1.0.3
name: splunk-kubernetes-metrics
description: Collect metrics with Splunk.
home: https://github.com/splunk/splunk-connect-for-kubernetes/tree/master/helm-chart/charts/splunk-kubernetes-metrics
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/splunk-kubernetes-objects/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
version: 1.0.1
version: 1.0.3
name: splunk-kubernetes-objects
description: Collect Kubernetes objects with Splunk.
home: https://github.com/splunk/splunk-connect-for-kubernetes/tree/master/helm-chart/charts/splunk-kubernetes-objects
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ data:
{{- if $.Values.kubernetes.clientKey }}
client_key /fluentd/etc/splunk/k8s_client_key
{{- end }}
{{- if $.Values.kubernetes.caFile }}
ca_file /fluentd/etc/splunk/k8s_ca_file
{{- end }}
ca_file /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
{{- with $.Values.kubernetes.bearerTokenFile }}
bearer_token_file {{ . }}
{{- end }}
Expand Down