# Custum beat exemple in documentation problem

**URL:** <https://discuss.elastic.co/t/custum-beat-exemple-in-documentation-problem/94818>\
**Category:** Beats\
**Created:** [July 27, 2017, 3:02pm UTC](https://discuss.elastic.co/t/custum-beat-exemple-in-documentation-problem/94818 "2017-07-27T15:02:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![boubker\_elamri](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@boubker\_elamri](https://discuss.elastic.co/u/boubker_elamri)\
**Post date:** [July 27, 2017, 3:02pm UTC](https://discuss.elastic.co/t/custum-beat-exemple-in-documentation-problem/94818/1 "2017-07-27T15:02:16Z")

</div>

hi everyone,

I was learning how to create beats this days, and i found out an lsbeat exemple on the documentations, I followed the instruction one by one, and the lsbeat compiled with success. However, when I tried to execute the ./lsbeat it executes but i couldn't view the index on elasticsearch when I go to "localhost:9200/\_cat/indices. can someone help me please .

---

<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:** [July 27, 2017, 3:21pm UTC](https://discuss.elastic.co/t/custum-beat-exemple-in-documentation-problem/94818/2 "2017-07-27T15:21:05Z")

</div>

Hi,

can you try console or file output first (disable elasticsearch output), to verify your beat correctly creates events.

You can enable debug output by starting your beat with `-d '*'`.

Also check the logs for `ERR` messages. Maybe the problem is the connection or template loading?

---

<div class="post-metadata">

**Author:** ![boubker\_elamri](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@boubker\_elamri](https://discuss.elastic.co/u/boubker_elamri)\
**Post date:** [July 27, 2017, 3:36pm UTC](https://discuss.elastic.co/t/custum-beat-exemple-in-documentation-problem/94818/3 "2017-07-27T15:36:25Z")

</div>

hi,

Thanks for the response, I tried to do "./lsbeat -d "\*" but the terminal  
doesn't show the debugging.  
thanks

---

<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:** [July 27, 2017, 3:39pm UTC](https://discuss.elastic.co/t/custum-beat-exemple-in-documentation-problem/94818/4 "2017-07-27T15:39:52Z")

</div>

Oh Sorry, you have to use `-e` to print to stderr.

---

<div class="post-metadata">

**Author:** ![boubker\_elamri](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@boubker\_elamri](https://discuss.elastic.co/u/boubker_elamri)\
**Post date:** [July 27, 2017, 3:43pm UTC](https://discuss.elastic.co/t/custum-beat-exemple-in-documentation-problem/94818/5 "2017-07-27T15:43:25Z")

</div>

Also -e doesn't work.

---

<div class="post-metadata">

**Author:** ![boubker\_elamri](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@boubker\_elamri](https://discuss.elastic.co/u/boubker_elamri)\
**Post date:** [July 28, 2017, 10:34am UTC](https://discuss.elastic.co/t/custum-beat-exemple-in-documentation-problem/94818/6 "2017-07-28T10:34:54Z")

</div>

i found out the solution, i had a problem on the main.go code  
thanks for the help  
best regards

---

<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 17, 2017, 3:02pm UTC](https://discuss.elastic.co/t/custum-beat-exemple-in-documentation-problem/94818/7 "2017-08-17T15:02:16Z")

</div>

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