Coder Social home page Coder Social logo

Comments (4)

christiangalsterer avatar christiangalsterer commented on August 24, 2024

Thanks for providing the PR. I'm currently travelling with limited bandwidth so please allow some days for reviewing.

from httpbeat.

christiangalsterer avatar christiangalsterer commented on August 24, 2024

Have just looked a little bit into it and would have the following question.
Have you tried to set the codec value in the logstash beats input plugin (https://www.elastic.co/guide/en/logstash/current/plugins-inputs-beats.html#plugins-inputs-beats-codec)? If you said this to json then the body should get rendered as json (not tested).

from httpbeat.

ddrozdov avatar ddrozdov commented on August 24, 2024

I use the elasticsearch output for the beat, not the logstash one.
The thing is that the event itself is sent to elasticsearch as JSON, but the body field is of string type in the code, so whatever is there in the body is escaped when being serialized to JSON.

from httpbeat.

theredcat avatar theredcat commented on August 24, 2024

For reference, this is what i'm using in logstash to do this (I've set my document_type to httpbeat_json) :

filter {
  if [type] == "httpbeat_json" {
    json {
      source => "response[body]"
      target => "doc"
      remove_field => [ "response[body]" ]
    }
  }
}

from httpbeat.

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.