Scheduled Queries

Overview

In Analysis > Scheduled Queries, you can register and manage queries that need to run repeatedly. This page is useful when a query should be executed on a fixed interval or when one query should start only after another scheduled query finishes.

For example, if you want to review allowed firewall traffic regularly, you can save a scheduled query and keep tracking its recent run status from the same page.

View and Search the Scheduled Query List

Open Analysis > Scheduled Queries to see the list page.

Scheduled query list

  • Enabled: Shows whether the scheduled query is active. You can toggle it directly from the list.
  • Name: The scheduled query name. Click it to open the detail panel on the right.
  • Options: A share icon appears when result handoff is enabled.
  • Execution Rule: For scheduled runs, the CRON value is shown in readable text. For workflow runs, the preceding query name and condition are shown together.
  • Last Run: Shows the latest run time with a state icon.
  • Elapsed: Shows the elapsed time of the latest run in seconds.
  • Last Failure: Shows the latest failure time. If a failure reason exists, you can inspect it from the tooltip.

The upper area lets you narrow the list with these controls:

  • Search keyword: Finds scheduled queries by name.
  • Status filter: Choose All, Activated, Deactivated, Succeeded, or Failed.
Note
Run states are represented by icons. Running uses a spinning icon, stopping uses a pause icon, failed uses an error icon, canceled uses a cancel icon, and succeeded uses a check icon.
Enable or Disable Scheduled Queries

To change one item, click the Enabled toggle in the list.

To change multiple items at once:

  1. Select the scheduled queries in the list.
  2. Click Activate in the selected-action area, then choose Activate or Deactivate.
  3. Confirm the target names in the confirmation dialog.
Run or Stop Scheduled Queries

Users can manually run or stop scheduled queries regardless of the configured execution rule.

  1. Select the scheduled queries to run or stop.

  2. Click Run in the selected-action area, then choose Run or Stop.

  3. If one of the selected queries is already running, a run-policy dialog appears.

    Run policy for running scheduled queries

    • Skip running queries: Runs only the queries that are not already in progress.
    • Re-run: Stops the running query and starts it again.
Download the List

Click the download icon on the toolbar to export the current filtered list.

Download scheduled query list

  • File Name: Name of the exported file.
  • Columns: Columns to include in the export.
  • File Format: Choose CSV, JSON, HTML, Excel XML, or Microsoft Word.
  • Encoding: Character encoding for the file.
  • Range: Export the full list or a selected range.
Refresh the List

Click the refresh icon on the toolbar to reload the list while keeping the current keyword and status filter.

Add a Scheduled Query

To register a repeated inspection query, configure it in the right-side panel.

  1. Click Add on the toolbar.

  2. Fill in the fields in the Add Scheduled Query side panel.

    Add scheduled query

    • Enabled: Decides whether the query is active immediately after saving.
    • Name: Scheduled query name (required, up to 255 characters). It cannot be blank-only and must be unique.
    • Query Statement: Logpresso query to run (required, up to 10,000 characters). The screen validates the query before saving.
    • Target: Node scope where the query runs. You can combine All control nodes, All data nodes, and All forwarders. If nothing is selected, the query runs on the active control node.
    • Execution Rule: Selects how the query starts (required).
      • Schedule: Runs according to a CRON schedule.
      • Run by another query result: Runs after a preceding scheduled query finishes with a matching condition.
    • Interval: Appears when Schedule is selected (required). Set the CRON expression with the built-in input.
    • Execution Condition: Appears when the workflow option is selected (required).
      • After finished: Runs when the preceding query finishes, regardless of success or failure.
      • After succeeded: Runs only when the preceding query succeeds.
      • After failed: Runs only when the preceding query fails.
      • Preceding query selector: Pick a preceding scheduled query from the searchable list. Self-reference and circular reference are not allowed.
    • Output Parameter: Passes the result of this query to a downstream scheduled query.
    • Description: Free-text description for the scheduled query (up to 2,000 characters).
  3. Click Save in the upper-right corner of the panel.

Edit a Scheduled Query

To update an existing item, open its detail panel first and then switch to edit mode.

  1. Click the scheduled query name in the list.
  2. Click Edit in the right-side detail panel.
  3. Update the fields and click Save.
Note
In read-only mode, the side panel is useful for reviewing the target nodes, execution rule, output handoff, and description before switching to edit mode.

Export Scheduled Queries

Use export when you want to archive selected scheduled queries or move them to another system.

  1. Select the scheduled queries in the list.
  2. Click Export in the selected-action area.
  3. Verify the downloaded ZIP file in the browser.

Import Scheduled Queries

Use the import modal to register scheduled queries from an exported ZIP file.

  1. Click Import on the toolbar.

  2. Choose a ZIP file in the file field.

  3. Click OK to upload it.

    Import scheduled query

Caution
The import modal accepts ZIP files only. If a scheduled query with the same name already exists, confirm the server-side overwrite behavior before importing into a production environment.

Delete Scheduled Queries

Delete scheduled queries from the list when they are no longer needed.

  1. Select the scheduled queries to remove.

  2. Click Delete on the toolbar.

  3. Review the names in the confirmation dialog.

  4. If any selected query is running, choose how to handle it before completing the deletion.

    Delete running scheduled queries

    • Do not delete running queries: Leaves running queries in place and deletes only the rest.
    • Stop and delete running queries: Stops the running queries and deletes them together.
Note
If a scheduled query is used as a preceding step by another scheduled query, an extra confirmation dialog can appear before deletion so you can review the affected names.