# Logging.files.name not working in filebeat 8.7.1

**URL:** <https://discuss.elastic.co/t/logging-files-name-not-working-in-filebeat-8-7-1/333462>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 15, 2023, 1:06pm UTC](https://discuss.elastic.co/t/logging-files-name-not-working-in-filebeat-8-7-1/333462 "2023-05-15T13:06:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Weiyu\_Fang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weiyu_fang/32/121032_2.png) [@Weiyu\_Fang](https://discuss.elastic.co/u/Weiyu_Fang)\
**Post date:** [May 15, 2023, 1:06pm UTC](https://discuss.elastic.co/t/logging-files-name-not-working-in-filebeat-8-7-1/333462/1 "2023-05-15T13:06:50Z")

</div>

I upgraded my filebeat from 7.6 to 8.7, then I found the filebeat logs lost in my ES. I googled and found that [Beats logs are now ECS compliant](https://www.elastic.co/guide/en/beats/libbeat/current/breaking-changes-8.0.html#_beats_logs_are_now_ecs_compliant), which matches my situation where the logs name is like `filebeat-20230515.ndjson`.  
However, I still find the [logging.files.name](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-logging.html#_logging_files_name) config in filebeat 8.7. And I cannot work with this config:

```auto
logging.level: info
logging.to_files: true
logging.files:
  path: /var/log/filebeat
  name: filebeat
  keepfiles: 7
  permissions: 0640

```

So, how can I use the logging.files.name now when using filebeat 8.7.1? Do I misunderstand anything?  
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:** [June 12, 2023, 3:06pm UTC](https://discuss.elastic.co/t/logging-files-name-not-working-in-filebeat-8-7-1/333462/2 "2023-06-12T15:06:54Z")

</div>

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