# Using Packetbeat and named pipes on Linux

**URL:** <https://discuss.elastic.co/t/using-packetbeat-and-named-pipes-on-linux/184587>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [June 6, 2019, 1:12pm UTC](https://discuss.elastic.co/t/using-packetbeat-and-named-pipes-on-linux/184587 "2019-06-06T13:12:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wsales](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wsales/32/47655_2.png) [@wsales](https://discuss.elastic.co/u/wsales)\
**Post date:** [June 6, 2019, 1:12pm UTC](https://discuss.elastic.co/t/using-packetbeat-and-named-pipes-on-linux/184587/1 "2019-06-06T13:12:15Z")

</div>

Hi all,

I have some old linux servers on my network that's will not run packetbeat, and I want do capture the trafic and put on a elasticsearch instance. One of the ways I've been found to remote capture is by using tcpdump on a named pipe, like above:

ssh myuser@myserver "sudo -S /usr/sbin/tcpdump -s 0 -n -w - -U -i eth0 port 14010 2\>/dev/n  
ull" \> /tmp/capture1.fifo

How to read this fifo and send the data with packetbeat? I need to extract the http traffic, with http.response.body and http.request.body, and my configuration on packetbeat.yml is quite simple to do the job:

- type: http
# Configure the ports where to listen for HTTP traffic. You can disable

# the HTTP protocol by commenting out the list of ports.
ports: [80, 8080, 7010, 7020, 7030, 7040, 8010, 8020, 8030, 8040]  
send\_request: true  
send\_response: true  
include\_body\_for: ["text/html", "text/xml"]

Can someone help how to do this?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [June 19, 2019, 12:03pm UTC](https://discuss.elastic.co/t/using-packetbeat-and-named-pipes-on-linux/184587/2 "2019-06-19T12:03:46Z")

</div>

You could try reading from the pipe with flags like `packetbeat -e -t -I /tmp/capture1.fifo`. But I think this will [clobber your timestamps](https://github.com/elastic/beats/issues/3565) if it works at all. We use this for testing Packetbeat by reading data in from a file.

---

<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 17, 2019, 12:03pm UTC](https://discuss.elastic.co/t/using-packetbeat-and-named-pipes-on-linux/184587/3 "2019-07-17T12:03:47Z")

</div>

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