# File beats in docker. How to access host logs?

**URL:** https://discuss.elastic.co/t/file-beats-in-docker-how-to-access-host-logs/127313
**Category:** Beats
**Tags:** filebeat
**Created:** [April 9, 2018, 11:31am UTC](https://discuss.elastic.co/t/file-beats-in-docker-how-to-access-host-logs/127313 "2018-04-09T11:31:04Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)
#### Post date: [April 9, 2018, 4:54pm UTC](https://discuss.elastic.co/t/file-beats-in-docker-how-to-access-host-logs/127313/2 "2018-04-09T16:54:32Z")

</div>

Exactly. Log files of the host are are available under `/var/lib/docker/containers`. You need to mount this in order to access them and use `docker` prospector to read.

---

_[View the full topic](https://discuss.elastic.co/t/file-beats-in-docker-how-to-access-host-logs/127313)._
