# Logging in multiple formats

**URL:** <https://community.zeek.org/t/logging-in-multiple-formats/4091>\
**Category:** Zeek\
**Created:** [April 5, 2016, 1:59am UTC](https://community.zeek.org/t/logging-in-multiple-formats/4091 "2016-04-05T01:59:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carl\_Forsythe](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@Carl\_Forsythe](https://community.zeek.org/u/Carl_Forsythe)\
**Post date:** [April 5, 2016, 1:59am UTC](https://community.zeek.org/t/logging-in-multiple-formats/4091/1 "2016-04-05T01:59:31Z")

</div>

Hi All,  
I’ve seen examples in how you can log everything in JSON, individual logs in JSON, or everything in the regular log format. I have a use case in which I would like to be able to log output in both JSON and the regular log format as I have a set of consumers that easily ingest JSON and a set that doesn’t enjoy it quite so much.

Is there a way to log in both formats easily similar to how Suricata can emit both JSON and other log types all at once?

Thanks,  
Carl

---

<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:** [April 5, 2016, 11:42am UTC](https://community.zeek.org/t/logging-in-multiple-formats/4091/2 "2016-04-05T11:42:13Z")

</div>

Hi Carl,

> Is there a way to log in both formats easily similar to how Suricata can  
> emit both JSON and other log types all at once?

once I ran into the same problem and wrote a small script that might  
help: [Additional JSON logging for Bro. · GitHub](https://gist.github.com/J-Gras/f9f86828f9e9d9c0b8f0908bc3573bb0)

It adds a filter to generate additional JSON logs for the configured log  
streams.

Hope this helps,  
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/logging-in-multiple-formats/4091/3 "2022-05-06T15:43:34Z")

</div>

Closed on May 6, 2022, 3:43pm UTC


