Create and manage queries
Let's dive into the process of building your first query. You can choose between a guided experience or a code-centric approach depending on your technical needs.
Prerequisites
- You must have an active Sekoia.io account.
- You must have logs, alerts, or cases already ingested into your workspace.
Build a query using the Form
The Form mode acts as a wizard to help you structure your request without writing code.
Discover the full potential of Form mode
To discover the all operators, clauses, and properties available within the Query Builder Form mode, consult the Query Form Reference article.
- Navigate to the Query Builder page: : Left panel > Investigate > Queries.
- On the upper right corner, click New Query.
- Ensure the toggle is set to Form.
- In the From clause, select the data source you want to query.
- To refine your search, click the Add clause button.
- Select a clause (e.g., WHERE or AGGREGATION) and enter your parameters.
- To view the results, click Run query.
Build a query using Code (SOL)
Code mode is the default interface. It uses the SOL language to provide higher precision for filters and complex queries.
Master the SOL Syntax
To learn how to write advanced queries and create custom filters for your dashboards, consult the SOL Language Reference.
- Navigate to the Query Builder page.
- Ensure the toggle is set to Code.
- Enter your query using the SOL syntax in the editor.
- To view the results, click Run query.
Save and manage results
- To filter your results, click the right end side of the filter button. A dropdown panel opens, allowing you to select your filtering options.
- To save your configuration, enter a title in the Title field and click Save.
- To export the data, click the Export button to download a
.jsonlfile.
Visibility
Saved queries are visible to all users within your community. In MSSP multi-tenancy environments, saved queries are not visible in sub-communities.