# Basic logstash as restful endpoint example

**URL:** <https://discuss.elastic.co/t/basic-logstash-as-restful-endpoint-example/222998>\
**Category:** Logstash\
**Created:** [March 10, 2020, 6:42pm UTC](https://discuss.elastic.co/t/basic-logstash-as-restful-endpoint-example/222998 "2020-03-10T18:42:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![smugsmugsmug](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@smugsmugsmug](https://discuss.elastic.co/u/smugsmugsmug)\
**Post date:** [March 10, 2020, 6:42pm UTC](https://discuss.elastic.co/t/basic-logstash-as-restful-endpoint-example/222998/1 "2020-03-10T18:42:14Z")

</div>

I'm trying to set up logstash to be a simple restful endpoint that forwards log messages to indexes within my elastic search instance. I wasn't really able to get a clear idea of how to do this from reading the "getting started" or documentation on the http plugins, so any help will be appreciated.

Current setup:  
I have a elastic and logstash installed on a single Centos 7 instance. Elastic is currently running, but I have not started the logstash service yet.

Goal: I have a couple of other VM's I'll be using to send random logs to it using postman (or whatever else). Basically just [http://CentosIPAddress](http://CentosIPAddress):SomePortNumber/SomeIndex/SomeType

All the clients will all be posting to the same index --\> type with the same basic message schema as the message body.

Goal2 will be understanding how to filter based on the message content and send to different indexes, but I just want to crawl before I walk.

---

<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:** [April 7, 2020, 6:42pm UTC](https://discuss.elastic.co/t/basic-logstash-as-restful-endpoint-example/222998/2 "2020-04-07T18:42:21Z")

</div>

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