-
Notifications
You must be signed in to change notification settings - Fork 202
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
* Add ISM policies for logs and metrics Signed-off-by: Jürgen Walter <[email protected]> * Add index templates for logs Signed-off-by: Jürgen Walter <[email protected]> * Add index templates for metrics Signed-off-by: Jürgen Walter <[email protected]> * Add index_types for OTEL logs and metrics Signed-off-by: Jürgen Walter <[email protected]> * Test OpenSearch sink works with log-analytics and metric-analytics and index type Signed-off-by: Jürgen Walter <[email protected]> * Test log and metric index types Signed-off-by: Jürgen Walter <[email protected]> * Document log and metrics index_type usage Signed-off-by: Jürgen Walter <[email protected]> * Minor: Remove incorrect html tag Signed-off-by: Jürgen Walter <[email protected]> * Fix test by adding date_detection false Fixes testInstantiateSinkMetricsDefaultMetricSink Alertnative would have been to adjust the test Signed-off-by: Jürgen Walter <[email protected]> * Rename test Signed-off-by: Jürgen Walter <[email protected]> * Fix metric ism file constants Signed-off-by: Jürgen Walter <[email protected]> * Rename index template file for metrics Signed-off-by: Jürgen Walter <[email protected]> * Add assertions to tests Signed-off-by: Jürgen Walter <[email protected]> * Fix index patterns for logs and metrics Signed-off-by: Jürgen Walter <[email protected]> * Update to plugins ISM API Signed-off-by: Jürgen Walter <[email protected]> * Add assertion Signed-off-by: Jürgen Walter <[email protected]> * Revert "Update to plugins ISM API" This reverts commit 3fd61af. Signed-off-by: Jürgen Walter <[email protected]> * Add fields data prepper writes Signed-off-by: Jürgen Walter <[email protected]> * Use field type data prepper writes Signed-off-by: Jürgen Walter <[email protected]> --------- Signed-off-by: Jürgen Walter <[email protected]>
- Loading branch information
1 parent
e59917d
commit 569e3d1
Showing
15 changed files
with
999 additions
and
4 deletions.
There are no files selected for viewing
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
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
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
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
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
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
110 changes: 110 additions & 0 deletions
110
...per-plugins/opensearch/src/main/resources/index-template/logs-otel-v1-index-template.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 |
---|---|---|
@@ -0,0 +1,110 @@ | ||
{ | ||
"version": 1, | ||
"template": { | ||
"mappings": { | ||
"date_detection": false, | ||
"dynamic_templates": [ | ||
{ | ||
"resource_attributes_map": { | ||
"mapping": { | ||
"type": "keyword" | ||
}, | ||
"path_match": "resource.attributes.*" | ||
} | ||
}, | ||
{ | ||
"log_attributes_map": { | ||
"mapping": { | ||
"type": "keyword" | ||
}, | ||
"path_match": "log.attributes.*" | ||
} | ||
} | ||
], | ||
"_source": { | ||
"enabled": true | ||
}, | ||
"properties": { | ||
"severity": { | ||
"properties": { | ||
"number": { | ||
"type": "long" | ||
}, | ||
"text": { | ||
"type": "keyword" | ||
} | ||
} | ||
}, | ||
"body": { | ||
"type": "text" | ||
}, | ||
"@timestamp": { | ||
"type": "date_nanos" | ||
}, | ||
"time": { | ||
"type": "date_nanos" | ||
}, | ||
"observedTimestamp": { | ||
"type": "date_nanos" | ||
}, | ||
"observedTime": { | ||
"type": "alias", | ||
"path": "observedTimestamp" | ||
}, | ||
"traceId": { | ||
"ignore_above": 256, | ||
"type": "keyword" | ||
}, | ||
"spanId": { | ||
"ignore_above": 256, | ||
"type": "keyword" | ||
}, | ||
"schemaUrl": { | ||
"type": "keyword" | ||
}, | ||
"instrumentationScope": { | ||
"properties": { | ||
"name": { | ||
"type": "keyword" | ||
}, | ||
"version": { | ||
"type": "keyword" | ||
} | ||
} | ||
}, | ||
"event": { | ||
"properties": { | ||
"kind": { | ||
"type": "keyword" | ||
}, | ||
"domain": { | ||
"type": "keyword" | ||
}, | ||
"category": { | ||
"type": "keyword" | ||
}, | ||
"type": { | ||
"type": "keyword" | ||
}, | ||
"result": { | ||
"type": "keyword" | ||
}, | ||
"exception": { | ||
"properties": { | ||
"message": { | ||
"type": "text" | ||
}, | ||
"stacktrace": { | ||
"type": "text" | ||
}, | ||
"type": { | ||
"type": "keyword" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.