# Using a detector field value as an influencer

**URL:** <https://discuss.elastic.co/t/using-a-detector-field-value-as-an-influencer/106184>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [November 2, 2017, 12:02pm UTC](https://discuss.elastic.co/t/using-a-detector-field-value-as-an-influencer/106184 "2017-11-02T12:02:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anomalyml](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@anomalyml](https://discuss.elastic.co/u/anomalyml)\
**Post date:** [November 2, 2017, 12:02pm UTC](https://discuss.elastic.co/t/using-a-detector-field-value-as-an-influencer/106184/1 "2017-11-02T12:02:21Z")

</div>

Hi,

I have a data with following field name and values:

\<Metric\_1\> \<Metric\_2\> \<Metric\_3\> \<Server\_Name\>

1-01-2017 10 20 30 Sever\_1  
2-01-2017 50 60 70 Server\_2  
.  
.  
etc.

In the mapping I declare "Server\_Name" field as 'Keyword' to use it as a "Split Data" and "Key Field" value.

I read in the documentation that the detector values can also be used as influencer value. In that case, I would like to use "Metric\_1" value as an influencer here. I have it assigned to "long" data type. Here, I want to know how to use this detector value as an influencer value. Can a value with integer values be used as an influencer? Could you help me with this?

Thank you.

---

<div class="post-metadata">

**Author:** ![richcollier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richcollier/32/115035_2.png) [@richcollier](https://discuss.elastic.co/u/richcollier)\
**Post date:** [November 2, 2017, 7:09pm UTC](https://discuss.elastic.co/t/using-a-detector-field-value-as-an-influencer/106184/2 "2017-11-02T19:09:52Z")

</div>

> [@anomalyml](#):
>
> I would like to use "Metric\_1" value as an influencer here

No - influencers are meant to be for fields that are categorical - and are useful in identifying instances of entities that are "to blame" for the existence of the anomaly (a particular server name, a user name, etc.)

Any field in `by_field`, `partition_field` or `over_field` in the detector are good candidates for influencers.

Any field that is not part of the detector needs to be a categorical field, (a `keyword`).

---

<div class="post-metadata">

**Author:** ![anomalyml](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@anomalyml](https://discuss.elastic.co/u/anomalyml)\
**Post date:** [November 3, 2017, 6:45am UTC](https://discuss.elastic.co/t/using-a-detector-field-value-as-an-influencer/106184/3 "2017-11-03T06:45:29Z")

</div>

Thanks for the answer.

---

<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 1, 2017, 6:46am UTC](https://discuss.elastic.co/t/using-a-detector-field-value-as-an-influencer/106184/4 "2017-12-01T06:46:25Z")

</div>

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