Skip to content

Commit

Permalink
Revert "Adding an optional clusterName value in order to have the abi…
Browse files Browse the repository at this point in the history
…lity to filter by a cluster_name field in splunk. (splunk#42)"

This reverts commit 42fbbed.
  • Loading branch information
Don Tregonning committed Nov 14, 2018
1 parent 42fbbed commit 45a0be0
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 13 deletions.
2 changes: 0 additions & 2 deletions helm-chart/splunk-kubernetes-logging/examples/use_logs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ splunk:
token: 11111111-2222-3333-4444-555555555555
host: 12.34.56.78

clusterName: "MY_CLUSTER"

logs:
# we want to read logs for `kube-apiserver` from a log file other then from the container logs
kube-apiserver:
Expand Down
3 changes: 0 additions & 3 deletions helm-chart/splunk-kubernetes-logging/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,6 @@ def extract_container_info:
| .namespace = $parts[1]
| .container_name = ($cparts[:-1] | join("-"))
| .container_id = ($cparts[-1] | rtrimstr(".log"))
{{- if .Values.clusterName }}
| .cluster_name = "{{ .Values.clusterName }}"
{{- end }}
| .;

.record | extract_container_info | .sourcetype = (find_sourcetype(.pod; .container_name) // "kube:container:\(.container_name)")
Expand Down
3 changes: 0 additions & 3 deletions helm-chart/splunk-kubernetes-logging/templates/configMap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,6 @@ data:
namespace
container_name
container_id
{{- if .Values.clusterName }}
cluster_name
{{- end }}
</fields>
<buffer>
@type memory
Expand Down
4 changes: 0 additions & 4 deletions helm-chart/splunk-kubernetes-logging/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ global:
insecureSSL: false


# If clusterName is set, a cluster_name field will be added to the log output
clusterName:


# logLevel is to set log level of the Splunk log collector. Avaiable values are:
# * trace
# * debug
Expand Down
1 change: 0 additions & 1 deletion manifests/splunk-kubernetes-logging/configMap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ data:
namespace
container_name
container_id
cluster_name
</fields>
<buffer>
@type memory
Expand Down

0 comments on commit 45a0be0

Please sign in to comment.