# Suppress log file

**URL:** <https://community.zeek.org/t/suppress-log-file/3739>\
**Category:** Zeek\
**Created:** [July 29, 2015, 9:24pm UTC](https://community.zeek.org/t/suppress-log-file/3739 "2015-07-29T21:24:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Black](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@Michael\_Black](https://community.zeek.org/u/Michael_Black)\
**Post date:** [July 29, 2015, 9:24pm UTC](https://community.zeek.org/t/suppress-log-file/3739/1 "2015-07-29T21:24:14Z")

</div>

Is there a way to suppress the log file without also suppressing a database output too?

For example, I have conn going to a database

local filter\_conn: Log::Filter =

[

$name = “sqlite”,

$path = “/var/db/conn”,

$config = table([“tablename”] = “conn”),

$writer = Log::WRITER\_SQLITE

];

And I’d like to suppress the log file since it’s no longer needed.

But….doing this:

Log::disable\_stream(Conn::LOG);

Disables both the file and the database output.

Solution anybody?

Mike

---

<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:** [July 29, 2015, 9:56pm UTC](https://community.zeek.org/t/suppress-log-file/3739/2 "2015-07-29T21:56:13Z")

</div>

You should be able to just remove the default filter using

Log::remove\_filter(Conn::LOG, "default");

which should stop the log file output.

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:42pm UTC](https://community.zeek.org/t/suppress-log-file/3739/3 "2022-05-06T15:42:55Z")

</div>

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


