# Multiple interface sniffing with packetbeat & output to 1 file

**URL:** <https://discuss.elastic.co/t/multiple-interface-sniffing-with-packetbeat-output-to-1-file/263883>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [February 10, 2021, 2:13pm UTC](https://discuss.elastic.co/t/multiple-interface-sniffing-with-packetbeat-output-to-1-file/263883 "2021-02-10T14:13:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luciferdude](https://avatars.discourse-cdn.com/v4/letter/l/f19dbf/32.png) [@luciferdude](https://discuss.elastic.co/u/luciferdude)\
**Post date:** [February 10, 2021, 2:13pm UTC](https://discuss.elastic.co/t/multiple-interface-sniffing-with-packetbeat-output-to-1-file/263883/1 "2021-02-10T14:13:21Z")

</div>

Hello - I have packetbeat version 7.10 installed on Linux (RHEL Centos 7) server. I've configured packetbeat to listen on two interfaces. I was able to calculate this by using the command `packetbeat devices` command. Everything is working as expected and data is being generated.

1. Is it correct to configure packetbeat to listen on multiple interfaces like below and capture traffic from both interfaces into a single output file?

2. How can i distinguish between data that is coming from interface 0 vs interface 1?

> packetbeat.interfaces.device: 0  
> packetbeat.interfaces.device: 1  
> packetbeat.interfaces.type: pcap

> output.file:  
> path: "/home/user/packetbeat/"  
> filename: packetbeat.jsonl

---

<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 10, 2021, 4:14pm UTC](https://discuss.elastic.co/t/multiple-interface-sniffing-with-packetbeat-output-to-1-file/263883/2 "2021-03-10T16:14:17Z")

</div>

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