-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ResourceAttributes to Splunk Event (#2843)
**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)
- Loading branch information
Showing
3 changed files
with
65 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters