# Logstash is merging messages sent through http

**URL:** https://discuss.elastic.co/t/logstash-is-merging-messages-sent-through-http/295905
**Category:** Logstash
**Created:** [February 1, 2022, 6:51am UTC](https://discuss.elastic.co/t/logstash-is-merging-messages-sent-through-http/295905 "2022-02-01T06:51:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ruben\_Bracamonte](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruben_bracamonte/32/99407_2.png) [@Ruben\_Bracamonte](https://discuss.elastic.co/u/Ruben_Bracamonte)
#### Post date: [February 1, 2022, 6:51am UTC](https://discuss.elastic.co/t/logstash-is-merging-messages-sent-through-http/295905/1 "2022-02-01T06:51:42Z")

</div>

Hi, I have a basic Logstash config with HTTP as input.  
My API is writing logs every 2-3 seconds, and sometimes on Kibana I can see two messages, with their two timestamps and two different IPs (from the caller), etc in the same entry.

Any idea why is this happening and how can I solve it?  
(I'm using two pipelines, Idk if that's relevant. Not sure what other information I could provide)

```auto
input {
  http {
    type => "myapi"
    host => "localhost"
    port => 5090
    codec => json
  }
}
output {
  elasticsearch {
    hosts => ["servername:9200"]
    index => "%{type}-%{+YYYY.MM}"
    user => "elastic"
    password => "elastic"
  }
}

```

Thanks,  
Ruben.-

---

<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 1, 2022, 6:52am UTC](https://discuss.elastic.co/t/logstash-is-merging-messages-sent-through-http/295905/2 "2022-03-01T06:52:20Z")

</div>

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