# Issue converting number field to date

**URL:** https://discuss.elastic.co/t/issue-converting-number-field-to-date/189497
**Category:** Logstash
**Created:** [July 9, 2019, 9:08am UTC](https://discuss.elastic.co/t/issue-converting-number-field-to-date/189497 "2019-07-09T09:08:59Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![moti.mor](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@moti.mor](https://discuss.elastic.co/u/moti.mor)
#### Post date: [July 9, 2019, 9:08am UTC](https://discuss.elastic.co/t/issue-converting-number-field-to-date/189497/1 "2019-07-09T09:08:59Z")

</div>

Hi there,  
I'm trying to convert the following number field to date.  
Please see pic attached.

![Capture](https://us1.discourse-cdn.com/elastic/original/3X/d/b/dbc9f0e8dd27f7bc679982a452d37d92345b2364.jpeg)

and it's not working... please see my logstash configuration attahced on another photo.

 ![logstash](https://us1.discourse-cdn.com/elastic/original/3X/0/0/00482eb7fdad815a3f7a9ba00b63cf55426102a0.jpeg)

this is urgent issue for me , hope you can help 🙂  
thank you very much guys!

---

<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: [July 9, 2019, 12:59pm UTC](https://discuss.elastic.co/t/issue-converting-number-field-to-date/189497/2 "2019-07-09T12:59:09Z")

</div>

Please do not post pictures of text, just post the text.

---

<div class="post-metadata">

### Author: ![sjabiulla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sjabiulla/32/48429_2.png) [@sjabiulla](https://discuss.elastic.co/u/sjabiulla)
#### Post date: [July 9, 2019, 1:25pm UTC](https://discuss.elastic.co/t/issue-converting-number-field-to-date/189497/3 "2019-07-09T13:25:27Z")

</div>

Is your time in seconds or MilliSeconds !

Have a look at the below to opt for UNIX or UNIX\_MS  
[https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html#plugins-filters-date-match](https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html#plugins-filters-date-match)

Some Queries to understand the problem better.

1. What's the output in moti\_date field ?
2. Are you getting any parsing errors in logstash console. Try enabling debug log and check for errors once.

---

<div class="post-metadata">

### Author: ![moti.mor](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@moti.mor](https://discuss.elastic.co/u/moti.mor)
#### Post date: [July 10, 2019, 4:39am UTC](https://discuss.elastic.co/t/issue-converting-number-field-to-date/189497/4 "2019-07-10T04:39:42Z")

</div>

thanks this plugin with UNIX\_MS solved my problem.

---

<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: [August 7, 2019, 4:39am UTC](https://discuss.elastic.co/t/issue-converting-number-field-to-date/189497/5 "2019-08-07T04:39:43Z")

</div>

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

---

<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: [August 7, 2019, 4:39am UTC](https://discuss.elastic.co/t/issue-converting-number-field-to-date/189497/6 "2019-08-07T04:39:45Z")

</div>



---

<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: [November 4, 2022, 7:15am UTC](https://discuss.elastic.co/t/issue-converting-number-field-to-date/189497/7 "2022-11-04T07:15:46Z")

</div>


