Heartbeat : log http response


(Guillaume) #1

Hi,

i made a very fancy /ping uri on my servers, to have jvm infos & more stuff
I wanted to use heartbeat to check status avaibility and stock the whole json response into ES documents

i cant find how to do this : any clue ?

Regards,
Guillaume


(Tudor Golubenco) #2

Sounds to me like the Metricbeat HTTP module is a better fit for that. Unfortunately it's only released in 6.0.0-alpha1 for the moment.


(Guillaume) #3

thx for your idea tudor, but how can i do a URL(and URI) monitoring with metricbeat?
No module seems to handle this feature..

Edit : my mistake: i looked at metricbeat and not http metricbeat

Edit 2 : same issue : https://www.elastic.co/guide/en/beats/metricbeat/master/metricbeat-metricset-http-json.html#_response_enabled

=> cant get response body to stock it as field


(Tudor Golubenco) #4

From my understanding, the stuff under http_json_namespace is the response body. Isn't that what you are looking for?


(Guillaume) #5

@tudor,

ty im gonna do some tests, and as you said, ill wait for a 6.0.0 non beta to industrialize it if its ok

thx again for pointing this!


(system) #6

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.