# LOGSTASH : output pipe

**URL:** <https://discuss.elastic.co/t/logstash-output-pipe/267390>\
**Category:** Logstash\
**Created:** [March 16, 2021, 3:04pm UTC](https://discuss.elastic.co/t/logstash-output-pipe/267390 "2021-03-16T15:04:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Lum](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_lum/32/84472_2.png) [@Alex\_Lum](https://discuss.elastic.co/u/Alex_Lum)\
**Post date:** [March 16, 2021, 3:04pm UTC](https://discuss.elastic.co/t/logstash-output-pipe/267390/1 "2021-03-16T15:04:35Z")

</div>

Hello there,  
I have a winlogbeat which send datas on logstash.

On logstash : input beat, some filters and output to elasticSearch.

But i want to output SOME fields on a named pipe (mkfifo) to insert them on a MariaDB.  
I saw output pipe on logstash but documentation is very thin and there are no example.

Is it possible to do this?  
Thanks.  
Regards,  
Alex.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 16, 2021, 3:40pm UTC](https://discuss.elastic.co/t/logstash-output-pipe/267390/2 "2021-03-16T15:40:44Z")

</div>

The pipe output sends "events to stdin of another program". That is not what you want. A named pipe is a special type of file, so a file output might work. I have never tried it.

---

<div class="post-metadata">

**Author:** ![Alex\_Lum](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_lum/32/84472_2.png) [@Alex\_Lum](https://discuss.elastic.co/u/Alex_Lum)\
**Post date:** [March 16, 2021, 4:24pm UTC](https://discuss.elastic.co/t/logstash-output-pipe/267390/3 "2021-03-16T16:24:10Z")

</div>

Thanks for your answer 🙂

Or maybe with [exec](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-exec.html) output?  
It seems that i can make any command.  
I will also try jdbc output plugin (from community)

> **[Logstash data output to SQL database](https://xiaoxiaosam007.medium.com/logstash-data-output-to-sql-database-52cea0abe3db)**
>
> Concept Basically it seemed really “intuitive" at…

> **[theangryangel/logstash-output-jdbc](https://github.com/theangryangel/logstash-output-jdbc)**
>
> JDBC output for Logstash. Contribute to theangryangel/logstash-output-jdbc development by creating an account on GitHub.

if a memeber have any other idea, i'm on it ^^

---

<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:** [April 13, 2021, 4:25pm UTC](https://discuss.elastic.co/t/logstash-output-pipe/267390/4 "2021-04-13T16:25:08Z")

</div>

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