ScheduledSearch is a datatype for information about a scheduled search.

This datatype is used primarily directly by several mutation fields related to scheduled searches: createScheduledSearchV2(); disableScheduledSearchV2(); and enableScheduledSearchV2(). Use deleteScheduledSearchV2() to remove a scheduled search. There's also the clearErrorOnScheduledSearch() mutation for clearing errors.

This datatype is also used for labels related to scheduled searches: addScheduledSearchLabel(); addScheduledSearchLabels(); updateScheduledSearchV3(); removeScheduledSearchLabel(); and removeScheduledSearchLabels().

Table: ScheduledSearch

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
actionsStringyes Long-Term List of Ids for actions to fire on query result.
actionsV2Actionyes Long-Term List of actions to fire on query result.
allowedActionsAssetActionyes Short-Term Allowed asset actions
backfillLimitV2Int  Long-Term User-defined limit, which caps the number of missed searches to backfill, e.g. in the event of a shutdown. Only present when 'queryTimestampType' is EventTimestamp.
bootstrappingBooleanyes Long-Termadded in 1.268Whether the scheduled search is currently bootstrapping, i.e. backfilling the executions since a 'scheduleStart' in the past. While bootstrapping, the backfill limit is ignored. Normal scheduling resumes once all missed executions have run.
createdInfoAssetCommitMetadata  Long-Term Metadata related to the creation of the scheduled search
descriptionString  Long-Term Description of the scheduled search.
enabledBooleanyes Long-Term Flag indicating whether the scheduled search is enabled.
executionTimesToRerunLongyes Long-Term Execution times of the scheduled search runs to rerun as Unix timestamp in milliseconds.
idStringyes Long-Term Id of the scheduled search.
labelsStringyes Long-Term Labels added to the scheduled search.
lastErrorString  Long-Term Last error encountered while running the search.
lastExecutedLong   deprecated in 1.282Unix timestamp for end of search interval for last query execution.
lastTriggeredLong   deprecated in 1.282Unix timestamp for end of search interval for last query execution that triggered.
lastWarningsStringyes Long-Term Last warnings encountered while running the scheduled search.
maxWaitTimeSecondsLong  Long-Term Maximum number of seconds to wait for ingest delay. Only present when 'queryTimestampType' is IngestTimestamp.
modifiedInfoModifiedInfoyes Long-Term User or token used to modify the asset.
nameStringyes Long-Term Name of the scheduled search.
packagePackageInstallation  Long-Term  
packageIdVersionedPackageSpecifier  Long-Term  
queryOwnershipQueryOwnershipyes Long-Term Ownership of the query run by this scheduled search
queryStringStringyes Long-Term LogScale query to execute.
queryTimestampTypeQueryTimestampTypeyes Long-Term Timestamp type to use for the query.
resourceStringyes Short-Term The resource identifier for this scheduled search.
runAsUserUser  Long-Term Id of user which the scheduled search is running as.
scheduleStringyes Long-Term Interval or cron pattern describing the schedule to execute the query on. Intervals look like '@every 5d'.
scheduleEndLong  Long-Termadded in 1.268Unix timestamp in milliseconds for the latest time the scheduled search should execute.
scheduleStartLong  Long-Termadded in 1.268Unix timestamp in milliseconds for when the scheduled search should at earliest execute.
searchIntervalOffsetSecondsLong  Long-Term Offset of the search interval in seconds. Only present when 'queryTimestampType' is EventTimestamp.
searchIntervalSecondsLongyes Long-Term Search interval in seconds.
timeOfLastExecutionLong  Long-Term Unix timestamp for when the scheduled search was last executed.
timeOfLastTriggerLong  Long-Term Unix timestamp for when the scheduled search was last triggered.
timeOfNextPlannedExecutionLong  Long-Term Unix timestamp for next planned search.
timeZoneStringyes Long-Term Time zone of the schedule. Currently this field only supports UTC offsets like 'UTC', 'UTC-01' or 'UTC+12:45'.
triggerOnEmptyResultBooleanyes Long-Term Flag indicating whether the scheduled search should trigger when it finds en empty result (no events).
yamlTemplateYAMLyes Long-Term A template that can be used to recreate the scheduled search.