# Filebeat: Time different between ingest time and Message log time

**URL:** <https://discuss.elastic.co/t/filebeat-time-different-between-ingest-time-and-message-log-time/290394>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 29, 2021, 6:40am UTC](https://discuss.elastic.co/t/filebeat-time-different-between-ingest-time-and-message-log-time/290394 "2021-11-29T06:40:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![FALEN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/falen/32/82754_2.png) [@FALEN](https://discuss.elastic.co/u/FALEN)\
**Post date:** [November 29, 2021, 1:50pm UTC](https://discuss.elastic.co/t/filebeat-time-different-between-ingest-time-and-message-log-time/290394/4 "2021-11-29T13:50:10Z")

</div>

This topic can help you, i prefer the grok, its better for performance

> [@How to create a date scripted field for extracting actual date from logs?](https://discuss.elastic.co/t/how-to-create-a-date-scripted-field-for-extracting-actual-date-from-logs/167389):
>
> I want to create a date scripted field in kibana so that i can plot actual log dates in date histogram plot instead of using timestamp. My log format is: 2019-01-18 18:49:24.375 Progress: creating : resume I'm attaching code for scripted field i was trying to do painless script: new SimpleDateFormat('YYYY-MM-DD:HH:mm:ss.SSS').parse(doc['message'].value); on field creation it gives me errors that "shards failed". Please help me

---

_[View the full topic](https://discuss.elastic.co/t/filebeat-time-different-between-ingest-time-and-message-log-time/290394)._
