ECS schema validation in logger
まだ誰も着手していません。
評価
調査の方向性
ecs_logging/_stdlib.py の 112 行目付近と、issue で参照されている validator オプションを確認し、その後、サンプルの extra fields と比較してください。ECS スキーマの検証がサポートされているかどうかを判断し、期待される validator の入力または検証機能の範囲を定義できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 74
- フォーク
- 33
- 平均マージ
- 9時間 3分
- マージ済み PR(30日)
- 1
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
elastic/ecs-logging-python のほかの issue
-
agent-python community triage
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
elastic/ecs-logging-python#170 ·
-
agent-python community triage
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
elastic/ecs-logging-python#185 · コメント 6 件 ·
-
agent-python community triage
難易度 1/5 1時間未満 初心者へのやさしさ 35/100
elastic/ecs-logging-python#146 · コメント 2 件 ·
-
agent-python community enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
elastic/ecs-logging-python#73 · コメント 5 件 ·
-
agent-python community triage
難易度 2/5 1〜3時間 初心者へのやさしさ 50/100
elastic/ecs-logging-python#72 · リアクション 1 件 ·
elastic/ecs-logging-python の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
-
hcocena オープンpolicies-accepted pre-review precheck-passed
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
Bioconductor/BiocContributions#214 · コメント 5 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
TencentCloud/Octop#1169 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
521xueweihan/HelloGitHub#3778 ·
-
The version checker's trailing attribute region has no control for a less-than inside a quoted value オープンarea: dashboard area: tests bug perceived difficulty: 2 python
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Nitjsefnie-Harness-Commons/daedalus#1105 · コメント 1 件 ·