# Packetbeat not running

**URL:** https://discuss.elastic.co/t/packetbeat-not-running/66953
**Category:** Beats
**Tags:** packetbeat
**Created:** [November 23, 2016, 8:25am UTC](https://discuss.elastic.co/t/packetbeat-not-running/66953 "2016-11-23T08:25:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kumar21000](https://avatars.discourse-cdn.com/v4/letter/k/3d9bf3/32.png) [@kumar21000](https://discuss.elastic.co/u/kumar21000)
#### Post date: [November 23, 2016, 8:25am UTC](https://discuss.elastic.co/t/packetbeat-not-running/66953/1 "2016-11-23T08:25:24Z")

</div>

I am trying to run packetbeat in centos 7, while running I am getting the below error

[root@packetbeat]# cat /var/log/packetbeat/packetbeat  
2016-11-23T11:50:50+04:00 INFO Setup Beat: packetbeat; Version: 5.0.1  
2016-11-23T11:50:50+04:00 INFO Loading template enabled. Reading template file: /etc/packetbeat/packetbeat.template.json  
2016-11-23T11:50:50+04:00 INFO Loading template enabled for Elasticsearch 2.x. Reading template file: /etc/packetbeat/packetbeat.template-es2x.json  
2016-11-23T11:50:50+04:00 ERR failed to initialize elasticsearch plugin as output: missing required field accessing 'output.elasticsearch.hosts'  
2016-11-23T11:50:50+04:00 CRIT Exiting: error initializing publisher: missing required field accessing 'output.elasticsearch.hosts'

in my packetbeat.yml I have specified elasticsearch

output.elasticsearch:

# Array of hosts to connect to.

hosts: ["x.x.x.x:xxxx"]

I am not sure what I am missing, any idea?

---

<div class="post-metadata">

### Author: ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)
#### Post date: [November 23, 2016, 10:01am UTC](https://discuss.elastic.co/t/packetbeat-not-running/66953/2 "2016-11-23T10:01:16Z")

</div>

the config file format (yaml) is sensitive to use of spaces and tabs. Looks like you did not indent `hosts` correctly.

---

<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: [December 21, 2016, 10:01am UTC](https://discuss.elastic.co/t/packetbeat-not-running/66953/3 "2016-12-21T10:01:27Z")

</div>

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