# Error in curator log on Date math function

**URL:** <https://discuss.elastic.co/t/error-in-curator-log-on-date-math-function/160308>\
**Category:** Elasticsearch\
**Created:** [December 11, 2018, 7:06am UTC](https://discuss.elastic.co/t/error-in-curator-log-on-date-math-function/160308 "2018-12-11T07:06:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elango-mas](https://avatars.discourse-cdn.com/v4/letter/e/779978/32.png) [@Elango-mas](https://discuss.elastic.co/u/Elango-mas)\
**Post date:** [December 11, 2018, 7:06am UTC](https://discuss.elastic.co/t/error-in-curator-log-on-date-math-function/160308/1 "2018-12-11T07:06:50Z")

</div>

Hi Team,

I am trying to take snapshot using curator and the job is successful. But i get the below error in the log file.

```
2018-12-11 07:39:57,048 INFO curator.utils parse_date_pattern:1338 "<baseut__{now{YYYY.MM.dd}}_{now{HH.mm|+02:00}}>" is using Elasticsearch date math.
2018-12-11 07:39:57,048 DEBUG curator.utils parse_date_pattern:1349 Fully rendered name: <ut__{now{YYYY.MM.dd}}_{now{HH.mm|+02:00}}>
2018-12-11 07:39:57,048 DEBUG curator.utils isdatemath:1879 opener = <, closer = >
2018-12-11 07:39:57,048 DEBUG curator.utils parse_datemath:1895 Properly encapsulated, proceeding to next evaluation...
2018-12-11 07:39:57,048 DEBUG curator.utils get_datemath:1854 Random datemath string for extraction: <curator_get_datemath_function_qltizhfzalooqswfglbahsqtxsjoejwg-{now{YYYY.MM.dd}}_{now{HH.mm|+02:00}}>
2018-12-11 07:39:57,048 DEBUG urllib3.util.retry from_int:200 Converted retries value: False -> Retry(total=False, connect=None, read=None, redirect=0, status=None)
2018-12-11 07:39:57,049 DEBUG urllib3.connectionpool _make_request:396 https://0.0.0.0:9200 "GET /%3Ccurator_get_datemath_function_qltizhfzalooqswfglbahsqtxsjoejwg-%7Bnow%7BYYYY.MM.dd%7D%7D_%7Bnow%7BHH.mm%7C%2B02%3A00%7D%7D%3E HTTP/1.1" 404 381
2018-12-11 07:39:57,050 WARNING elasticsearch log_request_fail:97 GET https://0.0.0.0:9200/%3Ccurator_get_datemath_function_qltizhfzalooqswfglbahsqtxsjoejwg-%7Bnow%7BYYYY.MM.dd%7D%7D_%7Bnow%7BHH.mm%7C%2B02%3A00%7D%7D%3E [status:404 request:0.001s]
2018-12-11 07:39:57,050 DEBUG elasticsearch log_request_fail:105 > None
2018-12-11 07:39:57,050 DEBUG elasticsearch log_request_fail:110 < {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","index_uuid":"_na_","index":"curator_get_datemath_function_qltizhfzalooqswfglbahsqtxsjoejwg-2018.12.11_08.39"}],"type":"index_not_found_exception","reason":"no such index","index_uuid":"_na_","index":"curator_get_datemath_function_qltizhfzalooqswfglbahsqtxsjoejwg-2018.12.11_08.39"},"status":404}
2018-12-11 07:39:57,050 DEBUG curator.utils get_datemath:1861 Response index name for extraction: curator_get_datemath_function_qltizhfzalooqswfglbahsqtxsjoejwg-2018.12.11_08.39

```

Any idea why is this happening or what the curator is doing at this point?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)\
**Post date:** [December 11, 2018, 7:12am UTC](https://discuss.elastic.co/t/error-in-curator-log-on-date-math-function/160308/2 "2018-12-11T07:12:16Z")

</div>

Hi @Elango-mas,

If you see the error its showing Request fail and index not found.

> [@](#):
>
> log\_request\_fail:97 GET [https://10.30.72.155:9200/\<curator\_get\_datemath\_function\_qltizhfzalooqswfglbahsqtxsjoejwg-{now{YYYY.MM.dd}}\_{now{HH.mm|%2B02%3A00}}\>](https://10.30.72.155:9200/%3Ccurator_get_datemath_function_qltizhfzalooqswfglbahsqtxsjoejwg-%7Bnow%7BYYYY.MM.dd%7D%7D_%7Bnow%7BHH.mm%7C%2B02%3A00%7D%7D%3E) [status:404 request:0.001s] 2018-12-11 07:39:57,050 DEBUG elasticsearch log\_request\_fail:105 \> None 2018-12-11 07:39:57,050 DEBUG elasticsearch log\_request\_fail:110 \< {"error":{"root\_cause":[{"type":"index\_not\_found\_exception","reason":"no such index","index\_uuid":"_na_","index":"curator\_get\_datemath\_function\_qltizhfzalooqswfglbahsqtxsjoejwg-2018.12.11\_08.39"}],"type":"index\_not\_found\_exception","reason":"no such index","index\_uuid":"_na_","index":"curator\_get\_datemath\_function\_qltizhfzalooqswfglbahsqtxsjoejwg-2018.12.11\_08.39"},"status":404}

However, Request you to share the YML file for snapshot for further investigation.

Regards,  
Harsh Bajaj

---

<div class="post-metadata">

**Author:** ![Elango-mas](https://avatars.discourse-cdn.com/v4/letter/e/779978/32.png) [@Elango-mas](https://discuss.elastic.co/u/Elango-mas)\
**Post date:** [December 11, 2018, 8:22am UTC](https://discuss.elastic.co/t/error-in-curator-log-on-date-math-function/160308/3 "2018-12-11T08:22:23Z")

</div>

Hi Harsh,

snapshot.yml

```
actions:
  1:
    action: snapshot
    description: >-
    options:
      repository: repositoryname
      name: <snapshotname_{now{YYYY.MM.dd}}_{now{HH.mm|+02:00}}>
      ignore_unavailable: False
      include_global_state: True
      partial: False
      wait_for_completion: True
      skip_repo_fs_check: False
      disable_action: False
    filters:
      - filtertype: none

```

And I need to know why curator is checking for **curator\_get\_datemath\_function\_qltizhfzalooqswfglbahsqtxsjoejwg-2018.12.11\_08.39** index and what is it trying to do?  
Any links would be helpful.

Thanks

---

<div class="post-metadata">

**Author:** ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)\
**Post date:** [December 11, 2018, 9:10am UTC](https://discuss.elastic.co/t/error-in-curator-log-on-date-math-function/160308/4 "2018-12-11T09:10:27Z")

</div>

Hi @Elango-mas,

Could you please confirm your curator version?

Please refer below thread where other user was facing same issue in 5.4.1. If you are using same version please upgrade it.

> [@Invalid Snapshot Exception when using Curator to create snapshot](https://discuss.elastic.co/t/invalid-snapshot-exception-when-using-curator-to-create-snapshot/147651):
>
> Hi, I have the latest version of Curator installed in my Linux server using the YUM repo installation process. I have trying to re-create a snapshot action which I had used in my local windows system, it had worked fine in my windows system but when I try to execute the same action file via server. I keep receiving 'invalid snapshot name exception' and the snapshot does not get created. I'm quite confused as to this difference in behavior from the local system and in my server. This is the act…

Regards,  
Harsh

---

<div class="post-metadata">

**Author:** ![Elango-mas](https://avatars.discourse-cdn.com/v4/letter/e/779978/32.png) [@Elango-mas](https://discuss.elastic.co/u/Elango-mas)\
**Post date:** [December 11, 2018, 12:20pm UTC](https://discuss.elastic.co/t/error-in-curator-log-on-date-math-function/160308/5 "2018-12-11T12:20:29Z")

</div>

Hi Harsh,

I am using curator 5.6.

The reference you sent is not the problem i face. I have specified that my snapshot job is working fine.

Before doing the snapshot, it is trying to update the date to the snapshot name where i get this error.

Thanks!

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [December 11, 2018, 12:47pm UTC](https://discuss.elastic.co/t/error-in-curator-log-on-date-math-function/160308/6 "2018-12-11T12:47:04Z")

</div>

This is expected behavior and nothing to be concerned about.

Curator performs a `GET` with a dummy index name in order to get date math calculations from Elasticsearch, rather than attempting to do the date math calculations in Curator.

Because you are in `DEBUG` logging, you see it happen. Otherwise you never would have known.

---

<div class="post-metadata">

**Author:** ![Elango-mas](https://avatars.discourse-cdn.com/v4/letter/e/779978/32.png) [@Elango-mas](https://discuss.elastic.co/u/Elango-mas)\
**Post date:** [December 14, 2018, 5:34am UTC](https://discuss.elastic.co/t/error-in-curator-log-on-date-math-function/160308/7 "2018-12-14T05:34:25Z")

</div>

Thank you [theuntergeek](https://discuss.elastic.co/t/error-in-curator-log-on-date-math-function/160308/6) !

---

<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:** [January 11, 2019, 5:34am UTC](https://discuss.elastic.co/t/error-in-curator-log-on-date-math-function/160308/8 "2019-01-11T05:34:27Z")

</div>

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