# Send batch of multiline events to http output

**URL:** <https://discuss.elastic.co/t/send-batch-of-multiline-events-to-http-output/86721>\
**Category:** Logstash\
**Created:** [May 22, 2017, 5:42pm UTC](https://discuss.elastic.co/t/send-batch-of-multiline-events-to-http-output/86721 "2017-05-22T17:42:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deeps123](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@deeps123](https://discuss.elastic.co/u/deeps123)\
**Post date:** [May 22, 2017, 5:42pm UTC](https://discuss.elastic.co/t/send-batch-of-multiline-events-to-http-output/86721/1 "2017-05-22T17:42:58Z")

</div>

Hi,

I am new to Logstash world. Can some one help me how to write conf for below scenario.

I have data collected from tcp and I output to http. Like below

input {  
tcp {  
port =\>8777  
codec =\> multiline {  
pattern =\>"([1])"  
negate =\>"false"  
what =\>"previous"  
}  
}  
}  
output {  
http {  
url=\>"[http://xyz.com/service1](http://xyz.com/service1)"  
proxy=\>"host:port"  
http\_method=\>"post"  
format =\> "json"  
}  
}

How do I modify this config to collect 5secs data from tcp port and output to http.

---

<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:** [June 19, 2017, 5:43pm UTC](https://discuss.elastic.co/t/send-batch-of-multiline-events-to-http-output/86721/2 "2017-06-19T17:43:42Z")

</div>

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