# Filebeat hangs on starting - ubuntu:trusty

**URL:** <https://discuss.elastic.co/t/filebeat-hangs-on-starting-ubuntu-trusty/60370>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 13, 2016, 11:18am UTC](https://discuss.elastic.co/t/filebeat-hangs-on-starting-ubuntu-trusty/60370 "2016-09-13T11:18:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![myles-mcdonnell](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@myles-mcdonnell](https://discuss.elastic.co/u/myles-mcdonnell)\
**Post date:** [September 13, 2016, 11:18am UTC](https://discuss.elastic.co/t/filebeat-hangs-on-starting-ubuntu-trusty/60370/1 "2016-09-13T11:18:29Z")

</div>

I am building a docker image to run filebeat which will via a shared volume harvest all the log files output from the other services running in containers on the host. However, it appears to hang on startup. Relevant file content below. I have confirmed that the path to the log file is available as is ELS on port 9200.

DOCKERFILE:

```
FROM ubuntu:trusty
RUN mkdir /filebeat
WORKDIR /filebeat
RUN apt-get update
RUN apt-get install -y wget
RUN wget https://download.elastic.co/beats/filebeat/filebeat_1.3.0_amd64.deb
RUN dpkg -i filebeat_1.3.0_amd64.deb
COPY ./filebeat.yml /filebeat/filebeat.yml
COPY ./start_filebeat.sh /filebeat/start_filebeat.sh
RUN chmod +x /filebeat/start_filebeat.sh
CMD /filebeat/start_filebeat.sh

```

START\_FILEBEAT.SH

```
#!/usr/bin/env bash

echo "Waiting 10s to allow deployer to interrupt"
sleep 10
if [-f /mnt/mesos/sandbox/filebeat.yml]; then
  echo "Copying config files from mesos sandbox..."
  rm -rf ./filebeat.yml
  ln -s /mnt/mesos/sandbox /filebeat
fi
echo "Using config ..."
cat /filebeat/filebeat.yml
echo "Starting ..."
filebeat -e -c /filebeat/filebeat.yml

```

FILEBEAT.YML

```
filebeat:
  prospectors:
    -
      paths:
        - /mnt/logshr/*.log
      input_type: log
  registry_file: /var/lib/filebeat/registry
output:
  elasticsearch:
    hosts: ["192.168.99.100:9200"]
shipper:
logging:
  to_syslog: false
  to_files: false
```

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 13, 2016, 11:51am UTC](https://discuss.elastic.co/t/filebeat-hangs-on-starting-ubuntu-trusty/60370/2 "2016-09-13T11:51:12Z")

</div>

What's in the Docker container's log? What if you increase the log level by starting Filebeat with `-d "*"`?

---

<div class="post-metadata">

**Author:** ![myles-mcdonnell](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@myles-mcdonnell](https://discuss.elastic.co/u/myles-mcdonnell)\
**Post date:** [September 13, 2016, 12:15pm UTC](https://discuss.elastic.co/t/filebeat-hangs-on-starting-ubuntu-trusty/60370/3 "2016-09-13T12:15:48Z")

</div>

..it's working fine. I had incorrectly assumed that no message after 'starting...' meant it had hanged. 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:** [October 4, 2016, 11:18am UTC](https://discuss.elastic.co/t/filebeat-hangs-on-starting-ubuntu-trusty/60370/4 "2016-10-04T11:18:59Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
