# Topbeat from master

**URL:** <https://discuss.elastic.co/t/topbeat-from-master/39804>\
**Category:** Beats\
**Created:** [January 21, 2016, 5:13pm UTC](https://discuss.elastic.co/t/topbeat-from-master/39804 "2016-01-21T17:13:36Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![biswajit86](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@biswajit86](https://discuss.elastic.co/u/biswajit86)\
**Post date:** [January 21, 2016, 5:13pm UTC](https://discuss.elastic.co/t/topbeat-from-master/39804/1 "2016-01-21T17:13:36Z")

</div>

Is there any documentation on how to build topbeat from master

I am interested in testing out the [feature for command line options](https://github.com/elastic/beats/issues/702) and would like to build a new binary from the source

If it helps, I usually download the Linux 64 bit package to install topbeat

---

<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:** [January 22, 2016, 2:00pm UTC](https://discuss.elastic.co/t/topbeat-from-master/39804/2 "2016-01-22T14:00:30Z")

</div>

You can try from nightlies if you want to: [https://beats-nightlies.s3.amazonaws.com/index.html?prefix=topbeat/](https://beats-nightlies.s3.amazonaws.com/index.html?prefix=topbeat/)

I'm not sure if feature is included in nightlies yet.

---

<div class="post-metadata">

**Author:** ![biswajit86](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@biswajit86](https://discuss.elastic.co/u/biswajit86)\
**Post date:** [January 22, 2016, 4:00pm UTC](https://discuss.elastic.co/t/topbeat-from-master/39804/3 "2016-01-22T16:00:36Z")

</div>

Thanks but S3 is blockedby our firewall policy. 🙂

So I compiled it from source using make .

---

<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:** [January 24, 2016, 6:57pm UTC](https://discuss.elastic.co/t/topbeat-from-master/39804/4 "2016-01-24T18:57:44Z")

</div>

@biswajit86 I'm glad you found the docs or figured it out yourself. It is definitively not 100% obvious that you have to search for these docs on [CONTRIBUTING.md](http://CONTRIBUTING.md), but no sure what a better place would be.

For documentation in case someone else stumbles over this thread, the docs on how to build it can be found here: [https://github.com/elastic/beats/blob/master/CONTRIBUTING.md](https://github.com/elastic/beats/blob/master/CONTRIBUTING.md)

---

<div class="post-metadata">

**Author:** ![biswajit86](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@biswajit86](https://discuss.elastic.co/u/biswajit86)\
**Post date:** [January 24, 2016, 9:38pm UTC](https://discuss.elastic.co/t/topbeat-from-master/39804/5 "2016-01-24T21:38:55Z")

</div>

- There should atleast be a one-liner/hyperlink in [READEMe.md](http://READEMe.md) that points to "how to build from source ". Its not always intuitive to get "build from source" instructions form [contributing.md](http://contributing.md).

- Also if you follow the steps for `make` command, you only get the topbeat binary. It does not generate the correspoding config files . If there are extra params/switches in the config file, it will be unobvious to the user. The make command should be modified (IMO) to generate the corresponding config file.

---

<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:** [January 25, 2016, 8:00am UTC](https://discuss.elastic.co/t/topbeat-from-master/39804/6 "2016-01-25T08:00:42Z")

</div>

Thanks for the feedback. I like the suggestion of the first point. What do you think @dedemorton ?

For the config file, why not take the checked in file under [https://github.com/elastic/beats/blob/master/topbeat/etc/topbeat.yml](https://github.com/elastic/beats/blob/master/topbeat/etc/topbeat.yml) ?

---

<div class="post-metadata">

**Author:** ![biswajit86](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@biswajit86](https://discuss.elastic.co/u/biswajit86)\
**Post date:** [January 25, 2016, 4:18pm UTC](https://discuss.elastic.co/t/topbeat-from-master/39804/7 "2016-01-25T16:18:44Z")

</div>

The topbeat yml can be taken from master. My point was that instead of end users trying to figure out where to pick individual files from, a target directory created as an output of `make` command can automatically add the usual files found in a package, which for now are the topbeat binary, the config file and the json template

---

<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:** [January 25, 2016, 7:27pm UTC](https://discuss.elastic.co/t/topbeat-from-master/39804/8 "2016-01-25T19:27:08Z")

</div>

I see. We have very similar functionality in our beats-packer that also generates the packages itself, but not based on the standard make command: [https://github.com/elastic/beats/tree/master/dev-tools/packer](https://github.com/elastic/beats/tree/master/dev-tools/packer) An other solution would be to improve the docs on where to find the files (in case the docs are read 😉 ). Thanks for the inputs.

---

<div class="post-metadata">

**Author:** ![biswajit86](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@biswajit86](https://discuss.elastic.co/u/biswajit86)\
**Post date:** [January 26, 2016, 12:45am UTC](https://discuss.elastic.co/t/topbeat-from-master/39804/9 "2016-01-26T00:45:23Z")

</div>

no probs. happy to help

---

<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:** [July 5, 2017, 9:56pm UTC](https://discuss.elastic.co/t/topbeat-from-master/39804/10 "2017-07-05T21:56:22Z")

</div>


