# How to conduct field connection operation

**URL:** <https://discuss.elastic.co/t/how-to-conduct-field-connection-operation/44506>\
**Category:** Kibana\
**Created:** [March 16, 2016, 2:55am UTC](https://discuss.elastic.co/t/how-to-conduct-field-connection-operation/44506 "2016-03-16T02:55:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![szcountryboy](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@szcountryboy](https://discuss.elastic.co/u/szcountryboy)\
**Post date:** [March 16, 2016, 2:55am UTC](https://discuss.elastic.co/t/how-to-conduct-field-connection-operation/44506/1 "2016-03-16T02:55:06Z")

</div>

Create fields Scripted

doc['@timestamp'].getYear() return 2016  
doc['@timestamp'].getMonth() return 02  
doc['@timestamp'].getDayOfMonth() return 16  
I would like to return 201616 or 20160216 or 201602 etc.  
I use doc['@timestamp'].getMonth() doc['@timestamp'].getYear() are reported to the wrong  
doc['@timestamp'].getYear().toString() + doc['@timestamp'].getMonth().toString() the same  
doc['@timestamp'].getYear() - doc['@timestamp'].getMonth() the return 2014(2016-02) I want return 201602

How to carry out the digital extraction connection operation?

Thanks.

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [March 18, 2016, 2:00pm UTC](https://discuss.elastic.co/t/how-to-conduct-field-connection-operation/44506/2 "2016-03-18T14:00:57Z")

</div>

[Lucene expressions](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html#_lucene_expressions_scripts), which is the default Kibana query language, does not support string operations. In the future this will be possible with [Painless scripting](https://github.com/elastic/kibana/issues/6529).

---

<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, 1:58pm UTC](https://discuss.elastic.co/t/how-to-conduct-field-connection-operation/44506/3 "2017-07-06T13:58:36Z")

</div>


