Skip to content
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

Send log record name as part of the HEC log event #3119

Merged
merged 3 commits into from
Apr 15, 2021

Conversation

atoulme
Copy link
Contributor

@atoulme atoulme commented Apr 15, 2021

Description:
Maps the logRecord name to a field sent as part of the HEC log event.

Link to tracking Issue:
Fixes #2685

Testing:
Unit testing.

Documentation:
None.

@atoulme atoulme requested a review from a team April 15, 2021 00:45
@codecov
Copy link

codecov bot commented Apr 15, 2021

Codecov Report

Merging #3119 (a61845c) into main (81dc441) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3119      +/-   ##
==========================================
+ Coverage   91.59%   91.61%   +0.01%     
==========================================
  Files         486      486              
  Lines       23519    23521       +2     
==========================================
+ Hits        21543    21549       +6     
+ Misses       1466     1463       -3     
+ Partials      510      509       -1     
Flag Coverage Δ
integration 63.30% <ø> (-0.06%) ⬇️
unit 90.61% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
internal/splunk/common.go 100.00% <ø> (ø)
exporter/splunkhecexporter/logdata_to_splunk.go 96.00% <100.00%> (+0.10%) ⬆️
processor/groupbytraceprocessor/event.go 96.77% <0.00%> (+0.80%) ⬆️
internal/stanza/receiver.go 100.00% <0.00%> (+5.88%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 81dc441...a61845c. Read the comment docs.

Copy link
Member

@dmitryax dmitryax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dmitryax
Copy link
Member

@tigrannajaryan @bogdandrutu PTAL and merge if looks good to you

@bogdandrutu bogdandrutu merged commit 80eb4fc into open-telemetry:main Apr 15, 2021
pmatyjasek-sumo pushed a commit to pmatyjasek-sumo/opentelemetry-collector-contrib that referenced this pull request Apr 28, 2021
* Send log record name as part of the HEC log event

* do not add the name label if its value is empty

* Fix tests expecting a name label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SplunkHecExporter: Add support for LogFormat.name field
3 participants