FileBeat elasticsearch output, unable to add "host" to http headers


#1

configure file:

    headers:
        host: "datasearch"
        abc: "def"

I sniffer the network and find that "Abc" added to http header in every request,
but "Host" remains default value (someting like "120.76.205.241:8000")

I need to use specific value for "Host", or my elasticsearch server will return 404.


(Steffen Siering) #2

Checking the HTTP client APIs, the Host headers is actively filtered out by the stdlib and needs to configured in another place :frowning:

Please report this as bug.


#3

OK, reported. Thanks.


(system) #5

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