# Converting type of a field in Elasticsearch Slow Logs scraped by filebeat

**URL:** <https://discuss.elastic.co/t/converting-type-of-a-field-in-elasticsearch-slow-logs-scraped-by-filebeat/233788>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 21, 2020, 6:08pm UTC](https://discuss.elastic.co/t/converting-type-of-a-field-in-elasticsearch-slow-logs-scraped-by-filebeat/233788 "2020-05-21T18:08:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sachindesai](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sachindesai/32/68671_2.png) [@sachindesai](https://discuss.elastic.co/u/sachindesai)\
**Post date:** [May 21, 2020, 6:08pm UTC](https://discuss.elastic.co/t/converting-type-of-a-field-in-elasticsearch-slow-logs-scraped-by-filebeat/233788/1 "2020-05-21T18:08:20Z")

</div>

Hi team,

I am trying to plot some graphs using metrics scraped by filebeat from elasticsearch slow log files on kibana. But by default as the metric "elasticsearch.slowlog.took" is being created as keyword by filebeat , I am not able use it effectively. I tried changing it in the fields.yml file of filebeat which didn't work. So is there any way to change this or can we use convert processor of filebeat to achieve this?

Thanks

---

<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 18, 2020, 6:08pm UTC](https://discuss.elastic.co/t/converting-type-of-a-field-in-elasticsearch-slow-logs-scraped-by-filebeat/233788/2 "2020-06-18T18:08:21Z")

</div>

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