# Issue with Multiple Web Socket Inputs

**URL:** <https://discuss.elastic.co/t/issue-with-multiple-web-socket-inputs/120945>\
**Category:** Logstash\
**Created:** [February 21, 2018, 10:51pm UTC](https://discuss.elastic.co/t/issue-with-multiple-web-socket-inputs/120945 "2018-02-21T22:51:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manojporwal](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@manojporwal](https://discuss.elastic.co/u/manojporwal)\
**Post date:** [February 21, 2018, 10:51pm UTC](https://discuss.elastic.co/t/issue-with-multiple-web-socket-inputs/120945/1 "2018-02-21T22:51:19Z")

</div>

Using logstash v6.2.1

I have setup 2 pipelines each getting input using a web socket input plugin. My problem is at a time only one pipeline seems to be making connection to web socket server, meaning data is collected only for pipeline1 or pipeline2, but never for both.  
I have also noticed that after starting the logstash it's several minutes before an attempt is made to connect to web socket server, is that normal?

Greatly appreciate any help i can get to resolve this. Thanks

Below is the configuration for pipelines,yml file  
indent preformatted text by 4 spaces

- pipeline.id: pipeline1  
pipeline.workers: 2  
pipeline.batch.size: 100  
path.config: "/etc/logstash/conf.d/my\_conf1.conf"
- pipeline.id: pipleline2  
pipeline.workers: 2  
pipeline.batch.size: 100  
path.config: "/etc/logstash/conf.d/my\_conf2.conf"

and conf 1.conf reads  
indent preformatted text by 4 spaces  
input {  
websocket {  
url =\> "ws://localhost:8081/?type=v1&param1=ALL&param2=ALL&param3=value3"  
codec =\> "json"  
id =\> "ws1"  
}

}  
output {  
elasticsearch { hosts =\> "localhost:9200"  
index =\> "ws1"}  
stdout { codec =\> rubydebug }  
}  
and conf 2.conf reads  
indent preformatted text by 4 spaces  
input {  
websocket {  
url =\> "ws://localhost:8081/?type=v2&param1=ALL&param2=ALL&param3=value4"  
codec =\> "json"  
id =\> "ws2"  
}

}  
output {  
elasticsearch { hosts =\> "localhost:9200"  
index =\> "ws2"}  
stdout { codec =\> rubydebug }  
}

---

<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 21, 2018, 10:51pm UTC](https://discuss.elastic.co/t/issue-with-multiple-web-socket-inputs/120945/2 "2018-03-21T22:51:22Z")

</div>

Closed on March 21, 2018, 10:51pm UTC

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