# broctl write output pcap

**URL:** <https://community.zeek.org/t/broctl-write-output-pcap/4726>\
**Category:** Zeek\
**Created:** [March 15, 2017, 10:00am UTC](https://community.zeek.org/t/broctl-write-output-pcap/4726 "2017-03-15T10:00:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Kefallonitis](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@Alex\_Kefallonitis](https://community.zeek.org/u/Alex_Kefallonitis)\
**Post date:** [March 15, 2017, 10:00am UTC](https://community.zeek.org/t/broctl-write-output-pcap/4726/1 "2017-03-15T10:00:35Z")

</div>

I know that i can run bro -i eth0 -w .pcap . Is there a way broctl to also write to pcap file?

---

<div class="post-metadata">

**Author:** ![johanna](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@johanna](https://community.zeek.org/u/johanna)\
**Post date:** [April 5, 2017, 4:46pm UTC](https://community.zeek.org/t/broctl-write-output-pcap/4726/2 "2017-04-05T16:46:07Z")

</div>

Hi,

in theory, you can pass arbitrary flags to Bro when it is called by  
broctl, by setting BroArgs in broctl.cfg (see  
[https://www.bro.org/sphinx/components/broctl/README.html](https://www.bro.org/sphinx/components/broctl/README.html)).

Note that writing pcap files with Bro has a few problems at the moment (I  
think); I think it might corrupt packages under some circumstances. It  
certainly is not a widely used feature and receives no testing at all.

Johanna

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:44pm UTC](https://community.zeek.org/t/broctl-write-output-pcap/4726/3 "2022-05-06T15:44:44Z")

</div>


