# Why logstash cannot start after define new pipeline

**URL:** <https://discuss.elastic.co/t/why-logstash-cannot-start-after-define-new-pipeline/347483>\
**Category:** Logstash\
**Tags:** elastic-stack-monitoring\
**Created:** [November 19, 2023, 6:59pm UTC](https://discuss.elastic.co/t/why-logstash-cannot-start-after-define-new-pipeline/347483 "2023-11-19T18:59:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![baber1223](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/baber1223/32/83533_2.png) [@baber1223](https://discuss.elastic.co/u/baber1223)\
**Post date:** [November 19, 2023, 6:59pm UTC](https://discuss.elastic.co/t/why-logstash-cannot-start-after-define-new-pipeline/347483/1 "2023-11-19T18:59:19Z")

</div>

I was created pipeline1 in logstash and it was working excellent but I added a new pipeline now when I want to start logstash it shows follow error and cannot start

```auto
icsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>2}
[2023-11-19T16:31:32,536][ERROR][logstash.javapipeline][pipeline1] Pipeline worker error, the pipeline will be stopped {:pipeline_id=>"pipeline1", :error=>"", :exception=>Java::OrgJrubyExceptions::ThreadKill, :backtrace=>[], :thread=>"#<Thread:0x451e6af5 /usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:134 run>"}
[2023-11-19T16:31:32,641][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>2}
[2023-11-19T16:31:34,162][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>4}
[2023-11-19T16:31:34,220][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>4}
[2023-11-19T16:31:34,303][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>4}
[2023-11-19T16:31:34,476][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>4}
[2023-11-19T16:31:34,546][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>4}
[2023-11-19T16:31:34,648][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>4}
[2023-11-19T16:31:38,172][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>8}
[2023-11-19T16:31:38,229][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>8}
[2023-11-19T16:31:38,310][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>8}
[2023-11-19T16:31:38,485][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>8}
[2023-11-19T16:31:38,555][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>8}
[2023-11-19T16:31:38,656][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>8}
[2023-11-19T16:31:46,183][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>16}
[2023-11-19T16:31:46,262][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>16}
[2023-11-19T16:31:46,316][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>16}
[2023-11-19T16:31:46,492][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>16}
[2023-11-19T16:31:46,563][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>16}
[2023-11-19T16:31:46,665][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>16}
[2023-11-19T16:32:02,193][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>32}
[2023-11-19T16:32:02,269][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>32}
[2023-11-19T16:32:02,324][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>32}
[2023-11-19T16:32:02,501][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>32}
[2023-11-19T16:32:02,572][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>32}
[2023-11-19T16:32:02,675][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>32}
[2023-11-19T16:32:34,202][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>64}
[2023-11-19T16:32:34,278][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>64}
[2023-11-19T16:32:34,334][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>64}
[2023-11-19T16:32:34,508][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>64}
[2023-11-19T16:32:34,579][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>64}
[2023-11-19T16:32:34,683][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>64}
[2023-11-19T16:33:38,224][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>64}
[2023-11-19T16:33:38,288][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>64}
[2023-11-19T16:33:38,342][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>64}
[2023-11-19T16:33:38,517][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>64}
[2023-11-19T16:33:38,601][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>64}
[2023-11-19T16:33:38,695][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>64}

```

but when comment one of the pipeline logstash can start and work excellent

This is my pipeline.yml file before comment one of the pipelines :

```auto
- pipeline.id: pipeline1
  path.config: "/etc/logstash/conf.d/pipeline1.conf"

- pipeline.id: pipeline2
  path.config: "/etc/logstash/conf.d/pipeline2.conf"

```

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [November 19, 2023, 7:13pm UTC](https://discuss.elastic.co/t/why-logstash-cannot-start-after-define-new-pipeline/347483/2 "2023-11-19T19:13:11Z")

</div>

> [@baber1223](#):
>
> `[2023-11-19T16:33:38,695][ERROR][logstash.outputs.elasticsearch][pipeline1][1d705bebc465c6f2954dfc0731576a2b1c889f4746ae5d1dec61206e4d3ddf62] Attempted to send a bulk request but there are no living connections in the pool (perhaps Elasticsearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>64}`

This error says that the elasticsearch output in your `pipeline1` cannot connect to Elasticsearch as there are no avaiable hosts.

You need to check it.

> [@baber1223](#):
>
> but when comment one of the pipeline logstash can start and work excellent

You have two pipelines, which one you comment and Logstash works without any issue?

What does your configurationlooks like? Please share your configurations for both pipelines.

---

<div class="post-metadata">

**Author:** ![baber1223](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/baber1223/32/83533_2.png) [@baber1223](https://discuss.elastic.co/u/baber1223)\
**Post date:** [November 19, 2023, 8:19pm UTC](https://discuss.elastic.co/t/why-logstash-cannot-start-after-define-new-pipeline/347483/3 "2023-11-19T20:19:21Z")

</div>

There is no difference it just cannot work with 2 pipeline simultaneously.

pipeline1:

```auto
input{
   beats {

    port => 5070

}

}

filter{

  grok{
    patterns_dir => ["/etc/logstash/conf.d/testeod"]
    match => { "message" => "%{custom_exception:dmerror}" }

}

}

output{

  stdout{}
  elasticsearch {
   index => eodtest
   hosts => ["https://IP:9200"]
   cacert => '/etc/logstash/certs/http_ca.crt'
   user => "elastic"
   password => "password"

}

}

```

testeod

```auto
custom_exception %{WORD:exception1} %{WORD:exception1} %{WORD:exception1} %{WORD:exception1} %{WORD:exception1} %{WORD:exception1} %{WORD:exception1} %{WORD:exception1}

```

pipeline2:

```auto
input{
   beats {

    port => 5070

}

}

filter{

  grok{
    patterns_dir => ["/etc/logstash/conf.d/open"]
    match => { "message" => "%{custom_open:response_time}" }

}

}

output{

  stdout{}
  elasticsearch {
   index => newopenbank
   hosts => ["https://IP:9200"]
   cacert => '/etc/logstash/certs/http_ca.crt'
   user => "elastic"
   password => "password"

}

}

```

open

```auto
custom_open %{COMMONAPACHELOG:apache}

```

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [November 19, 2023, 8:39pm UTC](https://discuss.elastic.co/t/why-logstash-cannot-start-after-define-new-pipeline/347483/4 "2023-11-19T20:39:20Z")

</div>

> [@baber1223](#):
>
> ` port => 5070`

You are using the same port in both pipelines, this is not possible, you need to use a different port.

---

<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:** [December 17, 2023, 8:39pm UTC](https://discuss.elastic.co/t/why-logstash-cannot-start-after-define-new-pipeline/347483/5 "2023-12-17T20:39:52Z")

</div>

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