# Function beat erroring out with license error when shipping log

**URL:** https://discuss.elastic.co/t/function-beat-erroring-out-with-license-error-when-shipping-log/313959
**Category:** Beats
**Tags:** functionbeat
**Created:** [September 8, 2022, 8:04am UTC](https://discuss.elastic.co/t/function-beat-erroring-out-with-license-error-when-shipping-log/313959 "2022-09-08T08:04:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![IbrahimHectare](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ibrahimhectare/32/110638_2.png) [@IbrahimHectare](https://discuss.elastic.co/u/IbrahimHectare)
#### Post date: [September 8, 2022, 8:04am UTC](https://discuss.elastic.co/t/function-beat-erroring-out-with-license-error-when-shipping-log/313959/1 "2022-09-08T08:04:20Z")

</div>

I have set up function beat on AWS, to ship my cloudwatch logs.

When the functionbeat is invoked to send the logs, it errors out due to an enterprise license being returned.

```auto
licenser/elastic_fetcher.go:136	Invalid response from server	
{
    "body": "{\"build\":{\"hash\":\"{{hash_id}}\",\"date\":\"2022-06-08T22:21:36.455508792Z\"},\"license\":{\"uid\":\"{{uuid}}\",\"type\":\"enterprise\",\"mode\":\"enterprise\",\"status\":\"active\",\"expiry_date_in_millis\":1679616000000},\"features\":{\"aggregate_metric\":{\"available\":true,\"enabled\":true},\"analytics\":{\"available\":true,\"enabled\":true},\"ccr\":{\"available\":true,\"enabled\":true},\"data_streams\":{\"available\":true,\"enabled\":true},\"data_tiers\":{\"available\":true,\"enabled\":true},\"enrich\":{\"available\":true,\"enabled\":true},\"eql\":{\"available\":true,\"enabled\":true},\"frozen_indices\":{\"available\":true,\"enabled\":true},\"graph\":{\"available\":true,\"enabled\":true},\"ilm\":{\"available\":true,\"enabled\":true},\"logstash\":{\"available\":true,\"enabled\":true},\"ml\":{\"available\":true,\"enabled\":true},\"monitoring\":{\"available\":true,\"enabled\":true},\"rollup\":{\"available\":true,\"enabled\":true},\"searchable_snapshots\":{\"available\":true,\"enabled\":true},\"security\":{\"available\":true,\"enabled\":true},\"slm\":{\"available\":true,\"enabled\":true},\"spatial\":{\"available\":true,\"enabled\":true},\"sql\":{\"available\":true,\"enabled\":true},\"transform\":{\"available\":true,\"enabled\":true},\"voting_only\":{\"available\":true,\"enabled\":true},\"watcher\":{\"available\":true,\"enabled\":true}}}"
}

```

```auto
2022-09-08T07:03:03.243Z	INFO	[license-manager]	licenser/manager.go:265	Cannot retrieve license, retrying later, error: unknown license type, received: 'enterprise'

```

It does not like the fact it is an enterprise license it seems. As per the error message it then retries this error causing the lambda to timeout.

Looking at the docs, function beats require a basic license - so I'd expect it to be supported under an enterprise license too?

Would appreciate any guidance on this issue. Thanks

---

<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 6, 2022, 10:05am UTC](https://discuss.elastic.co/t/function-beat-erroring-out-with-license-error-when-shipping-log/313959/2 "2022-10-06T10:05:03Z")

</div>

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