-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…#881) (cherry picked from commit 74b69c1) Signed-off-by: YANGDB <[email protected]> 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.
There are no files selected for viewing
266 changes: 155 additions & 111 deletions
266
server/adaptors/integrations/__data__/repository/nginx/schemas/http-1.0.0.mapping.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |