# Packetbeat configtest error

**URL:** https://discuss.elastic.co/t/packetbeat-configtest-error/96598
**Category:** Beats
**Tags:** packetbeat
**Created:** [August 10, 2017, 11:41am UTC](https://discuss.elastic.co/t/packetbeat-configtest-error/96598 "2017-08-10T11:41:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)
#### Post date: [August 10, 2017, 11:41am UTC](https://discuss.elastic.co/t/packetbeat-configtest-error/96598/1 "2017-08-10T11:41:26Z")

</div>

packetbeat configtest error

$ sudo ./packetbeat -configtest -e  
packetbeat2017/08/10 11:37:52.442668 beat.go:339: CRIT Exiting: error loading config file: stat packetbeat.yml: no such file or directory  
Exiting: error loading config file: stat packetbeat.yml: no such file or directory

1- Im using packetbeat in Ubuntu 16.04 and packetbeat 5.5.0

- Packetbeat home directory is in /usr/share/packetbeat/bin/
- Packetbeat yml is in /etc/packetbeat/packetbeat.yml

2- What command should i use for configtest packetbeat ?

---

<div class="post-metadata">

### Author: ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)
#### Post date: [August 10, 2017, 11:44am UTC](https://discuss.elastic.co/t/packetbeat-configtest-error/96598/2 "2017-08-10T11:44:45Z")

</div>

any idea?

---

<div class="post-metadata">

### Author: ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)
#### Post date: [August 10, 2017, 12:26pm UTC](https://discuss.elastic.co/t/packetbeat-configtest-error/96598/3 "2017-08-10T12:26:45Z")

</div>

i solved this issue, this is the command  
sudo ./packetbeat -configtest -e -c /etc/packetbeat/packetbeat.yml

---

<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: [September 7, 2017, 12:26pm UTC](https://discuss.elastic.co/t/packetbeat-configtest-error/96598/4 "2017-09-07T12:26:48Z")

</div>

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