# \[Kibana\]\[ML\] The job id cannot contain more than 64 characters

**URL:** <https://discuss.elastic.co/t/kibana-ml-the-job-id-cannot-contain-more-than-64-characters/303047>\
**Category:** Kibana\
**Tags:** elastic-stack-machine-learning\
**Created:** [April 22, 2022, 2:53pm UTC](https://discuss.elastic.co/t/kibana-ml-the-job-id-cannot-contain-more-than-64-characters/303047 "2022-04-22T14:53:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![marone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marone/32/87145_2.png) [@marone](https://discuss.elastic.co/u/marone)\
**Post date:** [April 22, 2022, 2:53pm UTC](https://discuss.elastic.co/t/kibana-ml-the-job-id-cannot-contain-more-than-64-characters/303047/1 "2022-04-22T14:53:05Z")

</div>

Hello, I'm trying to create a ML job to test the anomalies feature with observability, the Log rate job was created successfully, but when I try to create a "Categorization" job it's saying "The job id cannot contain more than 64 characters", and there is no text box to enter job id ti bypass this limitation, I am using elk stack 7.17. How to solve this, please? Thanks.

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

---

<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:** [April 22, 2022, 3:46pm UTC](https://discuss.elastic.co/t/kibana-ml-the-job-id-cannot-contain-more-than-64-characters/303047/2 "2022-04-22T15:46:09Z")

</div>

I believe the UI will attempt to create a job name (`job_id`) that is the concatenation of a few pieces of information that is chosen in this wizard, but I also think it will use the name of the Kibana Space that you're in. For example, here's a job\_id that I just created:

```auto
kibana-logs-ui-ml_team-default-log-entry-rate

```

where `ml-team` is the name of the Kibana Space I created it in. However, if I try to create the job in a Kibana Space name that is longer (i.e. `my_really_really_really_really_really__really_long_name`):

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

Then when I create the same job it'll get the same error as you (also notice error in background):

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

So, it would seem that a few things need to happen:

1. The ML code needs to allow job\_ids that are longer than 64 characters
2. The logic in the UI needs to create a smaller job\_id
3. You need to have a shorter Kibana Space name.

Obviously 1 and 2 require a bugfix

---

<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:** [April 22, 2022, 11:27pm UTC](https://discuss.elastic.co/t/kibana-ml-the-job-id-cannot-contain-more-than-64-characters/303047/3 "2022-04-22T23:27:58Z")

</div>

Seems like this is a known issue: [Too long ML job id of Logs UI is being generated · Issue #112938 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/112938)

---

<div class="post-metadata">

**Author:** ![marone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marone/32/87145_2.png) [@marone](https://discuss.elastic.co/u/marone)\
**Post date:** [April 25, 2022, 3:00pm UTC](https://discuss.elastic.co/t/kibana-ml-the-job-id-cannot-contain-more-than-64-characters/303047/4 "2022-04-25T15:00:31Z")

</div>

Thank you @richcollier for your answer, indeed seems a bug, but the problem is I already created an ML job of type "log rate" and the id of the job was 67 characters. And doesn't let me create a job of type "Categorization". it's weird! 😕

---

<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:** [May 23, 2022, 3:01pm UTC](https://discuss.elastic.co/t/kibana-ml-the-job-id-cannot-contain-more-than-64-characters/303047/5 "2022-05-23T15:01:20Z")

</div>

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