# How to add a date field?

**URL:** https://discuss.elastic.co/t/how-to-add-a-date-field/31488
**Category:** Logstash
**Created:** [October 1, 2015, 4:16pm UTC](https://discuss.elastic.co/t/how-to-add-a-date-field/31488 "2015-10-01T16:16:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![CraigFoote](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/craigfoote/32/4571_2.png) [@CraigFoote](https://discuss.elastic.co/u/CraigFoote)
#### Post date: [October 1, 2015, 4:16pm UTC](https://discuss.elastic.co/t/how-to-add-a-date-field/31488/1 "2015-10-01T16:16:12Z")

</div>

Is there a way to add a field of type date using just logstash config? I've tried using the mutate and date filters with no success. I need to set a field with an arbitrary date, e.g.

date{  
add\_field =\> { "ingestion\_date" =\> 2015.09.17 }  
}

---

<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 6, 2017, 5:27am UTC](https://discuss.elastic.co/t/how-to-add-a-date-field/31488/2 "2017-07-06T05:27:31Z")

</div>


