opensearch-project / opensearch-project/data-prepper

Add CloudFront log convertor before sending to OpenSearch

Open
#2,304 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Java
Stars
374
Forks
354
Avg merge
3d 18h
Merged PRs (30d)
8

Description

Is your feature request related to a problem? Please describe.
It would be nice to have a convertor for CloudFront logs before sending to OpenSearch. If we want to build some Dashboard.

Describe the solution you'd like

  • For fields: "sc-content-len", "sc-range-start", "sc-range-end", we need to transfer them to 0 if the raw log is '-'.
  • Use parse.unquote_plus to parse "cs-user-agent" field.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the CloudFront log conversion path used before data is sent to OpenSearch. Verify how the fields "sc-content-len", "sc-range-start", "sc-range-end", and "cs-user-agent" are currently handled; done means dash values become 0 and the user-agent is parsed with parse.unquote_plus.

Written by the indexing model from the issue text.

Assessment

Domain
data-engineering, observability
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.