# Audit logs on ES 7.16.3

**URL:** <https://discuss.elastic.co/t/audit-logs-on-es-7-16-3/297190>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [February 14, 2022, 8:13pm UTC](https://discuss.elastic.co/t/audit-logs-on-es-7-16-3/297190 "2022-02-14T20:13:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dominbdg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dominbdg/32/102457_2.png) [@dominbdg](https://discuss.elastic.co/u/dominbdg)\
**Post date:** [February 14, 2022, 8:13pm UTC](https://discuss.elastic.co/t/audit-logs-on-es-7-16-3/297190/1 "2022-02-14T20:13:25Z")

</div>

Hello,  
Last time I upgraded ES to latest version 7.16.3,  
The problem which I have is define audit logs,  
I have below config:

```auto
xpack.security.audit.enabled: true
    xpack.security.audit.logfile.emit_node_name: true
    xpack.security.audit.logfile.events.include: "anonymous_access_denied, authentication_success, authentication_failed, realm_authentication_failed, access_denied, run_as_granted, run_as_denied, tampered_request, connection_granted, connection_denied"

```

the problem which I have - I cannot find audit.log output file, I don't know how to define it,  
When I try to use appender:

```auto
xpack.security.audit.appender.layout.type: json
xpack.security.audit.appender.fileName: /usr/share/elasticsearch/audit.log

```

I'm getting an error in ES.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [February 14, 2022, 8:41pm UTC](https://discuss.elastic.co/t/audit-logs-on-es-7-16-3/297190/2 "2022-02-14T20:41:28Z")

</div>

What error are you getting? Do you have a paid License? Audit Logs needs at least a Gold License.

---

<div class="post-metadata">

**Author:** ![dominbdg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dominbdg/32/102457_2.png) [@dominbdg](https://discuss.elastic.co/u/dominbdg)\
**Post date:** [February 14, 2022, 9:30pm UTC](https://discuss.elastic.co/t/audit-logs-on-es-7-16-3/297190/3 "2022-02-14T21:30:24Z")

</div>

I have trial license which normally is working for logs in kibana (gold license) but I don't know how to configure ES to point where logs are stored.

---

<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:** [March 14, 2022, 9:30pm UTC](https://discuss.elastic.co/t/audit-logs-on-es-7-16-3/297190/4 "2022-03-14T21:30:31Z")

</div>

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