# Indexing a document from a remote server

**URL:** <https://discuss.elastic.co/t/indexing-a-document-from-a-remote-server/12383>\
**Category:** Elasticsearch\
**Created:** [June 12, 2013, 2:41pm UTC](https://discuss.elastic.co/t/indexing-a-document-from-a-remote-server/12383 "2013-06-12T14:41:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Haynes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tim_haynes/32/2280_2.png) [@Tim\_Haynes](https://discuss.elastic.co/u/Tim_Haynes)\
**Post date:** [June 12, 2013, 2:41pm UTC](https://discuss.elastic.co/t/indexing-a-document-from-a-remote-server/12383/1 "2013-06-12T14:41:56Z")

</div>

Hi,

We currently have a simple cluster of 3 ES nodes, pretty much installed on  
each machine out of the box.

I have some PHP code that pulls documents out of mongodb and using curl  
'PUTS' them back into ES, this all works perfectly.

The issue comes about when the same code runs from a remote server outside  
of the network, I can communicate with ES and run queries from that  
machine, but when I come to either add a new document or remove a document  
it fails to do so, but doesn't give me an error message or anything to  
suggest it has failed.

Any help gladly received!

Many thanks,

Tim

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [June 12, 2013, 2:51pm UTC](https://discuss.elastic.co/t/indexing-a-document-from-a-remote-server/12383/2 "2013-06-12T14:51:33Z")

</div>

Are you running elasticsearch behind a firewall/load-balancer? They might  
be configured to filter out POST/PUT/DELETE HTTP requests. Are your queries  
GET requests? Try changing them to POST to test out the theory.

--  
Ivan

On Wed, Jun 12, 2013 at 7:41 AM, Tim Haynes [tim.thaynes@gmail.com](mailto:tim.thaynes@gmail.com) wrote:

> Hi,
> 
> We currently have a simple cluster of 3 ES nodes, pretty much installed on  
> each machine out of the box.
> 
> I have some PHP code that pulls documents out of mongodb and using curl  
> 'PUTS' them back into ES, this all works perfectly.
> 
> The issue comes about when the same code runs from a remote server outside  
> of the network, I can communicate with ES and run queries from that  
> machine, but when I come to either add a new document or remove a document  
> it fails to do so, but doesn't give me an error message or anything to  
> suggest it has failed.
> 
> Any help gladly received!
> 
> Many thanks,
> 
> Tim
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:31am UTC](https://discuss.elastic.co/t/indexing-a-document-from-a-remote-server/12383/3 "2017-07-06T02:31:33Z")

</div>

Closed on July 6, 2017, 2:31am UTC


