# Logstash Simple JSON

**URL:** <https://discuss.elastic.co/t/logstash-simple-json/127351>\
**Category:** Logstash\
**Created:** [April 9, 2018, 3:42pm UTC](https://discuss.elastic.co/t/logstash-simple-json/127351 "2018-04-09T15:42:33Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [April 9, 2018, 6:25pm UTC](https://discuss.elastic.co/t/logstash-simple-json/127351/5 "2018-04-09T18:25:52Z")

</div>

I wanted to know how this would work with an http input. It is very simple to configure. On the logstash side I just have

```
input { http { host => "127.4.31.9" port => 4000 } }
output { stdout { codec => rubydebug } }

```

and I can send a directory full of files to it using

```
for F in /etc/logstash/t.httpInput/data/*.xml ; do
  echo Processing $F
  curl -H 'content-type: application/xml' -XPUT 'http://127.4.31.9:4000/' -d "@$F"
  echo ''
done

```

I though I was going to have to configure a multiline code, but no, each PUT results in a single event.

---

_[View the full topic](https://discuss.elastic.co/t/logstash-simple-json/127351)._
