# Use 'y' for year-of-era. Prefix your date format with '8' to use the new specifier

**URL:** <https://discuss.elastic.co/t/use-y-for-year-of-era-prefix-your-date-format-with-8-to-use-the-new-specifier/191078>\
**Category:** Elasticsearch\
**Created:** [July 17, 2019, 7:53pm UTC](https://discuss.elastic.co/t/use-y-for-year-of-era-prefix-your-date-format-with-8-to-use-the-new-specifier/191078 "2019-07-17T19:53:18Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 8, 2019, 9:46am UTC](https://discuss.elastic.co/t/use-y-for-year-of-era-prefix-your-date-format-with-8-to-use-the-new-specifier/191078/24 "2019-08-08T09:46:18Z")

</div>

just to make sure I understood you correctly here and to raise the chances of reproduction? You get this error by just installing Elasticsearch 6.8 without indexing any data into it? Or did you configure some beat or logstash to send data to that fresh 6.8 instance?

--Alex

---

<div class="post-metadata">

**Author:** ![mattsdevop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattsdevop/32/45160_2.png) [@mattsdevop](https://discuss.elastic.co/u/mattsdevop)\
**Post date:** [August 8, 2019, 1:13pm UTC](https://discuss.elastic.co/t/use-y-for-year-of-era-prefix-your-date-format-with-8-to-use-the-new-specifier/191078/25 "2019-08-08T13:13:07Z")

</div>

Vanilla install of elasticsearch. Hence my hesitation to trust the warning, and the confusion/concern.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 8, 2019, 1:17pm UTC](https://discuss.elastic.co/t/use-y-for-year-of-era-prefix-your-date-format-with-8-to-use-the-new-specifier/191078/26 "2019-08-08T13:17:37Z")

</div>

how is this triggered? Are you indexing data? Are you executing a query? Can you describe the steps until the message occurs? Or really just starting without doing anything?

---

<div class="post-metadata">

**Author:** ![mattsdevop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattsdevop/32/45160_2.png) [@mattsdevop](https://discuss.elastic.co/u/mattsdevop)\
**Post date:** [August 8, 2019, 3:48pm UTC](https://discuss.elastic.co/t/use-y-for-year-of-era-prefix-your-date-format-with-8-to-use-the-new-specifier/191078/27 "2019-08-08T15:48:36Z")

</div>

Install elasticsearch from repo using yum, start elasticsearch, look at deprecation log. Logstash isn't installed anywhere or pointing to the instance. Kibana isn't installed, etc. It's a fresh Linux box without any other configuration regarding elasticsearch. No configurations for elasticsearch have been modified. All default from the repo install. Here's the output if you're curious:

```auto
yum install elasticsearch
Loaded plugins: auto-update-debuginfo, fastestmirror
Loading mirror speeds from cached hostfile
 * base: www.gtlib.gatech.edu
 * extras: mirror.pit.teraswitch.com
 * updates: mirrors.tripadvisor.com
elasticsearch-6.x | 1.3 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package elasticsearch.noarch 0:6.8.2-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================================================================
 Package Arch Version Repository Size
======================================================================================================================================================================================
Installing:
 elasticsearch noarch 6.8.2-1 elasticsearch-6.x 142 M

Transaction Summary
======================================================================================================================================================================================
Install 1 Package

Total download size: 142 M
Installed size: 227 M
Is this ok [y/d/N]: y
Downloading packages:
elasticsearch-6.8.2.rpm | 142 MB 00:00:26
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Creating elasticsearch group... OK
Creating elasticsearch user... OK
  Installing : elasticsearch-6.8.2-1.noarch 1/1
### NOT starting on installation, please execute the following statements to configure elasticsearch service to start automatically using systemd
 sudo systemctl daemon-reload
 sudo systemctl enable elasticsearch.service
### You can start elasticsearch service by executing
 sudo systemctl start elasticsearch.service
Created elasticsearch keystore in /etc/elasticsearch
  Verifying : elasticsearch-6.8.2-1.noarch 1/1

Installed:
  elasticsearch.noarch 0:6.8.2-1

Complete!

```

```auto
> sudo systemctl daemon-reload
> sudo systemctl start elasticsearch.service
> sudo tail /var/log/elasticsearch/elasticsearch_deprecation.log
[2019-08-08T11:45:41,520][WARN][o.e.d.c.j.Joda] [nk3vu6R] 'y' year should be replaced with 'u'. Use 'y' for year-of-era. Prefix your date format with '8' to use the new specifier.

```

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 13, 2019, 6:45am UTC](https://discuss.elastic.co/t/use-y-for-year-of-era-prefix-your-date-format-with-8-to-use-the-new-specifier/191078/28 "2019-08-13T06:45:16Z")

</div>

thanks for the description. I think I figured out where this happens (in some xpack code) and will open up a PR!

Drinks on me, wherever we meet 🙂

---

<div class="post-metadata">

**Author:** ![mattsdevop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattsdevop/32/45160_2.png) [@mattsdevop](https://discuss.elastic.co/u/mattsdevop)\
**Post date:** [August 13, 2019, 1:46pm UTC](https://discuss.elastic.co/t/use-y-for-year-of-era-prefix-your-date-format-with-8-to-use-the-new-specifier/191078/29 "2019-08-13T13:46:46Z")

</div>

Thank you again. 🙂

---

<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:** [September 10, 2019, 1:46pm UTC](https://discuss.elastic.co/t/use-y-for-year-of-era-prefix-your-date-format-with-8-to-use-the-new-specifier/191078/30 "2019-09-10T13:46:51Z")

</div>

Closed on September 10, 2019, 1:46pm UTC

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

[Previous page](https://discuss.elastic.co/t/use-y-for-year-of-era-prefix-your-date-format-with-8-to-use-the-new-specifier/191078.md?page=1)
