# Do I need a server to Elasticsearch?

**URL:** <https://discuss.elastic.co/t/do-i-need-a-server-to-elasticsearch/23985>\
**Category:** Elasticsearch\
**Created:** [June 19, 2015, 1:01pm UTC](https://discuss.elastic.co/t/do-i-need-a-server-to-elasticsearch/23985 "2015-06-19T13:01:32Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![TBDK](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@TBDK](https://discuss.elastic.co/u/TBDK)\
**Post date:** [June 19, 2015, 1:01pm UTC](https://discuss.elastic.co/t/do-i-need-a-server-to-elasticsearch/23985/1 "2015-06-19T13:01:32Z")

</div>

Hi, Really new to this and I have to ask if I have to have a server,like IIS or something similar, to ES.I want to access some XBRL files on a web service, and my first goal is just sending queries to retrieve the info.  
further more I have some CORS issues, and I tried the;

```
 *$ grep cors elasticsearch-1.4.0.Beta1/config/elasticsearch.yml*
*http.cors.allow-origin: "/.*/"*
*http.cors.enabled: true*`indent preformatted text by 4 spaces`

```

But this didn't solve my problems.

Any suggestions and good advice is more than welcome.  
-Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 20, 2015, 1:30am UTC](https://discuss.elastic.co/t/do-i-need-a-server-to-elasticsearch/23985/2 "2015-06-20T01:30:42Z")

</div>

Any reason you are using the 1.4 beta?

ES doesn't need a web server in front of it, no.  
However what your problems are is not very clear, can you please elaborate?

---

<div class="post-metadata">

**Author:** ![TBDK](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@TBDK](https://discuss.elastic.co/u/TBDK)\
**Post date:** [June 22, 2015, 6:37am UTC](https://discuss.elastic.co/t/do-i-need-a-server-to-elasticsearch/23985/3 "2015-06-22T06:37:33Z")

</div>

Hi Warkolm, thanks for reply. My fault, I copy pasted the info from a site and not from my ES. I'm still using the 1.5.2. I have working on gaining access to some XML files from a remote server, and I couldn't figure it out. It turned out that they weren't accessible for the last 2-3 weeks :):)🙂

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 22, 2015, 2:19pm UTC](https://discuss.elastic.co/t/do-i-need-a-server-to-elasticsearch/23985/4 "2015-06-22T14:19:38Z")

</div>

> I have working on gaining access to some XML files from a remote server

I don't think this part is very clear. Could you explain in more detail what you're trying to do? What software component should access the XML files? What should be done with the files and how should they be processed?

---

<div class="post-metadata">

**Author:** ![TBDK](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@TBDK](https://discuss.elastic.co/u/TBDK)\
**Post date:** [June 23, 2015, 7:02am UTC](https://discuss.elastic.co/t/do-i-need-a-server-to-elasticsearch/23985/5 "2015-06-23T07:02:03Z")

</div>

Hi Maguns, I'm trying to access the XBRL data from this Danish site. [http://datahub.virk.dk/dataset/system-til-system-adgang-til-regnskabsdata](http://datahub.virk.dk/dataset/system-til-system-adgang-til-regnskabsdata). They give some CURL with queries which should search through the files. I only get either a message about CORS settings or I get the page from [http://datahub.virk.dk/](http://datahub.virk.dk/) "Page not here". Furthermore they provide an API; [http://datahub.virk.dk/api](http://datahub.virk.dk/api). So I use the API' URL and try with the different queries, but no luck.  
All the files from [http://datahub.virk.dk/](http://datahub.virk.dk/) should be in gzip format. Can that be a problem?  
More important, last week the file weren't accessible and It's quit hard to get an answer if all is up and running.  
I'm using ES 1.5.2 with Marvel 1.3.1.  
I'm complete rookie here, I only got 3 weeks of experience.  
-Regards

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 23, 2015, 1:02pm UTC](https://discuss.elastic.co/t/do-i-need-a-server-to-elasticsearch/23985/6 "2015-06-23T13:02:01Z")

</div>

Okay. And you want to use Logstash to fetch the files for you and index them into Elasticsearch?

---

<div class="post-metadata">

**Author:** ![TBDK](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@TBDK](https://discuss.elastic.co/u/TBDK)\
**Post date:** [June 23, 2015, 1:06pm UTC](https://discuss.elastic.co/t/do-i-need-a-server-to-elasticsearch/23985/7 "2015-06-23T13:06:47Z")

</div>

Sorry for stupid questions, but do I need Logstash? But yes I wan't search in the files and index them.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 24, 2015, 5:32am UTC](https://discuss.elastic.co/t/do-i-need-a-server-to-elasticsearch/23985/8 "2015-06-24T05:32:22Z")

</div>

Then you need Logstash. Elasticsearch can't fetch URLs and index the contents. Well, maybe it's possible with river plugins but those are deprecated so you should use Logstash.

---

<div class="post-metadata">

**Author:** ![TBDK](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@TBDK](https://discuss.elastic.co/u/TBDK)\
**Post date:** [June 24, 2015, 1:18pm UTC](https://discuss.elastic.co/t/do-i-need-a-server-to-elasticsearch/23985/9 "2015-06-24T13:18:40Z")

</div>

Hi Magnus, Thanks for reply.  
I’m trying out the Logstash 1.5.0 and I’m using the guide from [https://www.elastic.co/guide/en/logstash/current/getting-started-with-logstash.html#\_up\_and\_running](https://www.elastic.co/guide/en/logstash/current/getting-started-with-logstash.html#_up_and_running) . I get some errors, but still it says that logstash starts?  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/5/5b6d4bc5fcb9508dc5371dc3bc5972a4d1daecc9.PNG)

It's the "IO console..." part which confuses me. If I follow the guide to the part about entering some test input, I get;

 ![](https://us1.discourse-cdn.com/elastic/original/2X/3/39d5e59671a47c92cc912f1e8b3c00aa85be35dd.PNG)

When I check the curl '[http://localhost:9200/\_search?pretty](http://localhost:9200/_search?pretty)' I don't see my Logstash, but instead the "\_index": ".kibana".  
Regards

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 24, 2015, 1:55pm UTC](https://discuss.elastic.co/t/do-i-need-a-server-to-elasticsearch/23985/10 "2015-06-24T13:55:00Z")

</div>

Well, you're only configuring Logstash to send logs to stdout (and it appears to do so correctly). If you want messages to be sent to Elasticsearch you'll have to include an [elasticsearch output](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html).

---

<div class="post-metadata">

**Author:** ![TBDK](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@TBDK](https://discuss.elastic.co/u/TBDK)\
**Post date:** [June 26, 2015, 7:45am UTC](https://discuss.elastic.co/t/do-i-need-a-server-to-elasticsearch/23985/11 "2015-06-26T07:45:33Z")

</div>

Arrrrh man 🙂 Thank you.  
OK so I'm up and running with the ELK and thanks a lot for help. My next issue is now connecting to the files.  
I have trying to connect the files with the supported CURLs, but I don't strike gold.  
Its the connection to remote files that troubles me, and I have played with some local files, with no issues.  
I still have the API [http://datahub.virk.dk/api](http://datahub.virk.dk/api) and the CURL curl -XGET [http://distribution.virk.dk/offentliggoerelser](http://distribution.virk.dk/offentliggoerelser) --data-binary @query\_regnskaber.json  
But I can't figure it out.  
So I have been trying different solutions just out of curiosity.  
I made the Logstash-simple.config out from the guide from Elasticsearch, and I'm wondering if I can put the API "[http://datahub.virk.dk/api](http://datahub.virk.dk/api)" in the "input { stdin { } }" in Logstash?  
Furthermore I'm not sure if its legal to change the address in the"Server" field in Marvel?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 26, 2015, 1:21pm UTC](https://discuss.elastic.co/t/do-i-need-a-server-to-elasticsearch/23985/12 "2015-06-26T13:21:15Z")

</div>

> [@TBDK](#):
>
> I made the Logstash-simple.config out from the guide from Elasticsearch, and I'm wondering if I can put the API "[http://datahub.virk.dk/api](http://datahub.virk.dk/api)" in the "input { stdin { } }" in Logstash?

What do you mean, exactly? The stdin input reads from stdin. If you—outside of Logstash—fetch the data you need and then invoke Logstash and pass the data via stdin that should work fine. Or, fetch the data via the API to local files that you have Logstash read via the file input.

> Furthermore I'm not sure if its legal to change the address in the"Server" field in Marvel?

I have no idea. You should probably ask in a separate thread in the [Marvel category](https://discuss.elastic.co/c/marvel).

---

<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, 12:05am UTC](https://discuss.elastic.co/t/do-i-need-a-server-to-elasticsearch/23985/13 "2017-07-06T00:05:11Z")

</div>


