Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/etc/hosts entries ignored in beta3 #225

Closed
NITEMAN opened this issue Sep 3, 2015 · 2 comments · Fixed by elastic/beats-packer#1
Closed

/etc/hosts entries ignored in beta3 #225

NITEMAN opened this issue Sep 3, 2015 · 2 comments · Fixed by elastic/beats-packer#1
Labels

Comments

@NITEMAN
Copy link

NITEMAN commented Sep 3, 2015

Just upgraded to beta3 package (a bit risky I assume since it's not advertised on downloads page) and now my, up to date almost working setup, is broken.

I'm getting:

Sep  3 21:13:18 mymachine /usr/bin/packetbeat[6109]: output.go:150: Fail to perform many index operations in a single API call: PerformRequest fails: Sending the request fails: Post http://myelasticsearch.mydomain.es:80/_bulk: dial tcp: lookup myelasticsearch.mydomain.es: no such host

Despite curl on the same machine is working as espected:

root@mymachine:/home/myuser# curl myelasticsearch.mydomain.es
{
  "status" : 200,
  "name" : "destmachine-es01",
  "cluster_name" : "elasticsearch",
  "version" : {
    "number" : "1.7.1",
    "build_hash" : "b88f43fc40b0bcd7f173a1f9ee2e97816de80b19",
    "build_timestamp" : "2015-07-29T09:54:16Z",
    "build_snapshot" : false,
    "lucene_version" : "4.10.4"
  },
  "tagline" : "You Know, for Search"
}
@tsg tsg added the bug label Sep 3, 2015
@tsg
Copy link
Contributor

tsg commented Sep 3, 2015

Thanks for the report. I think it's because we statically compile now, I'll try to fix it.

tsg pushed a commit to tsg/beats-packer that referenced this issue Sep 4, 2015
We used to compile on a recent ubuntu version, which is needed for
cross-compiling to Windows and OS X. This poses the problem that it links
against a relatively recent version of libc, so the resulting binary cannot work
on older linux distributions. To work around this issue we tried to compile
statically linked binaries. Unfortunately, statically linking against libc
breaks in part the name resolution, in particular resolving the names from
/etc/hosts.

This pull requests makes 2 Docker images: one based on ubuntu for cross
compiling to os x and windows and one based on debian 6 for compiling for Linux
(both 32 and 64 bits versions). Libpcap continues to be statically linked for
Linux.

Because the Dockerfiles have drifted quite a bit from the versions from XGO, I
moved them to this repository.

This closes elastic/beats#225.
@tsg
Copy link
Contributor

tsg commented Sep 4, 2015

We've now released beta3 without this issue, see the commit above to the building system. Thanks again for reporting it even before we released it :-).

@tsg tsg closed this as completed Sep 4, 2015
ruflin added a commit that referenced this issue Dec 2, 2015
make bulk publisher not send empty events
ruflin added a commit that referenced this issue Dec 2, 2015
…s-compile

Update appveyor configuration to publish cross-compiled artifacts.
tsg pushed a commit to tsg/beats that referenced this issue Jan 20, 2016
make bulk publisher not send empty events
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants