# Server generated field value

**URL:** <https://discuss.elastic.co/t/server-generated-field-value/98616>\
**Category:** Elasticsearch\
**Created:** [August 29, 2017, 2:04am UTC](https://discuss.elastic.co/t/server-generated-field-value/98616 "2017-08-29T02:04:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amccool](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amccool/32/29247_2.png) [@amccool](https://discuss.elastic.co/u/amccool)\
**Post date:** [August 29, 2017, 2:04am UTC](https://discuss.elastic.co/t/server-generated-field-value/98616/1 "2017-08-29T02:04:58Z")

</div>

Im using [Elasticsearch.Net](http://Elasticsearch.Net) and I would like the server to supply a value to a field when I create a document in a index.

specifically time. I want the client to supply a time value (generated on the client), and I want the server to add/supply a time value to another field for its time.

The purpose is to assess if a client (multiple clients really) has a very poor clock.

I'm at a bit of loss on how to do this, or if this already exists in some fashion

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 29, 2017, 2:27am UTC](https://discuss.elastic.co/t/server-generated-field-value/98616/2 "2017-08-29T02:27:34Z")

</div>

You can do this on the client side, but having a timestamp automatically added by Elasticsearch is not possible.

---

<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:** [September 26, 2017, 2:27am UTC](https://discuss.elastic.co/t/server-generated-field-value/98616/3 "2017-09-26T02:27:49Z")

</div>

Closed on September 26, 2017, 2:27am UTC

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