# Mutate date inside json

**URL:** <https://discuss.elastic.co/t/mutate-date-inside-json/153427>\
**Category:** Logstash\
**Created:** [October 22, 2018, 3:06pm UTC](https://discuss.elastic.co/t/mutate-date-inside-json/153427 "2018-10-22T15:06:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wheelq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wheelq/32/35893_2.png) [@wheelq](https://discuss.elastic.co/u/wheelq)\
**Post date:** [October 22, 2018, 3:06pm UTC](https://discuss.elastic.co/t/mutate-date-inside-json/153427/1 "2018-10-22T15:06:27Z")

</div>

I got json array inside one of the fields I'm going to store using logstash, and inside this arraythere is another field which contains a timestamp.

How do I access and mutate it?  
I have tried the following:

date{  
match -\> ["%{[org][users][login\_date]}" =\> "YYYY-MM-dd HH:mm:ss.SSS"]

but it fails. I have also tried org.users.dates...., no success.

---

<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:** [November 19, 2018, 3:06pm UTC](https://discuss.elastic.co/t/mutate-date-inside-json/153427/2 "2018-11-19T15:06:31Z")

</div>

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