# ISO 8601 Basic Format

**URL:** <https://discuss.elastic.co/t/iso-8601-basic-format/235323>\
**Category:** Logstash\
**Created:** [June 2, 2020, 11:26am UTC](https://discuss.elastic.co/t/iso-8601-basic-format/235323 "2020-06-02T11:26:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yakimant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yakimant/32/69565_2.png) [@yakimant](https://discuss.elastic.co/u/yakimant)\
**Post date:** [June 2, 2020, 11:26am UTC](https://discuss.elastic.co/t/iso-8601-basic-format/235323/1 "2020-06-02T11:26:00Z")

</div>

Hi everyone,

I was reading ISO 8601 wiki:

> **[ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)**
>
> ISO 8601 Data elements and interchange formats – Information interchange – Representation of dates and times is an international standard covering the exchange of date- and time-related data. It was issued by the International Organization for Standardization (ISO) and was first published in 1988. The purpose of this standard is to provide an unambiguous and well-defined method of representing dates and times, so as to avoid misinterpretation of numeric representations of dates and times, particu...

And found out:  
"Representations can be done in one of two formats – a basic format with a minimal number of separators or an extended format with separators added to enhance human readability."

But if I use ISO8601 date filter for the following, I get a "\_dateparsefailure":  
"20200602T112500+0000"

For me it looks exactly as basic format of ISO8601.

I didn't find any discussion on this topic in the internet, so decided to start one here.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 2, 2020, 1:45pm UTC](https://discuss.elastic.co/t/iso-8601-basic-format/235323/2 "2020-06-02T13:45:19Z")

</div>

My reading is that the [code](https://github.com/logstash-plugins/logstash-filter-date/blob/master/src/main/java/org/logstash/filters/parser/CasualISO8601Parser.java#L39) (and [here](https://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTimeParser--)) requires separators. You cannot just smush the year, month, and day together.

---

<div class="post-metadata">

**Author:** ![yakimant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yakimant/32/69565_2.png) [@yakimant](https://discuss.elastic.co/u/yakimant)\
**Post date:** [June 3, 2020, 8:59am UTC](https://discuss.elastic.co/t/iso-8601-basic-format/235323/3 "2020-06-03T08:59:57Z")

</div>

Hi @Badger,

I'm quite new to ELK and ISO8601, that's why I decided to read wikipedia.

Wikipedia says - there are 2 formats - basic and extended. Basic allows to omit any punctuation.

I didn't generate this date string myself. It came from one of commercial app logs. Looks suspiciously kind of ISO8601.

---

<div class="post-metadata">

**Author:** ![yakimant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yakimant/32/69565_2.png) [@yakimant](https://discuss.elastic.co/u/yakimant)\
**Post date:** [June 3, 2020, 9:05am UTC](https://discuss.elastic.co/t/iso-8601-basic-format/235323/4 "2020-06-03T09:05:54Z")

</div>

Started a topic in GitHub too:

> <https://github.com/logstash-plugins/logstash-filter-date/issues/138>
>
> Hi guys,
> I want to duplicate my question here:
> I was reading ISO 8601 wiki:
> And found out:
> "Representations can be done in one of...

---

<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:** [July 1, 2020, 9:05am UTC](https://discuss.elastic.co/t/iso-8601-basic-format/235323/5 "2020-07-01T09:05:59Z")

</div>

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