# Try Using mutate for timestamp field

**URL:** https://discuss.elastic.co/t/try-using-mutate-for-timestamp-field/166542
**Category:** Logstash
**Created:** [January 31, 2019, 11:37am UTC](https://discuss.elastic.co/t/try-using-mutate-for-timestamp-field/166542 "2019-01-31T11:37:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![adityassa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adityassa/32/39157_2.png) [@adityassa](https://discuss.elastic.co/u/adityassa)
#### Post date: [January 31, 2019, 11:37am UTC](https://discuss.elastic.co/t/try-using-mutate-for-timestamp-field/166542/1 "2019-01-31T11:37:58Z")

</div>

Continuing the discussion from [Error to map date field with format yyyy-MM-dd HH:mm:ss.SSS](https://discuss.elastic.co/t/error-to-map-date-field-with-format-yyyy-mm-dd-hhss-sss/160341/3):

//  
mutate {  
gsub =\> [  
# replace all space with T in timestamp field/column  
"timestamp", " ", "T"

```
]

```

//

---

<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 28, 2019, 11:37am UTC](https://discuss.elastic.co/t/try-using-mutate-for-timestamp-field/166542/2 "2019-02-28T11:37:58Z")

</div>

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