croneval.asciidoc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. [discrete]
  21. [[elasticsearch-croneval-parameters]]
  22. === Parameters
  23. `-c, --count` <Integer>::
  24. The number of future times this expression will be triggered. The default
  25. value is `10`.
  26. `-d, --detail`::
  27. Shows detail for invalid cron expression. It will print the stacktrace if the
  28. expression is not valid.
  29. `-h, --help`::
  30. Returns all of the command parameters.
  31. `-s, --silent`::
  32. Shows minimal output.
  33. `-v, --verbose`::
  34. Shows verbose output.
  35. [discrete]
  36. === Example
  37. If the cron expression is valid, the following command displays the next
  38. 20 times that the schedule will be triggered:
  39. [source,bash]
  40. --------------------------------------------------
  41. bin/elasticsearch-croneval "0 0/1 * * * ?" -c 20
  42. --------------------------------------------------