# Metricbeat SQL Module storing datetime field as string

**URL:** <https://discuss.elastic.co/t/metricbeat-sql-module-storing-datetime-field-as-string/274178>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [May 27, 2021, 10:09am UTC](https://discuss.elastic.co/t/metricbeat-sql-module-storing-datetime-field-as-string/274178 "2021-05-27T10:09:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sathish22](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@Sathish22](https://discuss.elastic.co/u/Sathish22)\
**Post date:** [May 27, 2021, 10:09am UTC](https://discuss.elastic.co/t/metricbeat-sql-module-storing-datetime-field-as-string/274178/1 "2021-05-27T10:09:07Z")

</div>

Dear Team,

We have a custom query to be configured in metricbeat SQL module.

And query consist of field with the name as Date\_Time as datetime format.

After configured the SQL in sql module, it is pushing Date\_Time field as string format instead of datetime format.

Can you please help us storing data in datetime format instead of string.

Thanks,  
Sathish.

---

<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:** [June 24, 2021, 12:09pm UTC](https://discuss.elastic.co/t/metricbeat-sql-module-storing-datetime-field-as-string/274178/2 "2021-06-24T12:09:17Z")

</div>

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