# Socket, REST, or WebSocket API into Elastic?

**URL:** <https://discuss.elastic.co/t/socket-rest-or-websocket-api-into-elastic/263167>\
**Category:** Beats\
**Tags:** filebeat, elastic-agent\
**Created:** [February 3, 2021, 8:56pm UTC](https://discuss.elastic.co/t/socket-rest-or-websocket-api-into-elastic/263167 "2021-02-03T20:56:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmiklas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kmiklas/32/50730_2.png) [@kmiklas](https://discuss.elastic.co/u/kmiklas)\
**Post date:** [February 3, 2021, 8:56pm UTC](https://discuss.elastic.co/t/socket-rest-or-websocket-api-into-elastic/263167/1 "2021-02-03T20:56:22Z")

</div>

Hello All,

Is there a way to push logs/metrics directly into Elastic without FB and LS?

Imagine a process where I have a metric called "Price" for a NASDAQ security. I want to push the {"ticker": "MSFT", "price", 250.62} directly into the system without a disk write, Filebeat, and logstash.

Can I set up a socket connection directly into the database? Can I establish a Websocket connection? A HTTP/RESTful endpoint to directly insert records?

Thanks,  
Keith :^)

---

<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:** [February 3, 2021, 8:58pm UTC](https://discuss.elastic.co/t/socket-rest-or-websocket-api-into-elastic/263167/2 "2021-02-03T20:58:08Z")

</div>

Elasticsearch is built to interact with HTTP based APIs, so you can do all of that.

This chapter of the docs goes into some of that, with examples - [Getting started with Elasticsearch | Elasticsearch Reference [7.10] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started.html)

---

<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:** [March 3, 2021, 10:58pm UTC](https://discuss.elastic.co/t/socket-rest-or-websocket-api-into-elastic/263167/3 "2021-03-03T22:58:24Z")

</div>

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