> For the complete documentation index, see [llms.txt](https://docs.elastiflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.elastiflow.com/additional-resources-reference-articles/faq/license_invalid_segments.md).

# license/error Invalid Segments

### SYMPTOM

The collector's log indicates:

```log
2023-09-09T18:07:48.009Z        fatal   flowcoll        flowcoll/main.go:41     exiting because of a license error      {"code": "license/error", "reason": "token contains an invalid number of segments"}
```

### PROBLEM

This error message typically happens when the Elasticsearch enrollment token is used in the ElastiFlow parameter `EF_LICENSE_KEY`.

### SOLUTION

The correct license key is provided by ElastiFlow when you make a request via our website, or after purchasing a Standard or Premium [subscription](https://www.elastiflow.com/subscriptions). These are the three primary license-related configuration parameters:

```yaml
EF_LICENSE_ACCEPTED: true
EF_ACCOUNT_ID: '<ElastiFlow Account ID>'
EF_LICENSE_KEY: '<ElastiFlow License Key>'
```

### REFERENCE

* [Community, Basic, Standard & Premium Subscriptions](https://www.elastiflow.com/subscriptions)
* [30-day Trial License Sign Up](https://www.elastiflow.com/get-started)
* [Basic License Sign Up](https://www.elastiflow.com/basic-license)
* [EF\_LICENSE\_KEY](https://docs.elastiflow.com/flowcoll/configuration/config_gen/license.md#ef_license_key)
