Creating a Rule from a Search
Overview
DFE UI integrates with dfe-hyperdx so users can create rules directly from search results. When a user runs a search and clicks the Create Rule trigger, dfe-hyperdx creates the rule in the engine and opens it in the console.
Flow
- dfe-hyperdx - The user clicks the "Create Rule" trigger. dfe-hyperdx renders the current search to SQL (
POST dfe/export-sql). - Engine - dfe-hyperdx creates the rule through its own
dfe/create-ruleroute, which forwards to the engine'sPOST /api/v1/rules/from-hyperdx. - DFE UI - dfe-hyperdx opens
/rules/{id}, the rule's own page, in a new tab. The console keeps no copy of the search.