Skip to content

Commit

Permalink
Change log "stream' attribute according to OTel semantic conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryax committed Nov 19, 2021
1 parent 47a70e6 commit f08badd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ guidelines](https://github.com/signalfx/splunk-otel-collector-chart/blob/main/UP
- `otelAgent` -> `agent`
- `otelCollector` -> `gateway`
- `otelK8sClusterReceiver` -> `clusterReceiver`
- Rename `stream` log attribute to `log.iostream` (#311)

### Fixed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ receivers:
k8s.pod.name: 'EXPR($$.pod_name)'
com.splunk.sourcetype: 'EXPR("kube:container:"+$$.container_name)'
attributes:
stream: 'EXPR($$.stream)'
log.iostream: 'EXPR($$.stream)'
{{- if .Values.logsCollection.containers.multilineConfigs }}
- type: router
routes:
Expand Down
2 changes: 1 addition & 1 deletion rendered/manifests/otel-logs/configmap-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ data:
regex: ^\/var\/log\/pods\/(?P<namespace>[^_]+)_(?P<pod_name>[^_]+)_(?P<uid>[^\/]+)\/(?P<container_name>[^\._]+)\/(?P<restart_count>\d+)\.log$
type: regex_parser
- attributes:
stream: EXPR($$.stream)
log.iostream: EXPR($$.stream)
resource:
com.splunk.sourcetype: EXPR("kube:container:"+$$.container_name)
k8s.container.name: EXPR($$.container_name)
Expand Down
2 changes: 1 addition & 1 deletion rendered/manifests/otel-logs/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
app: splunk-otel-collector
release: default
annotations:
checksum/config: e73b2f1f1048c7e2d13b567693eb1f3c7ea915c6b740f37fd74ae54a1c8a8420
checksum/config: 10a67e090122e6b58df427f82dfba0ffd078a3b1aef01fa51ab5602a89bfcbd0
kubectl.kubernetes.io/default-container: otel-collector
spec:
hostNetwork: true
Expand Down

0 comments on commit f08badd

Please sign in to comment.