# Local LAPI and online Engine alignment

**URL:** <https://discourse.crowdsec.net/t/local-lapi-and-online-engine-alignment/1963>\
**Category:** crowdsec\
**Created:** [August 9, 2024, 4:12pm UTC](https://discourse.crowdsec.net/t/local-lapi-and-online-engine-alignment/1963 "2024-08-09T16:12:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![urbaman](https://avatars.discourse-cdn.com/v4/letter/u/b2d939/32.png) [@urbaman](https://discourse.crowdsec.net/u/urbaman)\
**Post date:** [August 9, 2024, 4:12pm UTC](https://discourse.crowdsec.net/t/local-lapi-and-online-engine-alignment/1963/1 "2024-08-09T16:12:39Z")

</div>

Hi,

I installed crowdsec on my k8s cluster, with traefik TLS integration.  
It seems to work, based on the nikto test.

Thing is: I see different numbers and types/IPs in local LAPI alerts/decisions and online alerts.  
I see 7 online alerts I do not see locally, and I see some local alerts I do not see online.

Why is there such a difference? Is it wanted? Does it take time to align?

Thank you.

---

<div class="post-metadata">

**Author:** ![iiAmLoz](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/iiamloz/32/386_2.png) [@iiAmLoz](https://discourse.crowdsec.net/u/iiAmLoz)\
**Post date:** [August 12, 2024, 7:23am UTC](https://discourse.crowdsec.net/t/local-lapi-and-online-engine-alignment/1963/2 "2024-08-12T07:23:15Z")

</div>

> [@urbaman](#):
>
> I see 7 online alerts I do not see locally, and I see some local alerts I do not see online.
> 
> Why is there such a difference? Is it wanted? Does it take time to align?

So the alerts you see online should be visible via `cscli alerts list` **NOT** `cscli decisions list` as the decision may have expired that why you dont see it via `decisions` . The local alerts show only locally generated alerts, within k8s there could be a chance the enrolled `LAPI` you see is not the one that enrolled as since k8s can bring up and down `LAPIs` you might need to set the enrollment key on the `LAPI` environment
