# How to export beat name instead of hostname for beat.name field

**URL:** <https://discuss.elastic.co/t/how-to-export-beat-name-instead-of-hostname-for-beat-name-field/56026>\
**Category:** Beats\
**Created:** [July 20, 2016, 8:27pm UTC](https://discuss.elastic.co/t/how-to-export-beat-name-instead-of-hostname-for-beat-name-field/56026 "2016-07-20T20:27:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bklise](https://avatars.discourse-cdn.com/v4/letter/b/3da27b/32.png) [@bklise](https://discuss.elastic.co/u/bklise)\
**Post date:** [July 20, 2016, 8:27pm UTC](https://discuss.elastic.co/t/how-to-export-beat-name-instead-of-hostname-for-beat-name-field/56026/1 "2016-07-20T20:27:33Z")

</div>

I apologize if this is a duplicate, but I was unable to find a solution.

For the [beat.name](http://beat.name) field of my beat's output, it is using my hostname instead of the beat name:

```auto
"beat":{
    "hostname":"bklise",
    "name":"bklise"
},

```

I have the shipper name set in my configuration file:

```auto
shipper:
  name: "cassandrabeat"

```

yet it still outputs my hostname instead. Any suggestions on how to export my beat's name for the [beat.name](http://beat.name) field?

---

<div class="post-metadata">

**Author:** ![jpcarey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpcarey/32/46668_2.png) [@jpcarey](https://discuss.elastic.co/u/jpcarey)\
**Post date:** [July 20, 2016, 8:54pm UTC](https://discuss.elastic.co/t/how-to-export-beat-name-instead-of-hostname-for-beat-name-field/56026/2 "2016-07-20T20:54:28Z")

</div>

Which particular beat is this for?

---

<div class="post-metadata">

**Author:** ![bklise](https://avatars.discourse-cdn.com/v4/letter/b/3da27b/32.png) [@bklise](https://discuss.elastic.co/u/bklise)\
**Post date:** [July 20, 2016, 9:00pm UTC](https://discuss.elastic.co/t/how-to-export-beat-name-instead-of-hostname-for-beat-name-field/56026/3 "2016-07-20T21:00:01Z")

</div>

It's a beat I made called [cassandrabeat](https://www.github.com/goomzee/cassandrabeat).

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [July 20, 2016, 11:38pm UTC](https://discuss.elastic.co/t/how-to-export-beat-name-instead-of-hostname-for-beat-name-field/56026/5 "2016-07-20T23:38:07Z")

</div>

What version of libbeat is cassandrabeat built upon? In 5.x (master branch) the config format has changed and `name` is no longer under `shipper`. See [https://github.com/elastic/beats/blob/dff726c/libbeat/\_meta/config.yml#L6](https://github.com/elastic/beats/blob/dff726c/libbeat/_meta/config.yml#L6)

---

<div class="post-metadata">

**Author:** ![bklise](https://avatars.discourse-cdn.com/v4/letter/b/3da27b/32.png) [@bklise](https://discuss.elastic.co/u/bklise)\
**Post date:** [July 21, 2016, 3:34pm UTC](https://discuss.elastic.co/t/how-to-export-beat-name-instead-of-hostname-for-beat-name-field/56026/6 "2016-07-21T15:34:03Z")

</div>

Cassandrabeat is built upon libbeat version 5.0.0-alpha4. After changing my config file to the new config format the beat name is appearing correctly.

Thanks

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [July 21, 2016, 4:32pm UTC](https://discuss.elastic.co/t/how-to-export-beat-name-instead-of-hostname-for-beat-name-field/56026/7 "2016-07-21T16:32:41Z")

</div>



---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [July 24, 2016, 9:01pm UTC](https://discuss.elastic.co/t/how-to-export-beat-name-instead-of-hostname-for-beat-name-field/56026/8 "2016-07-24T21:01:33Z")

</div>

@bklise Glad it is working now. It would be nice if you could add cassandrabeat also to our community beats list: [https://github.com/elastic/beats/blob/master/libbeat/docs/communitybeats.asciidoc](https://github.com/elastic/beats/blob/master/libbeat/docs/communitybeats.asciidoc) In addition, it sounds like cassandrabeat could be a potential addition to metricbeat: [https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-developer-guide.html](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-developer-guide.html)
