# How to convert from String to Keyword, help needed

**URL:** <https://discuss.elastic.co/t/how-to-convert-from-string-to-keyword-help-needed/274830>\
**Category:** Kibana\
**Created:** [June 3, 2021, 7:50am UTC](https://discuss.elastic.co/t/how-to-convert-from-string-to-keyword-help-needed/274830 "2021-06-03T07:50:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marija.timovska](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marija.timovska/32/77348_2.png) [@marija.timovska](https://discuss.elastic.co/u/marija.timovska)\
**Post date:** [June 3, 2021, 7:50am UTC](https://discuss.elastic.co/t/how-to-convert-from-string-to-keyword-help-needed/274830/1 "2021-06-03T07:50:25Z")

</div>

I need all the Id fields to be a keyword so I am not getting this error.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/5/e5307b847913479796f17b7ca597957afd20f956.png)

This is my Json file I tried to configure it though I am not sure how because of my lack of experience so I am in need to assistance.

![image](https://us1.discourse-cdn.com/elastic/original/3X/9/1/91b6c3783506657e67a0f92da2284805db241084.png)

I am aware of this [article](https://www.elastic.co/blog/strings-are-dead-long-live-strings).

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/7/27807f2f812b5d2eea4cc0916d638432b7281b8b.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/e/be6e81a2f33c09cfeb6cfd1421e2fb25a4abe02e.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/a/4ad2320de019692463698ae1f21bc96e193e6464.png)

I am getting the result I need but I get an error msg bsc its not a keyword value.  
I am not using Logstash, there is a custom plugin that collects the logs.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/e/fe05b228e3797ceddd2be25694fe52267ed159d8.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/7/6760f64e57dcbc6e1bac02b9626a9ac64227579f.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/3/c350ac557f6010c765c5cc2312b1eb8a3931964c.png)

I honestly don't get this...is it a String, keyword or a bug

---

<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:** [July 1, 2021, 7:51am UTC](https://discuss.elastic.co/t/how-to-convert-from-string-to-keyword-help-needed/274830/2 "2021-07-01T07:51:08Z")

</div>

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