# IP filtering and Security audit not working "Trial License"

**URL:** <https://discuss.elastic.co/t/ip-filtering-and-security-audit-not-working-trial-license/257185>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring, elastic-stack-security\
**Created:** [December 1, 2020, 10:06am UTC](https://discuss.elastic.co/t/ip-filtering-and-security-audit-not-working-trial-license/257185 "2020-12-01T10:06:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdelhalim](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Abdelhalim](https://discuss.elastic.co/u/Abdelhalim)\
**Post date:** [December 1, 2020, 10:06am UTC](https://discuss.elastic.co/t/ip-filtering-and-security-audit-not-working-trial-license/257185/1 "2020-12-01T10:06:31Z")

</div>

Hello,

I am using trial License to try the IP filtering and Security audit (using version 8.0.0), but it's not working.

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

I added this configuration to my elasticsearch.yml file:

```auto
xpack.security.audit.enabled: true
xpack.security.transport.filter.enabled: true
xpack.security.http.filter.enabled: true
xpack.security.http.filter.deny: _all
xpack.security.transport.filter.deny: _all

```

II tried to deny my IP address and it didn't work, so I decided to try to deny everything and didn't work too.  
and for the auditing, I am not seeing any \*\_audit.json file !

Could you tell me please if the auditing and IP filetring don't work with Trial License, or I am doing something wrong in my configuration !

Thanks for your help

---

<div class="post-metadata">

**Author:** ![Albert\_Zaharovits](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/albert_zaharovits/32/24390_2.png) [@Albert\_Zaharovits](https://discuss.elastic.co/u/Albert_Zaharovits)\
**Post date:** [December 1, 2020, 3:20pm UTC](https://discuss.elastic.co/t/ip-filtering-and-security-audit-not-working-trial-license/257185/2 "2020-12-01T15:20:18Z")

</div>

Hi @Abdelhalim,

For historical reasons, you must explicitly set `xpack.security.enabled: true` for `basic` and `trial` licenses.

---

<div class="post-metadata">

**Author:** ![Abdelhalim](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Abdelhalim](https://discuss.elastic.co/u/Abdelhalim)\
**Post date:** [December 2, 2020, 11:14am UTC](https://discuss.elastic.co/t/ip-filtering-and-security-audit-not-working-trial-license/257185/3 "2020-12-02T11:14:32Z")

</div>

**UPDATE: The auditing is working now, still just IP filtering not working**

Thanks for your answer @Albert_Zaharovits,  
I am already using `xpack.security.enabled: true`

here is my whole configuration:

```auto
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: full
xpack.security.transport.ssl.key: "MASTER.key"
xpack.security.transport.ssl.certificate: "MASTER.crt"
xpack.security.transport.ssl.certificate_authorities: ["ca.crt"]

#===============Encryption between Elastic and kibana================
xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.keystore.path: "http.p12"
xpack.security.http.ssl.truststore.path: "http.p12"

#===================== Monitoring =========================
xpack.monitoring.collection.enabled: true
xpack.monitoring.elasticsearch.collection.enabled: false

#================= Test audit and IP filtering ====================
xpack.security.audit.enabled: true
xpack.security.transport.filter.enabled: true
xpack.security.http.filter.enabled: true
xpack.security.http.filter.deny: _all
xpack.security.transport.filter: _all

```

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [December 2, 2020, 11:07pm UTC](https://discuss.elastic.co/t/ip-filtering-and-security-audit-not-working-trial-license/257185/4 "2020-12-02T23:07:54Z")

</div>

> [@Abdelhalim](#):
>
> using version 8.0.0

Elasticsearch 8 hasn't been released yet. Can you clarify exactly what you're running?

---

<div class="post-metadata">

**Author:** ![Abdelhalim](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Abdelhalim](https://discuss.elastic.co/u/Abdelhalim)\
**Post date:** [December 3, 2020, 8:07am UTC](https://discuss.elastic.co/t/ip-filtering-and-security-audit-not-working-trial-license/257185/5 "2020-12-03T08:07:55Z")

</div>

Hi @TimV,  
I try Elasticsearch 8.0.0 from source (github) to know if there is significant updates in the SIEM section as it's what I use ELastic for and then wait the release to update my cluster.

---

<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 31, 2020, 8:08am UTC](https://discuss.elastic.co/t/ip-filtering-and-security-audit-not-working-trial-license/257185/6 "2020-12-31T08:08:10Z")

</div>

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