# Integer to String conversion for advance job detector(info\_content)

**URL:** <https://discuss.elastic.co/t/integer-to-string-conversion-for-advance-job-detector-info-content/149112>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [September 19, 2018, 11:08am UTC](https://discuss.elastic.co/t/integer-to-string-conversion-for-advance-job-detector-info-content/149112 "2018-09-19T11:08:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinay\_2498](https://avatars.discourse-cdn.com/v4/letter/v/d78d45/32.png) [@vinay\_2498](https://discuss.elastic.co/u/vinay_2498)\
**Post date:** [September 19, 2018, 11:08am UTC](https://discuss.elastic.co/t/integer-to-string-conversion-for-advance-job-detector-info-content/149112/1 "2018-09-19T11:08:50Z")

</div>

Hi,

I have NetFlow data, where the byte field is an integer type (eg, 100). I have to convert the byte field from integer type to string type so that I can use high\_info\_content function in machine learning advance job detector for detection high byte flows.

---

<div class="post-metadata">

**Author:** ![dkyle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dkyle/32/59114_2.png) [@dkyle](https://discuss.elastic.co/u/dkyle)\
**Post date:** [September 19, 2018, 11:51am UTC](https://discuss.elastic.co/t/integer-to-string-conversion-for-advance-job-detector-info-content/149112/2 "2018-09-19T11:51:29Z")

</div>

Hi,

If you want to find high byte flows use the [high\_sum](https://www.elastic.co/guide/en/x-pack/current/ml-sum-functions.html#ml-sum) function on the byte field.

```
{
  "function" : "high_sum",
  "field_name" : "byte"
}

```

Think of the `info_content` function as a measure of [entropy](https://en.wikipedia.org/wiki/Entropy_(information_theory)), it is applied to string fields to find those containing higher than usual levels of information.

---

<div class="post-metadata">

**Author:** ![vinay\_2498](https://avatars.discourse-cdn.com/v4/letter/v/d78d45/32.png) [@vinay\_2498](https://discuss.elastic.co/u/vinay_2498)\
**Post date:** [September 19, 2018, 12:21pm UTC](https://discuss.elastic.co/t/integer-to-string-conversion-for-advance-job-detector-info-content/149112/3 "2018-09-19T12:21:42Z")

</div>

Hi David,

The model is working perfectly now. Thanks for the reply.

---

<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:** [October 17, 2018, 12:21pm UTC](https://discuss.elastic.co/t/integer-to-string-conversion-for-advance-job-detector-info-content/149112/4 "2018-10-17T12:21:43Z")

</div>

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