# Examining the requests that are sent to ElasticSearch

**URL:** <https://discuss.elastic.co/t/examining-the-requests-that-are-sent-to-elasticsearch/9033>\
**Category:** Elasticsearch\
**Created:** [September 15, 2012, 1:29am UTC](https://discuss.elastic.co/t/examining-the-requests-that-are-sent-to-elasticsearch/9033 "2012-09-15T01:29:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Tran](https://avatars.discourse-cdn.com/v4/letter/k/439d5e/32.png) [@Kevin\_Tran](https://discuss.elastic.co/u/Kevin_Tran)\
**Post date:** [September 15, 2012, 1:29am UTC](https://discuss.elastic.co/t/examining-the-requests-that-are-sent-to-elasticsearch/9033/1 "2012-09-15T01:29:47Z")

</div>

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

--

---

<div class="post-metadata">

**Author:** ![thch](https://avatars.discourse-cdn.com/v4/letter/t/b2d939/32.png) [@thch](https://discuss.elastic.co/u/thch)\
**Post date:** [September 19, 2012, 2:37pm UTC](https://discuss.elastic.co/t/examining-the-requests-that-are-sent-to-elasticsearch/9033/2 "2012-09-19T14:37:55Z")

</div>

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

[http://java.net/projects/tcpmon](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

--

---

<div class="post-metadata">

**Author:** ![thch](https://avatars.discourse-cdn.com/v4/letter/t/b2d939/32.png) [@thch](https://discuss.elastic.co/u/thch)\
**Post date:** [September 19, 2012, 3:25pm UTC](https://discuss.elastic.co/t/examining-the-requests-that-are-sent-to-elasticsearch/9033/3 "2012-09-19T15:25:04Z")

</div>

A tool to Encode/Decode Get requests, logged by tcpmon, can be found here:  
[http://meyerweb.com/eric/tools/dencoder/](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](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

--

---

<div class="post-metadata">

**Author:** ![Kevin\_Tran](https://avatars.discourse-cdn.com/v4/letter/k/439d5e/32.png) [@Kevin\_Tran](https://discuss.elastic.co/u/Kevin_Tran)\
**Post date:** [September 20, 2012, 10:20am UTC](https://discuss.elastic.co/t/examining-the-requests-that-are-sent-to-elasticsearch/9033/4 "2012-09-20T10:20:04Z")

</div>

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](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

--

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:12am UTC](https://discuss.elastic.co/t/examining-the-requests-that-are-sent-to-elasticsearch/9033/5 "2017-07-06T03:12:10Z")

</div>


