# Multiple log streams

**URL:** <https://community.zeek.org/t/multiple-log-streams/4151>\
**Category:** Zeek\
**Created:** [May 11, 2016, 4:50pm UTC](https://community.zeek.org/t/multiple-log-streams/4151 "2016-05-11T16:50:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jay\_Swan](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@Jay\_Swan](https://community.zeek.org/u/Jay_Swan)\
**Post date:** [May 11, 2016, 4:50pm UTC](https://community.zeek.org/t/multiple-log-streams/4151/1 "2016-05-11T16:50:45Z")

</div>

I used this script:

[https://gist.github.com/J-Gras/f9f86828f9e9d9c0b8f0908bc3573bb0](https://gist.github.com/J-Gras/f9f86828f9e9d9c0b8f0908bc3573bb0)

to log simultaneously as JSON and normal Bro TSV.

I’m seeing only a fraction of the total logs being written as JSON – it varies between about 25-40%.

The script looks OK to me. Any ideas what’s wrong? Is there a better way to do dual log streams?

Thanks,

Jay

---

<div class="post-metadata">

**Author:** ![Jan](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@Jan](https://community.zeek.org/u/Jan)\
**Post date:** [May 16, 2016, 6:44pm UTC](https://community.zeek.org/t/multiple-log-streams/4151/2 "2016-05-16T18:44:11Z")

</div>

Hi Jay,

> I'm seeing only a fraction of the total logs being written as JSON -- it  
> varies between about 25-40%.

Do you miss single log lines or complete log files? In case you are  
missing single log lines: Is there any pattern (e.g. a certain type of  
events is missing or just a subset of logs is affected)?

In case you are running a cluster, it might be interesting to log the  
node (see  
[https://github.com/0xxon/bro-scripts/blob/master/conn-workers.bro](https://github.com/0xxon/bro-scripts/blob/master/conn-workers.bro)).

Best regards,  
Jan

---

<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:43pm UTC](https://community.zeek.org/t/multiple-log-streams/4151/3 "2022-05-06T15:43:40Z")

</div>


