Skip to content

Commit

Permalink
consolidate http-1.0.0.mapping.json schema to match all across (#850) (
Browse files Browse the repository at this point in the history
…#881)

(cherry picked from commit 74b69c1)

Signed-off-by: YANGDB <yang.db.dev@gmail.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 9f8a5bd commit ced8da6
Showing 1 changed file with 155 additions and 111 deletions.
Original file line number Diff line number Diff line change
@@ -1,121 +1,165 @@
{
"template": {
"mappings": {
"_meta": {
"version": "1.0.0",
"catalog": "observability",
"type": "logs",
"component": "http"
},
"dynamic_templates": [
{
"request_header_map": {
"mapping": {
"type": "keyword"
"template": {
"mappings": {
"_meta": {
"version": "1.0.0",
"catalog": "observability",
"type": "logs",
"component": "http"
},
"path_match": "request.header.*"
}
},
{
"response_header_map": {
"mapping": {
"type": "keyword"
},
"path_match": "response.header.*"
}
}
],
"properties": {
"http": {
"properties": {
"flavor": {
"type": "keyword",
"ignore_above": 256
},
"user_agent": {
"type": "keyword",
"ignore_above": 2048
},
"url": {
"type": "keyword",
"ignore_above": 2048
},
"schema": {
"type": "keyword",
"ignore_above": 1024
},
"target": {
"type": "keyword",
"ignore_above": 1024
},
"route": {
"type": "keyword",
"ignore_above": 1024
},
"client.ip": {
"type": "ip"
},
"resent_count": {
"type": "integer"
},
"request": {
"type": "object",
"properties": {
"id": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
"dynamic_templates": [
{
"request_header_map": {
"mapping": {
"type": "keyword"
},
"path_match": "request.header.*"
}
}
},
"body.content": {
"type": "text"
},
"bytes": {
"type": "long"
},
"method": {
"type": "keyword",
"ignore_above": 256
},
"referrer": {
"type": "keyword",
"ignore_above": 1024
},
"mime_type": {
"type": "keyword",
"ignore_above": 1024
{
"response_header_map": {
"mapping": {
"type": "keyword"
},
"path_match": "response.header.*"
}
}
}
},
"response": {
"type": "object",
"properties": {
"id": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
],
"properties": {
"http": {
"properties": {
"flavor": {
"type": "keyword",
"ignore_above": 256
},
"user_agent": {
"type": "object",
"properties": {
"original": {
"type": "keyword"
},
"name": {
"type": "keyword"
},
"version": {
"type": "keyword"
},
"device": {
"type": "object",
"properties": {
"name": {
"type": "keyword"
}
}
},
"os": {
"type": "object",
"properties": {
"type": {
"type": "keyword"
},
"platform": {
"type": "keyword"
},
"name": {
"type": "keyword"
},
"full": {
"type": "keyword"
},
"family": {
"type": "keyword"
},
"version": {
"type": "keyword"
},
"kernel": {
"type": "keyword"
}
}
}
}
},
"url": {
"type": "keyword",
"ignore_above": 2048
},
"schema": {
"type": "keyword",
"ignore_above": 1024
},
"target": {
"type": "keyword",
"ignore_above": 1024
},
"route": {
"type": "keyword",
"ignore_above": 1024
},
"client.ip": {
"type": "ip"
},
"resent_count": {
"type": "integer"
},
"request": {
"type": "object",
"properties": {
"id": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"body.content": {
"type": "text"
},
"bytes": {
"type": "long"
},
"method": {
"type": "keyword",
"ignore_above": 256
},
"referrer": {
"type": "keyword",
"ignore_above": 1024
},
"mime_type": {
"type": "keyword",
"ignore_above": 1024
}
}
},
"response": {
"type": "object",
"properties": {
"id": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"body.content": {
"type": "text"
},
"bytes": {
"type": "long"
},
"status_code": {
"type": "integer"
}
}
}
}
}
},
"body.content": {
"type": "text"
},
"bytes": {
"type": "long"
},
"status_code": {
"type": "integer"
}
}
}
}
}
}
}
}
}
}

0 comments on commit ced8da6

Please sign in to comment.