# Audit logs doc error or I'm confused

**URL:** <https://discuss.elastic.co/t/audit-logs-doc-error-or-im-confused/173403>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [March 21, 2019, 9:14pm UTC](https://discuss.elastic.co/t/audit-logs-doc-error-or-im-confused/173403 "2019-03-21T21:14:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [March 21, 2019, 9:14pm UTC](https://discuss.elastic.co/t/audit-logs-doc-error-or-im-confused/173403/1 "2019-03-21T21:14:23Z")

</div>

I added  
`xpack.security.audit.enabled: true`  
to my elasticsearch.yml

I expected to see cluster-name\_audit.log, but I found cluster\_name\_access.log. I finally found [doc](https://www.elastic.co/guide/en/elastic-stack-overview/current/auditing.html) explaining there should be both files, but I can't find any audit.log.

I guess the files would be the same, just duplicated?

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [March 26, 2019, 7:12am UTC](https://discuss.elastic.co/t/audit-logs-doc-error-or-im-confused/173403/2 "2019-03-26T07:12:05Z")

</div>

The name of the audit log file was changed to `<clustername>_index.log`in version 6.5, before that the file was named `<clustername>_access.log` but we kept the old file name around for compatibility reasons.

As mentioned in the doc you linked above (which is for version 6.6)

> For backwards compatibility reasons, a file named `<clustername>_access.log` is also generated.

This means that since you only see `<clustername>_access.log`, you are probably running Elasticsearch on a version before 6.5 and there is nothing wrong, or nothing more you need to do.

---

<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:** [April 23, 2019, 7:12am UTC](https://discuss.elastic.co/t/audit-logs-doc-error-or-im-confused/173403/3 "2019-04-23T07:12:11Z")

</div>

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