forked from opensearch-project/OpenSearch-Dashboards
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
1,971 additions
and
618 deletions.
There are no files selected for viewing
395 changes: 395 additions & 0 deletions
395
src/plugins/home/server/services/sample_data/data_sets/otel/logs_field_mappings.ts
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 |
---|---|---|
@@ -0,0 +1,395 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export const logsFieldMappings = { | ||
properties: { | ||
body: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
droppedAttributesCount: { | ||
type: 'long', | ||
}, | ||
flags: { | ||
type: 'long', | ||
}, | ||
instrumentationScope: { | ||
properties: { | ||
name: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
log: { | ||
properties: { | ||
attributes: { | ||
properties: { | ||
address: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
contentRoot: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
context: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
envName: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
otelServiceName: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
otelSpanID: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
otelTraceID: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
otelTraceSampled: { | ||
type: 'boolean', | ||
}, | ||
productId: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
quantity: { | ||
type: 'long', | ||
}, | ||
userId: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
observedTime: { | ||
type: 'date', | ||
}, | ||
resource: { | ||
properties: { | ||
attributes: { | ||
properties: { | ||
'container@id': { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
'docker@cli@cobra@command_path': { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
'host@arch': { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
'host@name': { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
'os@description': { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
'os@name': { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
'os@type': { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
'os@version': { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
'process@command': { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
'process@command_args': { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
'process@command_line': { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
'process@executable@path': { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
'process@owner': { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
'process@pid': { | ||
type: 'long', | ||
}, | ||
'process@runtime@description': { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
'process@runtime@name': { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
'process@runtime@version': { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
'service@name': { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
'service@version': { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
'telemetry@auto@version': { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
'telemetry@sdk@language': { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
'telemetry@sdk@name': { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
'telemetry@sdk@version': { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
schemaUrl: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
serviceName: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
severityNumber: { | ||
type: 'long', | ||
}, | ||
severityText: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
spanId: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
time: { | ||
type: 'date', | ||
}, | ||
traceId: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.