# Pipe Plugin Not Working on Windows

**URL:** <https://discuss.elastic.co/t/pipe-plugin-not-working-on-windows/89975>\
**Category:** Logstash\
**Created:** [June 19, 2017, 5:04pm UTC](https://discuss.elastic.co/t/pipe-plugin-not-working-on-windows/89975 "2017-06-19T17:04:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lynchnf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lynchnf/32/19260_2.png) [@lynchnf](https://discuss.elastic.co/u/lynchnf)\
**Post date:** [June 19, 2017, 5:04pm UTC](https://discuss.elastic.co/t/pipe-plugin-not-working-on-windows/89975/1 "2017-06-19T17:04:55Z")

</div>

I'm trying to execute the Logstash-output-pipe plugin, but I can't get it to work with even simplest configuration. I'm executing this command:

`bin\logstash.bat --path.settings /I:/logstash-5.2.2/config -l logs -f pipetest.conf`

... and getting this output on the console:

```
Sending Logstash's logs to logs which is now configured via log4j2.properties
[2017-06-19T11:44:07,765][INFO][logstash.pipeline] Starting pipeline {"id"=>"main", "pipeline.workers"=>4, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>5, "pipeline.max_inflight"=>500}
[2017-06-19T11:44:07,797][INFO][logstash.pipeline] Pipeline main started
[2017-06-19T11:44:07,968][INFO][logstash.outputs.pipe] Opening pipe {:command=>"echo hello"}
[2017-06-19T11:44:07,984][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=>9600}
{
    "@timestamp" => 2017-06-19T16:44:07.828Z,
          "host" => "v10072384",
      "@version" => "1",
         "clock" => 1,
          "type" => "heartbeat"
}
[2017-06-19T11:44:17,819][ERROR][logstash.outputs.pipe] Error writing to pipe, closing pipe. {:command=>"echo hello", :pipe=>#<PipeWrapper:0x5a0d967d @pipe=#<IO:fd 448>, @active=true>}
[2017-06-19T11:44:17,819][INFO][logstash.outputs.pipe] Closing pipe "echo hello"
[2017-06-19T11:44:17,834][INFO][logstash.outputs.pipe] Opening pipe {:command=>"echo hello"}
[2017-06-19T11:44:17,912][INFO][logstash.outputs.pipe] Starting stale pipes cleanup cycle {:pipes=>{"echo hello"=>#<PipeWrapper:0x19499944 @pipe=#<IO:fd 450>, @active=true>}}
{
    "@timestamp" => 2017-06-19T16:44:17.803Z,
          "host" => "v10072384",
      "@version" => "1",
         "clock" => 2,
          "type" => "heartbeat"
}
[2017-06-19T11:44:27,819][ERROR][logstash.outputs.pipe] Error writing to pipe, closing pipe. {:command=>"echo hello", :pipe=>#<PipeWrapper:0x19499944 @pipe=#<IO:fd 450>, @active=false>}
[2017-06-19T11:44:27,819][INFO][logstash.outputs.pipe] Closing pipe "echo hello"
[2017-06-19T11:44:27,819][INFO][logstash.outputs.pipe] Opening pipe {:command=>"echo hello"}
{
    "@timestamp" => 2017-06-19T16:44:27.803Z,
          "host" => "v10072384",
      "@version" => "1",
         "clock" => 3,
          "type" => "heartbeat"
}

```

Here is my Logstash config file:

```
input {
    heartbeat {
        message => "sequence"
        interval => 10
        type => "heartbeat"
    }
}
output {
    pipe {
        command => "echo hello"
    }
    stdout {
        codec => rubydebug
    }
}

```

I'm running Logstash version 5.2.2, Logstash-output-pipe plugin version 3.0.2 on Windows 7 Enterprise (64 bit), Service Pack 1.

Any help you would be appreciated.

-- Norman Lynch

---

<div class="post-metadata">

**Author:** ![lynchnf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lynchnf/32/19260_2.png) [@lynchnf](https://discuss.elastic.co/u/lynchnf)\
**Post date:** [June 21, 2017, 2:05pm UTC](https://discuss.elastic.co/t/pipe-plugin-not-working-on-windows/89975/2 "2017-06-21T14:05:31Z")

</div>

Wow. Two days and still no replies. Do I get bonus points for stumping the Logstash community?

---

<div class="post-metadata">

**Author:** ![lynchnf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lynchnf/32/19260_2.png) [@lynchnf](https://discuss.elastic.co/u/lynchnf)\
**Post date:** [June 26, 2017, 6:20pm UTC](https://discuss.elastic.co/t/pipe-plugin-not-working-on-windows/89975/3 "2017-06-26T18:20:24Z")

</div>

I've given up on the pipe plugin and switched to the exec plugin.

---

<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:** [July 24, 2017, 6:20pm UTC](https://discuss.elastic.co/t/pipe-plugin-not-working-on-windows/89975/4 "2017-07-24T18:20:32Z")

</div>

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