Examining the requests that are sent to ElasticSearch


(Kevin Tran) #1

I am using Django Haystack with ElasticSearch for my Web application.

I hit a problem where using Haystack's rebuild_index command in certain
environments results in an ElasticSearch index that does not match the
structure it should.

I want to check exactly what requests are being sent to ElasticSearch. Is
there a way for me to log requests sent to ElasticSearch or otherwise see
what is being received?

I am using:
ElasticSearch 0.19.9
Django 1.4.1
Haystack 2.0.0-beta
Mac OS X 10.7

--


(thch) #2

Sometimes i use tcpmon to control tcp requests/responses while developing.

http://java.net/projects/tcpmon

Am Samstag, 15. September 2012 03:29:47 UTC+2 schrieb Kevin Tran:

I am using Django Haystack with ElasticSearch for my Web application.

I hit a problem where using Haystack's rebuild_index command in certain
environments results in an ElasticSearch index that does not match the
structure it should.

I want to check exactly what requests are being sent to ElasticSearch. Is
there a way for me to log requests sent to ElasticSearch or otherwise see
what is being received?

I am using:
ElasticSearch 0.19.9
Django 1.4.1
Haystack 2.0.0-beta
Mac OS X 10.7

--


(thch) #3

A tool to Encode/Decode Get requests, logged by tcpmon, can be found here:
http://meyerweb.com/eric/tools/dencoder/

Am Mittwoch, 19. September 2012 16:37:55 UTC+2 schrieb thch:

Sometimes i use tcpmon to control tcp requests/responses while developing.

http://java.net/projects/tcpmon

Am Samstag, 15. September 2012 03:29:47 UTC+2 schrieb Kevin Tran:

I am using Django Haystack with ElasticSearch for my Web application.

I hit a problem where using Haystack's rebuild_index command in certain
environments results in an ElasticSearch index that does not match the
structure it should.

I want to check exactly what requests are being sent to ElasticSearch. Is
there a way for me to log requests sent to ElasticSearch or otherwise see
what is being received?

I am using:
ElasticSearch 0.19.9
Django 1.4.1
Haystack 2.0.0-beta
Mac OS X 10.7

--


(Kevin Tran) #4

tcpmon was exactly what I needed to solve the problem!

On Wednesday, September 19, 2012 7:37:55 AM UTC-7, thch wrote:

Sometimes i use tcpmon to control tcp requests/responses while developing.

http://java.net/projects/tcpmon

Am Samstag, 15. September 2012 03:29:47 UTC+2 schrieb Kevin Tran:

I am using Django Haystack with ElasticSearch for my Web application.

I hit a problem where using Haystack's rebuild_index command in certain
environments results in an ElasticSearch index that does not match the
structure it should.

I want to check exactly what requests are being sent to ElasticSearch. Is
there a way for me to log requests sent to ElasticSearch or otherwise see
what is being received?

I am using:
ElasticSearch 0.19.9
Django 1.4.1
Haystack 2.0.0-beta
Mac OS X 10.7

--


(system) #5