# Weekday parsing using locale not working

**URL:** <https://discuss.elastic.co/t/weekday-parsing-using-locale-not-working/122479>\
**Category:** Logstash\
**Created:** [March 5, 2018, 10:29am UTC](https://discuss.elastic.co/t/weekday-parsing-using-locale-not-working/122479 "2018-03-05T10:29:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![friesoft](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/friesoft/32/23388_2.png) [@friesoft](https://discuss.elastic.co/u/friesoft)\
**Post date:** [March 5, 2018, 10:29am UTC](https://discuss.elastic.co/t/weekday-parsing-using-locale-not-working/122479/1 "2018-03-05T10:29:48Z")

</div>

Hi,

I'm trying to parse a timestamp containing a weekday using logstash 6.2.2.

German weekday: not working (dateparsefailure)

> echo "Die" | /opt/logstash-6.2.2/bin/logstash -e 'filter { date { locale =\> "de"  
> match =\> ["message", "EEE"] } }'

English weekday: working

> echo "Tue" | /opt/logstash-6.2.2/bin/logstash -e 'filter { date { locale =\> "en"  
> match =\> ["message", "EEE"] } }'

What's the correct way to specify the locale? Is it "de" or "de-DE" or "de\_DE". I've tried various forms (POSIX/IETF-BCP47) but I couldn't get the weekday to be parsed correctly.

Any ideas? Is this a bug?

Thanks,  
Bernhard

---

<div class="post-metadata">

**Author:** ![friesoft](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/friesoft/32/23388_2.png) [@friesoft](https://discuss.elastic.co/u/friesoft)\
**Post date:** [March 8, 2018, 8:08am UTC](https://discuss.elastic.co/t/weekday-parsing-using-locale-not-working/122479/2 "2018-03-08T08:08:18Z")

</div>

Any ideas anyone? If not I will create a bugreport as it looks like a bug to me.

Thanks,  
Bernhard

---

<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:** [April 5, 2018, 8:08am UTC](https://discuss.elastic.co/t/weekday-parsing-using-locale-not-working/122479/3 "2018-04-05T08:08:49Z")

</div>

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