# How to concatenate time fields and generate new timestamp

**URL:** <https://discuss.elastic.co/t/how-to-concatenate-time-fields-and-generate-new-timestamp/213012>\
**Category:** Logstash\
**Created:** [December 25, 2019, 10:23am UTC](https://discuss.elastic.co/t/how-to-concatenate-time-fields-and-generate-new-timestamp/213012 "2019-12-25T10:23:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhaskar3184](https://avatars.discourse-cdn.com/v4/letter/b/d2c977/32.png) [@Bhaskar3184](https://discuss.elastic.co/u/Bhaskar3184)\
**Post date:** [December 25, 2019, 10:23am UTC](https://discuss.elastic.co/t/how-to-concatenate-time-fields-and-generate-new-timestamp/213012/1 "2019-12-25T10:23:20Z")

</div>

Hi,

I am new to elk, can someone help me in adding new timestamp by concatenating multiple time fields.

Expected Output :  
Time totalfiles totalclean notscanned mailid deleted cleaned  
Dec 25, 2019 @ 15:42:23.815 333 444 [aa@c.com](mailto:aa@c.com) 666 555

Current output:  
Time totalfiles totalclean notscanned mailid deleted cleaned  
Dec 25, 2019 @ 15:42:23.815 - - - - - 555  
Dec 25, 2019 @ 15:42:23.815 - - - - 666 -  
Dec 25, 2019 @ 15:42:23.814 - 222 - - - -  
Dec 25, 2019 @ 15:42:23.814 333 - - - - -  
Dec 25, 2019 @ 15:42:23.814 - - 444 - - -  
Dec 25, 2019 @ 15:42:23.813 - - - - - -  
Dec 25, 2019 @ 15:42:23.813 - - - Initiator Name: [req1@hpe.com](mailto:req1@hpe.com) - -  
Dec 25, 2019 @ 15:42:23.813 111 - - - - -  
Dec 25, 2019 @ 15:42:23.812 - - - - - 555  
Dec 25, 2019 @ 15:42:23.812 - - - - 666 -

My grok:

---

<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:** [January 22, 2020, 10:23am UTC](https://discuss.elastic.co/t/how-to-concatenate-time-fields-and-generate-new-timestamp/213012/2 "2020-01-22T10:23:20Z")

</div>

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