# How to convert string into integer

**URL:** <https://discuss.elastic.co/t/how-to-convert-string-into-integer/157541>\
**Category:** Beats\
**Tags:** winlogbeat\
**Created:** [November 20, 2018, 12:21pm UTC](https://discuss.elastic.co/t/how-to-convert-string-into-integer/157541 "2018-11-20T12:21:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![godfather7](https://avatars.discourse-cdn.com/v4/letter/g/f07891/32.png) [@godfather7](https://discuss.elastic.co/u/godfather7)\
**Post date:** [November 20, 2018, 12:21pm UTC](https://discuss.elastic.co/t/how-to-convert-string-into-integer/157541/1 "2018-11-20T12:21:45Z")

</div>

So i am sending data of event viewer through winlogbeat to kibana. Actually my event\_data.boottime value is coming in string format and i wanted this data field in number format. I have tried changing the format in winlogbeat.template.json but its not working.

 ![boottime](https://us1.discourse-cdn.com/elastic/original/3X/8/a/8aa12a6007ac3b8affa93f597c6998660b6a9e6e.png)

---

<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:** [December 18, 2018, 12:21pm UTC](https://discuss.elastic.co/t/how-to-convert-string-into-integer/157541/2 "2018-12-18T12:21:54Z")

</div>

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