# notice log content into new log file

**URL:** https://community.zeek.org/t/notice-log-content-into-new-log-file/4606
**Category:** Zeek
**Created:** [January 19, 2017, 8:43am UTC](https://community.zeek.org/t/notice-log-content-into-new-log-file/4606 "2017-01-19T08:43:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ps\_sunu](https://avatars.discourse-cdn.com/v4/letter/p/9d8465/32.png) [@ps\_sunu](https://community.zeek.org/u/ps_sunu)
#### Post date: [January 19, 2017, 8:43am UTC](https://community.zeek.org/t/notice-log-content-into-new-log-file/4606/1 "2017-01-19T08:43:30Z")

</div>

Hi  
Is it possible to write Notice log content into new log file

Regards,  
sunu

---

<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: [January 19, 2017, 9:12am UTC](https://community.zeek.org/t/notice-log-content-into-new-log-file/4606/2 "2017-01-19T09:12:14Z")

</div>

Hi sunu,

> Is it possible to write Notice log content into new log file

I am not sure what you mean by new log file but you might want to have a  
look at: [https://www.bro.org/sphinx-git/frameworks/logging.html#filters](https://www.bro.org/sphinx-git/frameworks/logging.html#filters)

Best regards,  
Jan

---

<div class="post-metadata">

### Author: ![ps\_sunu](https://avatars.discourse-cdn.com/v4/letter/p/9d8465/32.png) [@ps\_sunu](https://community.zeek.org/u/ps_sunu)
#### Post date: [January 19, 2017, 9:42am UTC](https://community.zeek.org/t/notice-log-content-into-new-log-file/4606/3 "2017-01-19T09:42:11Z")

</div>

Hi,

@load base/frameworks/notice

---

<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: [January 19, 2017, 9:50am UTC](https://community.zeek.org/t/notice-log-content-into-new-log-file/4606/4 "2017-01-19T09:50:36Z")

</div>

Hi sunu,

> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Above code is my sample code , and the code  
> will generate notice.log when tor found below code is the part which  
> will write the content in notice.log , i want this content into  
> separate log

so what you want is to write some data to your own log stream. Have a  
look at: [https://www.bro.org/sphinx-git/frameworks/logging.html#streams](https://www.bro.org/sphinx-git/frameworks/logging.html#streams)

Additionally there is an example on try.bro.org:  
[http://try.bro.org/#/?example=modules-log-factorial](http://try.bro.org/#/?example=modules-log-factorial)

I 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:44pm UTC](https://community.zeek.org/t/notice-log-content-into-new-log-file/4606/5 "2022-05-06T15:44:30Z")

</div>


