Connect Cribl Search to OpenSearch
Configure Cribl Search to query an OpenSearch index.
OpenSearch is an open-source search engine for data-intensive applications.
In this guide, you’ll set up a Dataset Provider and a Dataset to search an OpenSearch index.
Add an OpenSearch Dataset Provider
A Dataset Provider tells Cribl Search where to query and contains access credentials. Here, you will add an OpenSearch Dataset Provider.
To add a new Dataset Provider:
- From the sidebar, select Data, then Dataset Providers.
- Select the Add Provider button on the right.
Next, set the following configurations in the New Dataset Provider modal:
- In ID, enter a unique identifier for the Dataset Provider. This is how you’ll reference it when assigning
Datasets to it. Start the ID with a letter; the rest of the ID can use letters, numbers, and underscores (for example,
my_dataset_provider_1
). - Optionally, add Description to quickly describe the Dataset Provider.
- Set Dataset Provider Type to OpenSearch.
- Enter the following:
- Username: Your OpenSearch account name.
- Password: Your password for OpenSearch.
- Endpoint: URL for the OpenSearch endpoint, for example:
https://opensearch.thecriblgoat.farm
.
- Select Save when finished.
Add an OpenSearch Dataset
Now you’ll add a Dataset that tells Cribl Search what data to search from the Dataset Provider.
To add a new Dataset, select Data, then Datasets, then Add Dataset.
Next, set the following configuration in the resulting New Dataset modal:
- In ID, enter a unique identifier for the Dataset. You’ll use this to specify the Dataset in a query’s
scope, telling Cribl Search to search the Dataset. Start the ID with a letter; the rest of the ID can use letters, numbers, and underscores (for example,
my_dataset_1
). - Optionally, add Description to quickly describe the Dataset.
- Set Dataset Provider to the ID of an OpenSearch Dataset Provider.
- In Index, point to the identifier of the OpenSearch index you want to search. If you have rolling indices
(indices with dynamic naming), use the name of the index and the wildcard character
*
. For example, if your indices are namedmy-index-00001
,my-index-00002
, and so on, usemy-index*
in this field. - Make sure Timestamp field contains the name of the field that contains event timestamps. In most cases, this will
be
@timestamp
for time series data in OpenSearch. - Select Save when finished.
Search OpenSearch
Now that you have a Dataset Provider and Dataset, you’re ready to start searching.
Search results can start showing up within a second or two, but when the search completes depends on how much data there is in the account.
OpenSearch Results Limit
The number of OpenSearch results is capped by the
max_result_window
setting of your OpenSearch index.
By default, it’s 10,000.
If you need to raise this limit, make sure you research and test for potential side effects.