ECS schema validation in logger
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Review ecs_logging/_stdlib.py around line 112 and the validator option referenced in the issue, then compare it with the example extra fields. Done would require determining whether ECS schema validation is supported and defining the expected validator input or the scope of a validation feature.
Written by the indexing model from the issue text.
Description
Hi,
This is more of a question than an issue. Is there a validation feature in ecs-logging-python library? I wish to avoid mapping conflict later on during the application on-boarding process, and I wish to make the app ECS compatible from it's very inception.
Currently adding extra fields is simple:
logger.debug(f"Creating directory. {x}", extra={"not_an_ecs_field.method": "get", "source.ip": 22})
I have added two fields, one of which is not really an ECS schema field while the other has an invalid data type. I was wondering if I could pass in the ECS schema as a JSON and have the logger do the validation. I read an option to pass in a validator here, but not sure what it expects.
- Dominant language
- Python
- Stars
- 74
- Forks
- 33
- Avg merge
- 9h 3m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from elastic/ecs-logging-python
-
agent-python community triage
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
elastic/ecs-logging-python#170 ·
-
agent-python community triage
Difficulty 4/5 3-5 days Newbie friendliness 35/100
elastic/ecs-logging-python#185 · 6 comments ·
-
agent-python community triage
Difficulty 1/5 Under an hour Newbie friendliness 35/100
elastic/ecs-logging-python#146 · 2 comments ·
-
agent-python community enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
elastic/ecs-logging-python#73 · 5 comments ·
-
agent-python community triage
Difficulty 2/5 1-3 hours Newbie friendliness 50/100
elastic/ecs-logging-python#72 · 1 reaction ·
All issues in elastic/ecs-logging-python
Similar issues
-
area: harness bug status: needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Human-Agent-Society/reef#625 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 1/5 Under an hour Newbie friendliness 80/100
learningequality/kolibri#15351 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Name consistency Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
eellak/triplestore#65 · 1 comment ·