mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# elasticsearch-croneval
|
|
|
|
> Validate and evaluate a `cron` expression. This command helps verify that `cron` expressions are valid for use with Elasticsearch and produce the expected results.
|
|
> More information: <https://www.elastic.co/docs/reference/elasticsearch/command-line-tools/elasticsearch-croneval>.
|
|
|
|
- Evaluate a `cron` expression and display the next 10 trigger times (default behavior):
|
|
|
|
`elasticsearch-croneval "{{cron_expression}}"`
|
|
|
|
- Evaluate a `cron` expression and display a specific number of future trigger times:
|
|
|
|
`elasticsearch-croneval "{{cron_expression}}" {{[-c|--count]}} {{integer}}`
|
|
|
|
- Display detailed information (including stack trace) for an invalid `cron` expression:
|
|
|
|
`elasticsearch-croneval "{{invalid_cron_expression}}" {{[-d|--detail]}}`
|
|
|
|
- Display minimal output (silent mode):
|
|
|
|
`elasticsearch-croneval "{{cron_expression}}" {{[-s|--silent]}}`
|
|
|
|
- Display verbose output:
|
|
|
|
`elasticsearch-croneval "{{cron_expression}}" {{[-v|--verbose]}}`
|