-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SplunkHecExporter doesn't ingest Resources #2799
Labels
bug
Something isn't working
Comments
This requires converting Resource attributes to HEC fields somewhere here
|
tigrannajaryan
pushed a commit
that referenced
this issue
Apr 6, 2021
**Description:** Fixes #2799 **Testing:** ``` ResourceLog #6 Resource labels: -> k8s.container.name: STRING(loggen) -> k8s.pod.uid: STRING(f7880852-38f9-4158-b37a-41b3436a3b95) -> k8s.namespace.name: STRING(default) -> k8s.pod.startTime: STRING(2021-03-24 23:18:27 +0000 UTC) -> k8s.node.name: STRING(ip-192-168-68-130.us-west-1.compute.internal) -> k8s.pod.labels.hello: STRING(world) -> k8s.pod.labels.app: STRING(appName) -> k8s.pod.annotations.splunk.com/index: STRING(main) -> host.name: STRING(ip-192-168-68-130.us-west-1.compute.internal) -> com.splunk.sourcetype: STRING(loggen) -> com.splunk.index: STRING(main) InstrumentationLibraryLogs #0 InstrumentationLibrary LogRecord #0 Timestamp: 1616627909498109658 Severity: Undefined ShortName: Body: { -> log: STRING(EPS: 99 ) } Attributes: -> k8s.namespace.name: STRING(default) -> k8s.pod.name: STRING(loggen-65dvk) -> run_id: STRING(0) -> k8s.container.name: STRING(loggen) ``` ![image](https://user-images.githubusercontent.com/12387289/112396117-d7f79780-8cbc-11eb-879f-07bb1eb4413a.png)
pmatyjasek-sumo
pushed a commit
to pmatyjasek-sumo/opentelemetry-collector-contrib
that referenced
this issue
Apr 28, 2021
**Description:** Fixes open-telemetry#2799 **Testing:** ``` ResourceLog #6 Resource labels: -> k8s.container.name: STRING(loggen) -> k8s.pod.uid: STRING(f7880852-38f9-4158-b37a-41b3436a3b95) -> k8s.namespace.name: STRING(default) -> k8s.pod.startTime: STRING(2021-03-24 23:18:27 +0000 UTC) -> k8s.node.name: STRING(ip-192-168-68-130.us-west-1.compute.internal) -> k8s.pod.labels.hello: STRING(world) -> k8s.pod.labels.app: STRING(appName) -> k8s.pod.annotations.splunk.com/index: STRING(main) -> host.name: STRING(ip-192-168-68-130.us-west-1.compute.internal) -> com.splunk.sourcetype: STRING(loggen) -> com.splunk.index: STRING(main) InstrumentationLibraryLogs #0 InstrumentationLibrary LogRecord #0 Timestamp: 1616627909498109658 Severity: Undefined ShortName: Body: { -> log: STRING(EPS: 99 ) } Attributes: -> k8s.namespace.name: STRING(default) -> k8s.pod.name: STRING(loggen-65dvk) -> run_id: STRING(0) -> k8s.container.name: STRING(loggen) ``` ![image](https://user-images.githubusercontent.com/12387289/112396117-d7f79780-8cbc-11eb-879f-07bb1eb4413a.png)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
ResourceLog's Resource labels are not ingested but only Attributes.
I am ingesting this log
Steps to reproduce
read container logs using
fileread
and enrich it withk8s_tagger
then export using SplunkHecExporterWhat did you expect to see?
See log data with both attributes and resource labels.
What did you see instead?
I do not see resource labels.
What version did you use?
0.22.0
What config did you use?
Environment
docker container
go: 1.15
Additional context
The text was updated successfully, but these errors were encountered: