# Add Field example in Logstash Date Filter should contain date-specific relevant values

**URL:** https://discuss.elastic.co/t/add-field-example-in-logstash-date-filter-should-contain-date-specific-relevant-values/71123
**Category:** Logstash
**Created:** [January 10, 2017, 5:08pm UTC](https://discuss.elastic.co/t/add-field-example-in-logstash-date-filter-should-contain-date-specific-relevant-values/71123 "2017-01-10T17:08:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sandeepkanabar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sandeepkanabar/32/79399_2.png) [@sandeepkanabar](https://discuss.elastic.co/u/sandeepkanabar)
#### Post date: [January 10, 2017, 5:08pm UTC](https://discuss.elastic.co/t/add-field-example-in-logstash-date-filter-should-contain-date-specific-relevant-values/71123/1 "2017-01-10T17:08:53Z")

</div>

I believe it would be more helpful if the logstash date filter [documentation](https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html#plugins-filters-date-add_field) for `add_field` contains values that are pertaining to `date` rather than `"Hello World, from %{host}"`.

Thoughts?

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [January 10, 2017, 6:51pm UTC](https://discuss.elastic.co/t/add-field-example-in-logstash-date-filter-should-contain-date-specific-relevant-values/71123/2 "2017-01-10T18:51:05Z")

</div>

The `add_field` option (and several others) are present in all filters and the same help text is reused everywhere. Creating custom examples for each filter would be a lot of work with very little benefit.

---

<div class="post-metadata">

### Author: ![sandeepkanabar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sandeepkanabar/32/79399_2.png) [@sandeepkanabar](https://discuss.elastic.co/u/sandeepkanabar)
#### Post date: [January 10, 2017, 7:20pm UTC](https://discuss.elastic.co/t/add-field-example-in-logstash-date-filter-should-contain-date-specific-relevant-values/71123/3 "2017-01-10T19:20:08Z")

</div>

Thanks @magnusbaeck. Agree.

---

<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: [February 7, 2017, 7:20pm UTC](https://discuss.elastic.co/t/add-field-example-in-logstash-date-filter-should-contain-date-specific-relevant-values/71123/4 "2017-02-07T19:20:11Z")

</div>

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