elasticsearch/docs/reference/commands/croneval.asciidoc
debadair 777598d602
[DOCS] Remove redirect pages (#88738)
* [DOCS] Remove manual redirects

* [DOCS] Removed refs to modules-discovery-hosts-providers

* [DOCS] Fixed broken internal refs

* Fixing bad cross links in ES book, and adding redirects.asciidoc[] back into docs/reference/index.asciidoc.

* Update docs/reference/search/point-in-time-api.asciidoc

Co-authored-by: James Rodewig <james.rodewig@elastic.co>

* Update docs/reference/setup/restart-cluster.asciidoc

Co-authored-by: James Rodewig <james.rodewig@elastic.co>

* Update docs/reference/sql/endpoints/translate.asciidoc

Co-authored-by: James Rodewig <james.rodewig@elastic.co>

* Update docs/reference/snapshot-restore/restore-snapshot.asciidoc

Co-authored-by: James Rodewig <james.rodewig@elastic.co>

* Update repository-azure.asciidoc

* Update node-tool.asciidoc

* Update repository-azure.asciidoc

---------

Co-authored-by: amyjtechwriter <61687663+amyjtechwriter@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Amy Jonsson <amy.jonsson@elastic.co>
Co-authored-by: James Rodewig <james.rodewig@elastic.co>
2023-05-24 12:32:46 +01:00

55 lines
1.4 KiB
Text

[[elasticsearch-croneval]]
== elasticsearch-croneval
Validates and evaluates a <<api-cron-expressions,cron expression>>.
[discrete]
=== Synopsis
[source,shell]
--------------------------------------------------
bin/elasticsearch-croneval <expression>
[-c, --count <integer>] [-h, --help]
([-s, --silent] | [-v, --verbose])
--------------------------------------------------
[discrete]
=== Description
This command enables you to verify that your
cron expressions are valid for use with
{es} and produce the expected results.
This command is provided in the `$ES_HOME/bin` directory.
[discrete]
[[elasticsearch-croneval-parameters]]
=== Parameters
`-c, --count` <Integer>::
The number of future times this expression will be triggered. The default
value is `10`.
`-d, --detail`::
Shows detail for invalid cron expression. It will print the stacktrace if the
expression is not valid.
`-h, --help`::
Returns all of the command parameters.
`-s, --silent`::
Shows minimal output.
`-v, --verbose`::
Shows verbose output.
[discrete]
=== Example
If the cron expression is valid, the following command displays the next
20 times that the schedule will be triggered:
[source,bash]
--------------------------------------------------
bin/elasticsearch-croneval "0 0/1 * * * ?" -c 20
--------------------------------------------------