Comments (4)
Thanks for providing the PR. I'm currently travelling with limited bandwidth so please allow some days for reviewing.
from httpbeat.
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.
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.
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)
- support for beats 5.0.0 ? HOT 9
- json unmarshalling of large numbers HOT 2
- Elasticsearch plugin issue, missing json file HOT 6
- https issues HOT 14
- Problem in parsing Spring Boot Metrics HOT 3
- http beat consume > 2Gb of memory HOT 6
- Current date in httpbeat.yml HOT 1
- Connection error when sampling many URLs HOT 5
- Is it possible to include response time? HOT 1
- Does httpbeat support dynamic reloading of configuration files? HOT 1
- rpm package version doesn't match release version HOT 2
- timestamp config
- Making the template work for kibana HOT 20
- HTTP Status code in event doesn't match documentation
- Support returning HTTP status phrase
- Is it possible to set up a `config_dir` for conf files HOT 5
- NTLM Authentication HOT 1
- Add ability to prevent sending certain headers?
- No method specified error
- problems about Build, Test, Run HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from httpbeat.