Skip to content

Commit 881fab6

Browse files
committed
update dataset discover
Signed-off-by: ps48 <pshenoy36@gmail.com>
1 parent b6210d3 commit 881fab6

File tree

1 file changed

+2
-2
lines changed
  • claude-code-observability-plugin/skills/osd-config

1 file changed

+2
-2
lines changed

claude-code-observability-plugin/skills/osd-config/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ curl -s -u "$OPENSEARCH_USER:$OPENSEARCH_PASSWORD" \
8484

8585
Datasets are an evolution of index patterns that classify indices by signal type (logs, traces, metrics). Users define which indices are logs vs traces through the Dashboards UI. See [Dataset Discovery documentation](https://docs.opensearch.org/latest/observing-your-data/exploring-observability-data/datasets/) for details.
8686

87-
To discover datasets programmatically, query the index patterns and check their `dataSourceType` or use the saved objects API to find index patterns with observability schema mappings:
87+
To discover datasets programmatically, query the saved objects API for index patterns with their `signalType`, `displayName`, and `description` fields:
8888

8989
```bash
9090
curl -s -u "$OPENSEARCH_USER:$OPENSEARCH_PASSWORD" \
91-
"$OSD_ENDPOINT/api/saved_objects/_find?type=index-pattern&per_page=100&fields=title&fields=dataSourceType" \
91+
"$OSD_ENDPOINT/api/saved_objects/_find?fields=title&fields=type&fields=displayName&fields=signalType&fields=description&per_page=10000&type=index-pattern" \
9292
-H 'osd-xsrf: true'
9393
```
9494

0 commit comments

Comments
 (0)