Creating a Rule from a HyperDx Search
Overview
DFE UI integrates with HyperDx so users can create rules directly from search results. HyperDx queries data with Lucene/SQL. When a user runs a search and clicks the Create Rule trigger, HyperDx fetches the raw SQL for that search and sends it to DFE UI.
Flow
- HyperDx – The user clicks the "Create Rule" trigger. HyperDx calls the
/exportSqlendpoint to fetch the raw SQL for the current search. - Messaging – HyperDx posts the search data to a browser message listener on the
/rules/createpage. HyperDx retries until DFE UI responds. - DFE UI – On receipt, DFE UI stores the search in IndexedDB and adds its ID to the URL query string. The data remains available until the user clears their cache.