# Undefined: publisher.Client missing from go imports

**URL:** <https://discuss.elastic.co/t/undefined-publisher-client-missing-from-go-imports/202731>\
**Category:** Beats\
**Tags:** beats-development\
**Created:** [October 8, 2019, 9:15pm UTC](https://discuss.elastic.co/t/undefined-publisher-client-missing-from-go-imports/202731 "2019-10-08T21:15:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dakoller](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakoller/32/55564_2.png) [@dakoller](https://discuss.elastic.co/u/dakoller)\
**Post date:** [October 8, 2019, 9:15pm UTC](https://discuss.elastic.co/t/undefined-publisher-client-missing-from-go-imports/202731/1 "2019-10-08T21:15:52Z")

</div>

I followed the beats tutorial at [https://www.elastic.co/guide/en/beats/devguide/current/beater-interface.html](https://www.elastic.co/guide/en/beats/devguide/current/beater-interface.html) and my go file gives an error at publisher.Client() ... obviously the import is missing.

my imports:  
import (  
"fmt"  
"time"

```
"github.com/elastic/beats/libbeat/publisher"

"github.com/dakoller/awscostbeat/config"
"github.com/elastic/beats/libbeat/beat"
"github.com/elastic/beats/libbeat/common"
"github.com/elastic/beats/libbeat/logp"

```

)

..any idea where the publisher import can be found?

(beats 7.4 / mac os)

---

<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:** [November 5, 2019, 9:21pm UTC](https://discuss.elastic.co/t/undefined-publisher-client-missing-from-go-imports/202731/2 "2019-11-05T21:21:40Z")

</div>

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