New

The executive guide to generative AI

Read more

elasticsearch-croneval

edit

Validates and evaluates a cron expression.

Synopsis

edit
bin/elasticsearch-croneval <expression>
[-c, --count <integer>] [-h, --help]
([-s, --silent] | [-v, --verbose])

Description

edit

This command enables you to verify that your cron expressions are valid for use with the Elasticsearch alerting features and produce the expected results.

This command is provided in the $ES_HOME/bin directory.

Parameters

edit
-c, --count <Integer>
The number of future times this expression will be triggered. The default value is 10.
-h, --help
Returns all of the command parameters.
-s, --silent
Shows minimal output.
-v, --verbose
Shows verbose output.

Examples

edit

If the cron expression is valid, the following command displays the next 20 times that the schedule will be triggered:

bin/elasticsearch-croneval "0 0/1 * * * ?" -c 20
Was this helpful?
Feedback