croneval.asciidoc 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. [role="xpack"]
  2. [testenv="gold+"]
  3. [[elasticsearch-croneval]]
  4. == elasticsearch-croneval
  5. Validates and evaluates a <<cron-expressions,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. cron expressions are valid for use with
  18. {es} and produce the expected results.
  19. This command is provided in the `$ES_HOME/bin` directory.
  20. === Parameters
  21. `-c, --count` <Integer>::
  22. The number of future times this expression will be triggered. The default
  23. value is `10`.
  24. `-d, --detail`::
  25. Shows detail for invalid cron expression. It will print the stacktrace if the
  26. expression is not valid.
  27. `-h, --help`::
  28. Returns all of the command parameters.
  29. `-s, --silent`::
  30. Shows minimal output.
  31. `-v, --verbose`::
  32. Shows verbose output.
  33. [discrete]
  34. === Example
  35. If the cron expression is valid, the following command displays the next
  36. 20 times that the schedule will be triggered:
  37. [source,bash]
  38. --------------------------------------------------
  39. bin/elasticsearch-croneval "0 0/1 * * * ?" -c 20
  40. --------------------------------------------------