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

PoC for Log parsing with Otel Collector #720

Closed
chrkl opened this issue Jan 16, 2024 · 1 comment
Closed

PoC for Log parsing with Otel Collector #720

chrkl opened this issue Jan 16, 2024 · 1 comment
Assignees
Labels
area/logs LogPipeline kind/feature Categorizes issue or PR as related to a new feature.
Milestone

Comments

@chrkl
Copy link
Contributor

chrkl commented Jan 16, 2024

Description
As a follow-up to #691, we want to evaluate an OpenTelemetry collector setup to read JSON structured container logs and convert them to OTLP logs. Fields like Timestamp, SeverityText, SeverityNumber, or Body should be detected in well-known log formats like Zap or Log4j. JSON fields that are not mappable to the OTLP log record fields, should be converted to OTLP attributes or resource attributes. The possibility to allow the user giving hits about the used log format should be evaluated. For instance, describing the log message field in a Kubernetes annotation. The feasibility to achieve this with the filelog receiver's operators and the attributes processor should be evaluated.

Acceptance Criteria

  • Fields of the OTLP Log and Event Record Definition are extracted from JSON logs
  • The actual log message is written to the Body field
  • Decide and implement how to map the body in case no message field can be identified
  • Other fields of the JSON record are written to the Attributes or Resource maps
  • Semantic conventions for Attributes and Resource Attributes are followed
  • Scenarios:
    • Have an unstructured log, see basic data in place like pod name, raw payload in body
    • Have structured log not matching any format, see basic data in place like pod name, log attributes are parsed, body contains X
    • Have structured log matching a format, see basic data in place like pod name, log attributes are parsed, body contains log message
@chrkl chrkl added the area/logs LogPipeline label Jan 16, 2024
@a-thaler a-thaler added the kind/feature Categorizes issue or PR as related to a new feature. label Jan 22, 2024
@a-thaler a-thaler mentioned this issue Jan 22, 2024
23 tasks
@chrkl chrkl self-assigned this Jan 23, 2024
@chrkl
Copy link
Contributor Author

chrkl commented Feb 2, 2024

The PoC has been conducted, results were documented by PR #762.

@chrkl chrkl closed this as completed Feb 2, 2024
@a-thaler a-thaler added this to the 1.9.0 milestone Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/logs LogPipeline kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants