Era Software

No results match your query

3. Query data

Estimated reading time: 1 minute
  • tutorial
  • eracloud

With EraSearch, you can query data with the EraSearch REST API or EraSearch's UI. This page covers how to view and query data in the UI.

Access EraSearch's UI
Copy
Copied!

To start, access the UI by visiting your EraCloud account and clicking Search. By default, the UI displays all data written in the past 15 minutes.

If you wrote the sample data to your database, your UI looks like the screenshot below. Notice that EraSearch auto-assigns _lid and _ts fields

field

A field is data stored as a key and value pair.

to your documents

document

A document is a JSON object made up of data. In EraSearch, all documents have a unique identifier (_id) and a timestamp (_ts). Most documents include additional fields. Here's an example of a document:

Copy
Copied!
{"_id":4248176661010579457,"_line":"access","response":200,"_ts":1634060854000}
:

  • _lid is the unique numerical identifier for the document and it matches the _id field mentioned in the previous guide.
  • _ts is the timestamp EraSearch assigned to your document at the time of the write — the time unit is epoch time in milliseconds.

EraSearch UI with sample data

Query data in the UI
Copy
Copied!

EraSearch supports most of Elasticsearch's query string syntax. You can use the same syntax to query data based on keywords, ranges, booleans, and wildcards.

For example, to view only documents where the _line field includes the word forest, enter this query in the UI search box:

Copy
Copied!
_line:forest

The UI returns the one document matching your search criteria. Click the returned document to get more information about your data.

Next steps
Copy
Copied!

Congrats! You’ve completed the EraSearch getting started series. Next, visit the list of write integrations to see how to get real-time data into your database.

To learn more about exploring, querying, and visualizing your data in EraSearch, visit these pages: