GithubHelp home page GithubHelp logo

Comments (6)

ClaudioConsolmagno avatar ClaudioConsolmagno commented on July 18, 2024

Facing the same issue, funnily enough when calling elastic apis:

[2019-09-10T18:08:00,312][ERROR][logstash.filters.http    ] error during HTTP request {:url=>"http://localhost:9200/_reindex", :code=>400, 
:response=>"{\"error\":{\"root_cause\":[{\"type\":\"content_type_header_exception\",\"reason\":\"java.lang.IllegalArgumentException: only one Content-Type header should be provided\"}],\"type\":\"content_type_header_exception\",
\"reason\":\"java.lang.IllegalArgumentException: only one Content-Type header should be provided\",\"caused_by\":{\"type\":\"illegal_argument_exception\",\"reason\":\"only one Content-Type header should be provided\"}},
\"status\":400}"}

Went back to using the old rest filter (https://github.com/lucashenning/logstash-filter-rest) as it doesn't have this issue.

from logstash-filter-http.

cc-stjm avatar cc-stjm commented on July 18, 2024

Would love to see a fix for this - possibly if you supply a content-type header, it overwrites the default

from logstash-filter-http.

MikeKemmerer avatar MikeKemmerer commented on July 18, 2024

Until the body_format config is removed in favor of a pure content-type config, I've submitted a pull request to add a body_format of 'form' to set the content-type header to application/x-www-form-urlencoded. Hopefully it's merged so I don't have to have a custom plugin installed across my fleet of logstash nodes.

from logstash-filter-http.

clodio avatar clodio commented on July 18, 2024

+1 to fix this issue

from logstash-filter-http.

chnry3921 avatar chnry3921 commented on July 18, 2024

i have the same problem, plugin logstash-filter-http when i maked the docker image
so the solution is ?

from logstash-filter-http.

ClaudioRifo avatar ClaudioRifo commented on July 18, 2024

Any news on this, I think I have hit this bug on the latest version.

from logstash-filter-http.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.