# Filebeat setup encounters bad json, but doesn't tell me what the problem is?

**URL:** <https://discuss.elastic.co/t/filebeat-setup-encounters-bad-json-but-doesnt-tell-me-what-the-problem-is/209119>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 22, 2019, 8:37pm UTC](https://discuss.elastic.co/t/filebeat-setup-encounters-bad-json-but-doesnt-tell-me-what-the-problem-is/209119 "2019-11-22T20:37:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![krainboltgreene](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krainboltgreene/32/37174_2.png) [@krainboltgreene](https://discuss.elastic.co/u/krainboltgreene)\
**Post date:** [November 22, 2019, 8:37pm UTC](https://discuss.elastic.co/t/filebeat-setup-encounters-bad-json-but-doesnt-tell-me-what-the-problem-is/209119/1 "2019-11-22T20:37:10Z")

</div>

> <https://gist.github.com/krainboltgreene/2d2894753edf270ad581877de987106d>

---

<div class="post-metadata">

**Author:** ![krainboltgreene](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krainboltgreene/32/37174_2.png) [@krainboltgreene](https://discuss.elastic.co/u/krainboltgreene)\
**Post date:** [November 22, 2019, 10:33pm UTC](https://discuss.elastic.co/t/filebeat-setup-encounters-bad-json-but-doesnt-tell-me-what-the-problem-is/209119/2 "2019-11-22T22:33:19Z")

</div>

Strangely, it looks like it's trying to request the host `kibana.mops.example.com:443` instead of using it as the port.

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [November 28, 2019, 3:14pm UTC](https://discuss.elastic.co/t/filebeat-setup-encounters-bad-json-but-doesnt-tell-me-what-the-problem-is/209119/3 "2019-11-28T15:14:25Z")

</div>

Could you please share the configuration and the debug output of `setup`? (`./filebeat setup -e -d "*"`)

---

<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 26, 2019, 3:14pm UTC](https://discuss.elastic.co/t/filebeat-setup-encounters-bad-json-but-doesnt-tell-me-what-the-problem-is/209119/4 "2019-12-26T15:14:34Z")

</div>

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