croneval.asciidoc 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. [role="xpack"]
  2. [testenv="gold+"]
  3. [[elasticsearch-croneval]]
  4. == elasticsearch-croneval
  5. Validates and evaluates a cron expression.
  6. [discrete]
  7. === Synopsis
  8. [source,shell]
  9. --------------------------------------------------
  10. bin/elasticsearch-croneval <expression>
  11. [-c, --count <integer>] [-h, --help]
  12. ([-s, --silent] | [-v, --verbose])
  13. --------------------------------------------------
  14. [discrete]
  15. === Description
  16. This command enables you to verify that your
  17. https://en.wikipedia.org/wiki/Cron[cron] expressions are valid for use with the
  18. {es} {alert-features} and produce the expected results.
  19. This command is provided in the `$ES_HOME/bin` directory.
  20. [discrete]
  21. === Parameters
  22. `-c, --count` <Integer>::
  23. The number of future times this expression will be triggered. The default
  24. value is `10`.
  25. `-h, --help`::
  26. Returns all of the command parameters.
  27. `-s, --silent`::
  28. Shows minimal output.
  29. `-v, --verbose`::
  30. Shows verbose output.
  31. [discrete]
  32. === Examples
  33. If the cron expression is valid, the following command displays the next
  34. 20 times that the schedule will be triggered:
  35. [source,bash]
  36. --------------------------------------------------
  37. bin/elasticsearch-croneval "0 0/1 * * * ?" -c 20
  38. --------------------------------------------------