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

Elastic Search exporter follow ECS guidelines #3107

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ShadowMaxLeb
Copy link
Contributor

Fixes #3091

Changes

Try to follow as much as possible the ECS guidelines and the ECS Logs reference

This impacts fields:

  • timestamp: now set to @timestamp with a Date string
  • body: now set to message
  • name: now set to log.logger
  • severity: now set to log.level
  • attributes: not under the attributes key anymore

@ShadowMaxLeb ShadowMaxLeb requested a review from a team as a code owner October 18, 2024 09:07
Copy link

netlify bot commented Oct 18, 2024

Deploy Preview for opentelemetry-cpp-api-docs canceled.

Name Link
🔨 Latest commit 6d72624
🔍 Latest deploy log https://app.netlify.com/sites/opentelemetry-cpp-api-docs/deploys/671269ec5ff2ca0008e798ad

@ShadowMaxLeb ShadowMaxLeb force-pushed the elastic-exporter-els-format branch 2 times, most recently from c295345 to 67d7e6b Compare October 18, 2024 09:23
Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.91%. Comparing base (497eaf4) to head (6d72624).
Report is 143 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3107      +/-   ##
==========================================
+ Coverage   87.12%   87.91%   +0.79%     
==========================================
  Files         200      195       -5     
  Lines        6109     6133      +24     
==========================================
+ Hits         5322     5391      +69     
+ Misses        787      742      -45     

see 98 files with indirect coverage changes

`attributes`

This allows user to set other fields that are part of the [ECS log documentation](https://www.elastic.co/guide/en/ecs/8.11/ecs-log.html).
For instance, it allows to have an attribute with key `log.file`, that
will, thanks to `nlohmann::json`, appear as :
```
{
  "log": {
    "file": "xxx"
  }
}
```

Closes open-telemetry#3091
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.

ElasticSearch Exporter does not follow ECS guidelines and logging reference
1 participant