# Run packetbeat on ubuntu error

**URL:** https://discuss.elastic.co/t/run-packetbeat-on-ubuntu-error/57542
**Category:** Beats
**Created:** [August 9, 2016, 2:31am UTC](https://discuss.elastic.co/t/run-packetbeat-on-ubuntu-error/57542 "2016-08-09T02:31:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![617726909](https://avatars.discourse-cdn.com/v4/letter/6/ee59a6/32.png) [@617726909](https://discuss.elastic.co/u/617726909)
#### Post date: [August 9, 2016, 2:31am UTC](https://discuss.elastic.co/t/run-packetbeat-on-ubuntu-error/57542/1 "2016-08-09T02:31:53Z")

</div>

**OS:** Ubuntu 12.04.2 LTS (GNU/Linux 3.5.0-23-generic i686)  
\*\*version:\*\*packetbeat-1.2.3-x86\_64  
\*\*cmd:\*\*sudo ./packetbeat -e -c packetbeat.yml -d "publish"  
_ **error:** _  
./packetbeat: 1: ./packetbeat: Syntax error: word unexpected (expecting ")")

---

<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: [August 9, 2016, 8:46am UTC](https://discuss.elastic.co/t/run-packetbeat-on-ubuntu-error/57542/2 "2016-08-09T08:46:45Z")

</div>

And what's the contents of packetbeat.yml? Make sure you format the configuration file as code when you post here.

---

<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: [August 30, 2016, 2:31am UTC](https://discuss.elastic.co/t/run-packetbeat-on-ubuntu-error/57542/3 "2016-08-30T02:31:58Z")

</div>

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