# Rollup Job doesn't Run

**URL:** https://discuss.elastic.co/t/rollup-job-doesnt-run/145094
**Category:** Elasticsearch
**Created:** [August 20, 2018, 6:27am UTC](https://discuss.elastic.co/t/rollup-job-doesnt-run/145094 "2018-08-20T06:27:06Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![cawoodm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cawoodm/32/14083_2.png) [@cawoodm](https://discuss.elastic.co/u/cawoodm)
#### Post date: [August 20, 2018, 6:27am UTC](https://discuss.elastic.co/t/rollup-job-doesnt-run/145094/1 "2018-08-20T06:27:06Z")

</div>

I've successfully created and started a rollup job but it never runs. I've tried removing the delay, setting the cron expression to every minute (0 \* 0 ? \* \* \*) still it always shows "documents\_processed: 0" and there are no docs in the rollup-test index. The log shows no issues and we definitely have loads of data in our access-test index.

```
{
    "jobs": [
        {
            "config": {
                "id": "accessPerformance4",
                "index_pattern": "access-test",
                "rollup_index": "rollup-test",
                "cron": "0 * 0 ? * * *",
                "groups": {
                    "date_histogram": {
                        "interval": "1d",
                        "field": "timestamp",
                        "time_zone": "UTC"
                    },
                    "terms": {
                        "fields": [
                            "category",
                            "subcategory",
                            "method"
                        ]
                    }
                },
                "metrics": [
                    {
                        "field": "timeTaken",
                        "metrics": [
                            "min",
                            "max",
                            "avg"
                        ]
                    }
                ],
                "timeout": "20s",
                "page_size": 100
            },
            "status": {
                "job_state": "started"
            },
            "stats": {
                "pages_processed": 0,
                "documents_processed": 0,
                "rollups_indexed": 0,
                "trigger_count": 0
            }
        }
    ]
}
```

---

<div class="post-metadata">

### Author: ![cawoodm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cawoodm/32/14083_2.png) [@cawoodm](https://discuss.elastic.co/u/cawoodm)
#### Post date: [August 20, 2018, 6:32am UTC](https://discuss.elastic.co/t/rollup-job-doesnt-run/145094/2 "2018-08-20T06:32:26Z")

</div>

OK, it seems my cron job expression generator let me down. When I use "0 \* \* \* \* ? \*" it starts.

---

<div class="post-metadata">

### Author: ![polyfractal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polyfractal/32/48162_2.png) [@polyfractal](https://discuss.elastic.co/u/polyfractal)
#### Post date: [August 21, 2018, 10:04pm UTC](https://discuss.elastic.co/t/rollup-job-doesnt-run/145094/3 "2018-08-21T22:04:24Z")

</div>

As an aside we might need to make it more clear in the documentation that Rollup uses Watcher's cron parser, which is slightly different from most cron parsers (it supports seconds, and some other advanced features).

---

<div class="post-metadata">

### Author: ![berg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/berg/32/14962_2.png) [@berg](https://discuss.elastic.co/u/berg)
#### Post date: [September 3, 2018, 3:50am UTC](https://discuss.elastic.co/t/rollup-job-doesnt-run/145094/4 "2018-09-03T03:50:23Z")

</div>

@polyfractal I also found it difficult to understand the documentation. I'm not running X-Pack subscription so I haven't had to figure out Watcher and I couldn't find the relevant documentation in the Watcher section of the docs. It took a bit of trial and error before I figured it out, would be great if this was less ambiguous or a clear link to the Watcher explanation of the parameters.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [October 1, 2018, 3:50am UTC](https://discuss.elastic.co/t/rollup-job-doesnt-run/145094/5 "2018-10-01T03:50:23Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
