# BRO Logger crashing due to large DNS log files

**URL:** <https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423>\
**Category:** Zeek\
**Created:** [August 19, 2018, 3:12pm UTC](https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423 "2018-08-19T15:12:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmcclellan](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rmcclellan](https://community.zeek.org/u/rmcclellan)\
**Post date:** [August 19, 2018, 3:12pm UTC](https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423/1 "2018-08-19T15:12:17Z")

</div>

All,

Having an issue with the bro logger crashing due to large volumes of DNS log traffic, 20-30GB an hour. This is completely a local configuration, on a system with super-fast flash storage, 64 cores, 256GB RAM running BRO 2.5.4. If I disable DNS logging, everything works fine without issue. When I enable it, I get the results below. I thought it might be an issue with gzipping the old logs, so I replaced the standard gzip with pigz and I can manually compress the 30+ gig files in seconds, so don’t think that is the issue. I also tried pinning dedicated cores to the logger, currently 6 cores, which should be way more than enough. Any thoughts or suggestions.

Thanks,

Ron

current]# ll -h

total 43G

-rw-r–r–. 1 root root 3.2K Aug 18 12:00 capture\_loss-18-08-18\_11.00.00.log

-rw-r–r–. 1 root root 3.2K Aug 18 12:18 capture\_loss-18-08-18\_12.00.00.log

-rw-r–r–. 1 root root 2.3M Aug 18 12:00 communication-18-08-18\_11.00.00.log

-rw-r–r–. 1 root root 1.4M Aug 18 12:18 communication-18-08-18\_12.00.00.log

-rw-r–r–. 1 root root 4.8K Aug 18 12:18 communication.log

-rw-r–r–. 1 root root 19G Aug 18 11:39 dns-18-08-18\_10.11.22.log

-rw-r–r–. 1 root root 16G Aug 18 12:26 dns-18-08-18\_11.00.00.log

-rw-r–r–. 1 root root 12M Aug 18 12:00 files-18-08-18\_11.00.00.log

-rw-r–r–. 1 root root 5.2M Aug 18 12:18 files-18-08-18\_12.00.00.log

-rw-r–r–. 1 root root 15K Aug 18 12:00 known\_certs-18-08-18\_11.00.00.log

-rw-r–r–. 1 root root 15K Aug 18 12:18 known\_certs-18-08-18\_12.00.00.log

-rw-r–r–. 1 root root 98K Aug 18 12:00 known\_hosts-18-08-18\_11.00.00.log

-rw-r–r–. 1 root root 24K Aug 18 12:18 known\_hosts-18-08-18\_12.00.00.log

-rw-r–r–. 1 root root 71K Aug 18 12:00 known\_services-18-08-18\_11.00.00.log

-rw-r–r–. 1 root root 5.2K Aug 18 12:18 known\_services-18-08-18\_12.00.00.log

-rw-r–r–. 1 root root 1.6K Aug 18 12:00 notice-18-08-18\_11.00.00.log

-rw-r–r–. 1 root root 954 Aug 18 12:18 notice-18-08-18\_12.00.00.log

-rw-r–r–. 1 root root 262 Aug 18 12:18 reporter-18-08-18\_12.00.00.log

-rw-r–r–. 1 root root 23M Aug 18 12:00 smtp-18-08-18\_11.00.00.log

-rw-r–r–. 1 root root 9.2M Aug 18 12:18 smtp-18-08-18\_12.00.00.log

-rw-r–r–. 1 root root 1.2M Aug 18 12:00 snmp-18-08-18\_11.00.00.log

-rw-r–r–. 1 root root 415K Aug 18 12:18 snmp-18-08-18\_12.00.00.log

-rw-r–r–. 1 root root 81K Aug 18 12:00 software-18-08-18\_11.00.00.log

-rw-r–r–. 1 root root 8.4K Aug 18 12:18 software-18-08-18\_12.00.00.log

-rw-r–r–. 1 root root 30K Aug 18 12:00 ssh-18-08-18\_11.00.00.log

-rw-r–r–. 1 root root 13K Aug 18 12:18 ssh-18-08-18\_12.00.00.log

-rw-r–r–. 1 root root 217K Aug 18 12:00 ssl-18-08-18\_11.00.00.log

-rw-r–r–. 1 root root 78K Aug 18 12:18 ssl-18-08-18\_12.00.00.log

-rw-r–r–. 1 root root 37K Aug 18 12:00 stats-18-08-18\_11.00.00.log

-rw-r–r–. 1 root root 16K Aug 18 12:18 stats-18-08-18\_12.00.00.log

-rw-r–r–. 1 root root 28 Aug 18 12:18 stderr.log

-rw-r–r–. 1 root root 188 Aug 18 10:11 stdout.log

-rw-r–r–. 1 root root 6.8G Aug 18 12:00 weird-18-08-18\_11.00.00.log

-rw-r–r–. 1 root root 2.5G Aug 18 12:18 weird-18-08-18\_12.00.00.log

-rw-r–r–. 1 root root 178K Aug 18 12:00 x509-18-08-18\_11.00.00.log

-rw-r–r–. 1 root root 80K Aug 18 12:18 x509-18-08-18\_12.00.00.log

# /usr/local/bro/bin/bro --version

/usr/local/bro/bin/bro version 2.5.4

---

<div class="post-metadata">

**Author:** ![Azoff\_Justin\_S](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Azoff\_Justin\_S](https://community.zeek.org/u/Azoff_Justin_S)\
**Post date:** [August 20, 2018, 2:30pm UTC](https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423/2 "2018-08-20T14:30:35Z")

</div>

> All,
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Having an issue with the bro logger crashing due to large volumes of DNS log traffic, 20-30GB an hour.

Is it actually crashing? Are you getting a crash report at all? From the filenames you listed it looks more like log rotation is failing.

> This is completely a local configuration, on a system with super-fast flash storage, 64 cores, 256GB RAM running BRO 2.5.4. If I disable DNS logging, everything works fine without issue. When I enable it, I get the results below. I thought it might be an issue with gzipping the old logs, so I replaced the standard gzip with pigz and I can manually compress the 30+ gig files in seconds, so don’t think that is the issue.

It could be related to the gzipping. The way log rotation works is not great.. all log files get compressed at the same time which can cause some thrashing.

If you set

&nbsp;&nbsp;&nbsp;&nbsp;compresslogs = 0

in broctl.cfg so that broctl does not gzip the logs at all, does the problem go away?

You could do something like that, and then run a script like:

while true; do  
&nbsp;&nbsp;&nbsp;&nbsp;for f in /usr/local/bro/logs/201\*/\*.log ; do  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gzip $f  
&nbsp;&nbsp;&nbsp;&nbsp;done  
&nbsp;&nbsp;&nbsp;&nbsp;sleep 60  
done

to compress the logs in the background serially.

Another thing to keep an eye on is if your logger is able to keep up with the volume of data. This script is a plugin for munin, but you can run it directly:

#!/usr/bin/env python  
import os  
import sys  
import time

DEFAULT\_LOG = "/usr/local/bro/logs/current/dns.log"

def config():  
&nbsp;&nbsp;&nbsp;&nbsp;print """  
graph\_category network

graph\_title Bro log lag  
graph\_vlabel lag  
graph\_args --base 1000 --vertical-label seconds --lower-limit 0  
graph\_info The bro log lag

lag.label lag  
lag.info log message lag in seconds  
lag.min 0  
lag.warning 0:15  
lag.critical 0:60  
""".strip()

&nbsp;&nbsp;&nbsp;&nbsp;return 0

def get\_latest\_time(fn):  
&nbsp;&nbsp;&nbsp;&nbsp;f = open(fn)

&nbsp;&nbsp;&nbsp;&nbsp;f.seek(-4096, os.SEEK\_END)  
&nbsp;&nbsp;&nbsp;&nbsp;end = f.read().splitlines()[1:-1] #ignore possibly incomplete first and last lines  
&nbsp;&nbsp;&nbsp;&nbsp;times = [line.split()[0] for line in end]  
&nbsp;&nbsp;&nbsp;&nbsp;timestamps = map(float, times)  
&nbsp;&nbsp;&nbsp;&nbsp;latest = max(timestamps)  
&nbsp;&nbsp;&nbsp;&nbsp;return latest

def lag(fn):  
&nbsp;&nbsp;&nbsp;&nbsp;lag = 500  
&nbsp;&nbsp;&nbsp;&nbsp;for x in range(3):  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try :  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;latest = get\_latest\_time(fn)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;now = time.time()  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lag = now - latest  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;except (IOError, ValueError):  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#File could be rotating, wait and try again  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;time.sleep(5)  
&nbsp;&nbsp;&nbsp;&nbsp;print "lag.value %f" % lag

if \_\_name\_\_ == "\_\_main\_\_":

&nbsp;&nbsp;&nbsp;&nbsp;filename = os.getenv("BRO\_LAG\_FILENAME", DEFAULT\_LOG)

&nbsp;&nbsp;&nbsp;&nbsp;if sys.argv[1:] and sys.argv[1] == 'config':  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;config()  
&nbsp;&nbsp;&nbsp;&nbsp;else:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lag(filename)

It will output something like

lag.value 2.919352

A normal value should be about 5, anything under 20 is probably ok. If it's 500 and climbing, that's a problem.

Also..

> -rw-r--r--. 1 root root 6.8G Aug 18 12:00 weird-18-08-18\_11.00.00.log  
> -rw-r--r--. 1 root root 2.5G Aug 18 12:18 weird-18-08-18\_12.00.00.log

That's a LOT of weird.log, what's going on there?

---

<div class="post-metadata">

**Author:** ![Chris\_Herdt](https://avatars.discourse-cdn.com/v4/letter/c/dec6dc/32.png) [@Chris\_Herdt](https://community.zeek.org/u/Chris_Herdt)\
**Post date:** [August 20, 2018, 2:54pm UTC](https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423/3 "2018-08-20T14:54:15Z")

</div>

Hi Ron,

I had a similar issue where both the Bro DNS and weird logs were huge. In my case, it turned out that our taps were primarily seeing inbound DNS replies but not all of the outbound DNS requests, which triggered weird log entries. Something to consider if the majority of your weird logs are DNS-related entries.

---

<div class="post-metadata">

**Author:** ![rmcclellan](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rmcclellan](https://community.zeek.org/u/rmcclellan)\
**Post date:** [August 20, 2018, 3:48pm UTC](https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423/4 "2018-08-20T15:48:08Z")

</div>

Justin,

&nbsp;&nbsp;Thanks, I turned off compression and so for 2+ hours, everything is working well. I kinda had an idea it was related to the compression, but thought the pigz replacement would take care of that, guess not. Appreciate the help. Will let everyone know how it goes over the long term. I think you and Chris hit the nail on the head about the weird logs. I haven't really started tuning much, wanted to get the system nice and stable first and then start tuning and looking at the weird stuff, which is heavy DNS.

Thanks Again,

Ron

[root@ current]# cat weird.log | bro-cut name|sort|uniq -c|sort -rn  
34264380 dns\_unmatched\_msg  
16696030 dns\_unmatched\_reply  
330912 DNS\_RR\_unknown\_type  
&nbsp;&nbsp;62288 possible\_split\_routing  
&nbsp;&nbsp;59512 data\_before\_established  
&nbsp;&nbsp;38396 NUL\_in\_line  
&nbsp;&nbsp;21210 inappropriate\_FIN  
&nbsp;&nbsp;21209 line\_terminated\_with\_single\_CR  
&nbsp;&nbsp;18978 DNS\_RR\_length\_mismatch  
&nbsp;&nbsp;&nbsp;1852 bad\_TCP\_checksum  
&nbsp;&nbsp;&nbsp;1060 dnp3\_corrupt\_header\_checksum  
&nbsp;&nbsp;&nbsp;&nbsp;922 truncated\_tcp\_payload  
&nbsp;&nbsp;&nbsp;&nbsp;326 dnp3\_header\_lacks\_magic  
&nbsp;&nbsp;&nbsp;&nbsp;230 DNS\_truncated\_RR\_rdlength\_lt\_len  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;92 non\_ip\_packet\_in\_ethernet  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;92 above\_hole\_data\_without\_any\_acks  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;48 SYN\_seq\_jump  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;46 window\_recision  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;46 dns\_unmatched\_msg\_quantity  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;46 DNS\_truncated\_ans\_too\_short  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;46 DNS\_RR\_bad\_length  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;46 DNS\_Conn\_count\_too\_large  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;46 ayiya\_tunnel\_non\_ip

---

<div class="post-metadata">

**Author:** ![rmcclellan](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rmcclellan](https://community.zeek.org/u/rmcclellan)\
**Post date:** [August 20, 2018, 6:04pm UTC](https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423/5 "2018-08-20T18:04:54Z")

</div>

Update:

&nbsp;&nbsp;Worked for almost 3 hours, but then started failing again. I even changed the log rotation to every 15 minutes and it still crashes . Any other sugestions? Has anyone ever tried to configured syslog-ng to handle the logging?

Warning: broctl config has changed (run the broctl "deploy" command)  
Name Type Host Status Pid Started  
logger logger localhost terminating 28295 20 Aug 12:30:03  
manager manager localhost running 28336 20 Aug 12:30:05  
proxy-1 proxy localhost running 28375 20 Aug 12:30:06  
worker-1-1 worker localhost running 28565 20 Aug 12:30:08

Thanks,

Ron

---

<div class="post-metadata">

**Author:** ![Jim\_Mellander](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@Jim\_Mellander](https://community.zeek.org/u/Jim_Mellander)\
**Post date:** [August 20, 2018, 9:16pm UTC](https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423/6 "2018-08-20T21:16:13Z")

</div>

I hope I’m not asking the obvious, but was the warning heeded?

Warning: broctl config has changed (run the broctl “deploy” command)

---

<div class="post-metadata">

**Author:** ![Azoff\_Justin\_S](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Azoff\_Justin\_S](https://community.zeek.org/u/Azoff_Justin_S)\
**Post date:** [August 21, 2018, 1:08am UTC](https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423/7 "2018-08-21T01:08:11Z")

</div>

That's really interesting.. because "terminating" means something very specific, and not something you would see if it was crashing.

Unfortunately broctl throws away the 2nd part of the status file that would narrow that down further, but there are only a few reasons:

src/main.cc  
275: set\_processing\_status("TERMINATING", "done\_with\_network");  
331: set\_processing\_status("TERMINATING", "terminate\_bro");  
392: set\_processing\_status("TERMINATING", "termination\_signal");  
413: set\_processing\_status("TERMINATING", "sig\_handler");

src/Net.cc  
432: set\_processing\_status("TERMINATING", "net\_finish");  
457: set\_processing\_status("TERMINATING", "net\_delete");

done\_with\_network, net\_finish, and net\_delete wouldn't apply to a logger node that has no network interfaces.

termination\_signal and sig\_handler happen when bro gets a SIGINT or SIGTERM, and terminate\_bro happens  
when bro exits normally.

If it does happen again and stays like that if you could run

$ sudo cat /usr/local/bro/spool/logger/.status  
RUNNING [net\_run]

that should show

TERMINATING [one of those reasons]

which would definitively narrow it down.

Is there anything on your system that would be killing bro? If it were the kernel OOM killer I'd expect that to show up as crashed and not terminating.

---

<div class="post-metadata">

**Author:** ![rmcclellan](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rmcclellan](https://community.zeek.org/u/rmcclellan)\
**Post date:** [August 21, 2018, 12:14pm UTC](https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423/8 "2018-08-21T12:14:28Z")

</div>

Jim,

Never hurts to ask, but I did use deploy.

Thanks,

Ron

---

<div class="post-metadata">

**Author:** ![rmcclellan](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rmcclellan](https://community.zeek.org/u/rmcclellan)\
**Post date:** [August 21, 2018, 12:21pm UTC](https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423/9 "2018-08-21T12:21:39Z")

</div>

Justin,

&nbsp;&nbsp;Nothing really on the system that would be killing logger, system is a base CENTOS 7 box, recently built just for BRO. The .status file shows "TERMINATED[atexit]".

Ron

[root@ ron]# sudo cat /logs/bro/spool/logger/.status  
TERMINATED [atexit]

Name Type Host Status Pid Started  
logger logger localhost crashed  
manager manager localhost running 55680 20 Aug 15:25:47  
proxy-1 proxy localhost running 55719 20 Aug 15:25:49  
worker-1-1 worker localhost running 55893 20 Aug 15:25:50  
worker-1-2 worker localhost running 55897 20 Aug 15:25:50  
worker-1-40 worker localhost running 56411 20 Aug 15:25:50  
worker-1-41 worker localhost crashed  
worker-1-42 worker localhost running 56444 20 Aug 15:25:50  
worker-1-43 worker localhost running 56446 20 Aug 15:25:50

---

<div class="post-metadata">

**Author:** ![Azoff\_Justin\_S](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Azoff\_Justin\_S](https://community.zeek.org/u/Azoff_Justin_S)\
**Post date:** [August 21, 2018, 6:35pm UTC](https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423/10 "2018-08-21T18:35:37Z")

</div>

Ah.. well now that says 'crashed' which is what you'd expect if it was crashing (not 'terminating')

If it is crashing then something should say why...

Is broctl sending you a crash report when that happens? What does broctl diag say?

Are there any kernel OOM messages in dmesg or syslog?

Or any messages that look like

bro[60506]: segfault at 0 ip 00000000005fcf8d sp 00007fffaf9d2f40 error 6 in bro[400000+624000]

---

<div class="post-metadata">

**Author:** ![rmcclellan](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rmcclellan](https://community.zeek.org/u/rmcclellan)\
**Post date:** [August 21, 2018, 6:53pm UTC](https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423/11 "2018-08-21T18:53:32Z")

</div>

Justin,

&nbsp;&nbsp;The first 5 lines are consistent, the last 2 lines the first time seen were today. Crash report wasn't very useful (see below), diag was pretty much the same. Hopefully the OOM message helps.

Ron

Aug 21 09:45:18 aosoc kernel: Out of memory: Kill process 6610 (bro) score 507 or sacrifice child  
Aug 21 09:45:18 aosoc kernel: Killed process 6610 (bro) total-vm:139995144kB, anon-rss:137467264kB, file-rss:0kB, shmem-rss:0kB  
Aug 21 11:32:23 aosoc kernel: bro invoked oom-killer: gfp\_mask=0x201da, order=0, oom\_score\_adj=0  
Aug 21 11:32:23 aosoc kernel: bro cpuset=/ mems\_allowed=0-1  
Aug 21 11:32:23 aosoc kernel: CPU: 57 PID: 21655 Comm: bro Kdump: loaded Not tainted 3.10.0-862.11.6.el7.x86\_64 #1  
Aug 21 11:32:23 aosoc kernel: Out of memory: Kill process 20158 (bro) score 544 or sacrifice child  
Aug 21 11:32:23 aosoc kernel: Killed process 20158 (bro) total-vm:150275592kB, anon-rss:147621508kB, file-rss:0kB, shmem-rss:0kB

===============Crash Report===================

This crash report does not include a backtrace. In order for crash reports to be useful when Bro crashes, a backtrace is needed.

No core file found and gdb is not installed. It is recommended to install gdb so that BroControl can output a backtrace if Bro crashes.

Bro 2.5.4  
Linux 3.10.0-862.11.6.el7.x86\_64

Bro plugins: (none found)

==== No reporter.log

==== stderr.log  
received termination signal

==== stdout.log  
max memory size (kbytes, -m) unlimited  
data seg size (kbytes, -d) unlimited  
virtual memory (kbytes, -v) unlimited  
core file size (blocks, -c) unlimited

==== .cmdline  
-U .status -p broctl -p broctl-live -p local -p logger local.bro broctl base/frameworks/cluster local-logger.bro broctl/auto

==== .env\_vars  
PATH=/usr/local/bro/bin:/usr/local/bro/share/broctl/scripts:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/local/bro/bin:/home/ron/.local/bin:/home/ron/bin:/usr/local/bro/bin  
BROPATH=/logs/bro/spool/installed-scripts-do-not-touch/site::/logs/bro/spool/installed-scripts-do-not-touch/auto:/usr/local/bro/share/bro:/usr/local/bro/share/bro/policy:/usr/local/bro/share/bro/site  
CLUSTER\_NODE=logger

==== .status  
TERMINATED [atexit]

==== No prof.log

==== No packet\_filter.log

==== No loaded\_scripts.log

---

<div class="post-metadata">

**Author:** ![Azoff\_Justin\_S](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Azoff\_Justin\_S](https://community.zeek.org/u/Azoff_Justin_S)\
**Post date:** [August 21, 2018, 8:08pm UTC](https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423/12 "2018-08-21T20:08:17Z")

</div>

Ah, this is great.. well, not great in that it is crashing but great in that now we know what is wrong: You're running out of ram.

So you said you had 256GB, which should normally be more than enough as long as everything is working properly, but I have a feeling some things are not working quite right though.

Have you had a chance to run that python program I posted? If you have a high amount of log lag, something is not keeping up well.

Do you have any graphs of memory usage on your host?

What exactly does this output:

$ cat /proc/cpuinfo |grep 'model name'|sort|uniq -c  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;40 model name : Intel(R) Xeon(R) CPU E5-2470 v2 @ 2.40GHz

The fact that you are seeing

34264380 dns\_unmatched\_msg  
16696030 dns\_unmatched\_reply  
62288 possible\_split\_routing  
59512 data\_before\_established

in your weird.log points to something being very very wrong with your traffic. This can cause bro to work many times harder than it needs to.

How is your load balancing setup in your node.cfg?

Can you try running bro-doctor from bro-pkg: [https://packages.bro.org/packages/view/74d45e8c-4fb7-11e8-88be-0a645a3f3086](https://packages.bro.org/packages/view/74d45e8c-4fb7-11e8-88be-0a645a3f3086)

If you can't run bro-pkg you just need to grab

[https://raw.githubusercontent.com/ncsa/bro-doctor/master/doctor.py](https://raw.githubusercontent.com/ncsa/bro-doctor/master/doctor.py)

and drop it in

/usr/local/bro/lib/broctl/plugins/doctor.py

and run broctl doctor.bro

---

<div class="post-metadata">

**Author:** ![rmcclellan](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rmcclellan](https://community.zeek.org/u/rmcclellan)\
**Post date:** [August 21, 2018, 8:22pm UTC](https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423/13 "2018-08-21T20:22:13Z")

</div>

Thanks Justin, here is the info.

Ron

######################Memory CPUI################################################################

[root@ ron]# free  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;total used free shared buff/cache available  
Mem: 263620592 241469748 861800 4464 21289044 21038584  
Swap: 4194300 80508 4113792

[root@ current]# cat /proc/cpuinfo |grep 'model name'|sort|uniq -c  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;72 model name : Intel(R) Xeon(R) Gold 6140 CPU @ 2.30GHz

######################Perl Script OutputI################################################################

lag.value 500.000000

######################node.cfg################################################################

cat /usr/local/bro/etc/node.cfg  
# Example BroControl node configuration.

---

<div class="post-metadata">

**Author:** ![Azoff\_Justin\_S](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Azoff\_Justin\_S](https://community.zeek.org/u/Azoff_Justin_S)\
**Post date:** [August 21, 2018, 8:43pm UTC](https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423/14 "2018-08-21T20:43:27Z")

</div>

> Thanks Justin, here is the info.
> 
> Ron

ok so there's a lot of stuff wrong here, but it's all fixable.

> ######################Memory CPUI################################################################
> 
> [root@ ron]# free  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;total used free shared buff/cache available  
> Mem: 263620592 241469748 861800 4464 21289044 21038584  
> Swap: 4194300 80508 4113792
> 
> [root@ current]# cat /proc/cpuinfo |grep 'model name'|sort|uniq -c  
> &nbsp;&nbsp;&nbsp;&nbsp;72 model name : Intel(R) Xeon(R) Gold 6140 CPU @ 2.30GHz
> 
> [worker-1]  
> type=worker  
> host=localhost  
> interface=ens1f0  
> lb\_method=pf\_ring  
> lb\_procs=48  
> pin\_cpus=12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60

This is an absolute beast of a CPU, but you only have 36 real cores. I would run something like 30 workers, not 48.  
You also have to ensure you don't pin workers to 'fake' hyperthreading cores. Depending on how the CPU gets  
enumerated you either need to use something like 6 through 35, or every other cpu. 6-35 is probably right for your CPU though.  
This can be verified using hwloc-ps in the hwloc package.. I want to add this to bro-doctor but it's.. tricky 🙂

You may also have 2 NUMA nodes in that case you would probably want to use 15 workers on each NUMA node, which would be something like  
3-18 and 21-36... very tricky. Ideally broctl could just support pin\_cpus=auto as well 🙂

> ######################Perl Script OutputI################################################################
> 
> lag.value 500.000000

This isn't great.. but about what would be expected based on running out of ram.

> [root@ ron]# broctl doctor.bro  
> #################################################################  
> # Checking if many recent connections have a SAD or had history #  
> #################################################################  
> error: No conn log files in the past day???

If you disabled the conn.log then most of the checks that bro-doctor does can't be ran ☹

> ###############################################################################  
> # Checking if bro is linked against a custom malloc like tcmalloc or jemalloc #  
> ###############################################################################  
> error: configured to use a custom malloc=False

I would install gperftools-devel and rebuild bro

> ##################################  
> # Checking pf\_ring configuration #  
> ##################################  
> error: bro binary on node worker-1-1 is neither linked against pf\_ring libpcap or using the bro pf\_ring plugin  
> error: bro binary on node worker-1-2 is neither linked against pf\_ring libpcap or using the bro pf\_ring plugin  
> ..  
> error: configured to use pf\_ring=True pcap=False plugin=False

This is super super bad! This means that every bro processes is seeing all of your traffic.. all 48 of them!

You can fix pf\_ring, but on a recent Centos7 system AF\_Packet works great out of the box, so I would try using that first  
instead. You just need to

bro-pkg install j-gras/bro-af\_packet-plugin

and then in your node.cfg use

[worker-1]  
type=worker  
host=localhost  
interface=af\_packet::ens1f0  
lb\_method=custom  
lb\_procs=30  
pin\_cpus=6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35  
af\_packet\_fanout\_id=22  
af\_packet\_fanout\_mode=AF\_Packet::FANOUT\_HASH

---

<div class="post-metadata">

**Author:** ![Azoff\_Justin\_S](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Azoff\_Justin\_S](https://community.zeek.org/u/Azoff_Justin_S)\
**Post date:** [August 21, 2018, 9:52pm UTC](https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423/15 "2018-08-21T21:52:34Z")

</div>

I double checked this to verify I was saying the right thing, and looking closer at all our boxes that are NUMA it seems the cpus get allocated in round robin between them, so

0,2,4,6,8,10....34 go to numa node 0, then  
1,3,5,7,9,11....35 go to numa node 1

But I think that can depend on kernel version and I swear this changed between centos6 and 7.

This matters more if you have 2 cards you can capture from though, since most likely one card is attached to each numa node.  
If you only have one 10g interface you are capturing from it doesn't matter as much.

$ hwloc-ls -p  
Machine (64GB total)  
NUMANode P#0 (32GB)  
&nbsp;&nbsp;&nbsp;Package P#0 + L3 (14MB)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#0  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#0  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#20  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#4  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#2  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#22  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#1  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#4  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#24  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#3  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#6  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#26  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#2  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#8  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#28  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#12  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#10  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#30  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#8  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#12  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#32  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#11  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#14  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#34  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#9  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#16  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#36  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#10  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#18  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#38  
&nbsp;&nbsp;&nbsp;HostBridge P#2  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PCIBridge  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PCI 8086:1584  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Net "p2p1"  
NUMANode P#1 (32GB)  
&nbsp;&nbsp;&nbsp;Package P#1 + L3 (14MB)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#0  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#1  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#21  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#4  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#3  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#23  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#1  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#5  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#25  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#3  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#7  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#27  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#2  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#9  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#29  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#12  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#11  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#31  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#8  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#13  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#33  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#11  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#15  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#35  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#9  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#17  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#37  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#10  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#19  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#39  
&nbsp;&nbsp;&nbsp;HostBridge P#6  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PCIBridge  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PCI 8086:1584  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Net "p3p1"

This gets really confusing but it shows that p2p1 is connected to the first numa node and has real cpus 0,2,4,8... and hyperthread cores 20,22,24,26...

For boxes like that, the configuration would look something like

[...p2p1]  
type=worker  
host=..  
interface=af\_packet::p2p1  
lb\_method=custom  
lb\_procs=8  
pin\_cpus=4,6,8,10,12,14,16,18  
af\_packet\_fanout\_id=21  
af\_packet\_fanout\_mode=AF\_Packet::FANOUT\_HASH

[...p3p1]  
type=worker  
host=..  
interface=af\_packet::p3p1  
lb\_method=custom  
lb\_procs=8  
pin\_cpus=5,7,9,11,13,15,17,19  
af\_packet\_fanout\_id=22  
af\_packet\_fanout\_mode=AF\_Packet::FANOUT\_HASH

---

<div class="post-metadata">

**Author:** ![rmcclellan](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rmcclellan](https://community.zeek.org/u/rmcclellan)\
**Post date:** [August 21, 2018, 10:10pm UTC](https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423/16 "2018-08-21T22:10:58Z")

</div>

Justin,

&nbsp;&nbsp;I finished most of your recommendations, just need to rebuild bro, but was going to let it run over night and see how it is running now. I really appreciate all the help.

Thanks,

Ron

]# hwloc-ls -p  
Machine (256GB total)  
&nbsp;&nbsp;NUMANode P#0 (128GB)  
&nbsp;&nbsp;&nbsp;&nbsp;Package P#0 + L3 (25MB)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#0  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#0  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#36  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#1  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#1  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#37  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#2  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#2  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#38  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#3  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#3  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#39  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#4  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#4  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#40  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#8  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#5  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#41  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#9  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#6  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#42  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#10  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#7  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#43  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#11  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#8  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#44  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#16  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#9  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#45  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#17  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#10  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#46  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#18  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#11  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#47  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#19  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#12  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#48  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#20  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#13  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#49  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#24  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#14  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#50  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#25  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#15  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#51  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#26  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#16  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#52  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#27  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#17  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#53  
&nbsp;&nbsp;&nbsp;&nbsp;HostBridge P#0  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PCIBridge  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PCI 14e4:1657  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Net "eno1"  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PCI 14e4:1657  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Net "eno2"  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PCI 14e4:1657  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Net "eno3"  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PCI 14e4:1657  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Net "eno4"  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PCIBridge  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PCI 102b:0538  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GPU "card0"  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GPU "controlD64"  
&nbsp;&nbsp;&nbsp;&nbsp;HostBridge P#1  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PCIBridge  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PCI 8086:1572  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Net "ens1f0"  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PCI 8086:1572  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Net "ens1f1"  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PCIBridge  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PCI 8086:1572  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Net "ens3f0"  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PCI 8086:1572  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Net "ens3f1"  
&nbsp;&nbsp;&nbsp;&nbsp;HostBridge P#2  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PCIBridge  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PCI 8086:1572  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Net "ens2f0"  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PCI 8086:1572  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Net "ens2f1"  
&nbsp;&nbsp;&nbsp;&nbsp;HostBridge P#3  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PCIBridge  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PCI 9005:028f  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Block(Disk) "sda"  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Block(Disk) "sdc"  
&nbsp;&nbsp;NUMANode P#1 (128GB) + Package P#1 + L3 (25MB)  
&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#0  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#18  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#54  
&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#1  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#19  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#55  
&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#2  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#20  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#56  
&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#3  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#21  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#57  
&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#4  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#22  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#58  
&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#8  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#23  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#59  
&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#9  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#24  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#60  
&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#10  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#25  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#61  
&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#11  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#26  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#62  
&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#16  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#27  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#63  
&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#17  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#28  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#64  
&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#18  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#29  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#65  
&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#19  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#30  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#66  
&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#20  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#31  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#67  
&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#24  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#32  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#68  
&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#25  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#33  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#69  
&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#26  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#34  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#70  
&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#27  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#35  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#71

---

<div class="post-metadata">

**Author:** ![Azoff\_Justin\_S](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Azoff\_Justin\_S](https://community.zeek.org/u/Azoff_Justin_S)\
**Post date:** [August 22, 2018, 1:46am UTC](https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423/17 "2018-08-22T01:46:19Z")

</div>

> &nbsp;&nbsp;I finished most of your recommendations, just need to rebuild bro, but was going to let it run over night and see how it is running now. I really appreciate all the help.

Great! There may be more things to fix, but once that load balancing is working properly things will be in a lot better shape.

This was really helpful to see as well:

> ]# hwloc-ls -p  
> Machine (256GB total)  
> NUMANode P#0 (128GB)  
> &nbsp;&nbsp;&nbsp;Package P#0 + L3 (25MB)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#0  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#0 \<----  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#36  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#1  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#1 \<---  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#37

You have CPU 0,1,2,3.. on the same numa node, but every box I have puts 0,2,4... on one and 1,3,5... on the other.

Machine (64GB total)  
NUMANode P#0 (32GB)  
&nbsp;&nbsp;Package P#0 + L3 (14MB)  
&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#0  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#0 \<---  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#20  
&nbsp;&nbsp;&nbsp;&nbsp;L2 (1024KB) + L1d (32KB) + L1i (32KB) + Core P#4  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#2 \<---  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PU P#22

All the more reason for me to get bro-doctor to do this analysis and confirm the proper pin\_cpus values are being used.

---

<div class="post-metadata">

**Author:** ![rmcclellan](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rmcclellan](https://community.zeek.org/u/rmcclellan)\
**Post date:** [August 22, 2018, 2:48pm UTC](https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423/18 "2018-08-22T14:48:01Z")

</div>

Justin,

&nbsp;&nbsp;Got good news and solid progress with your help. BRO is running on both boxes and hasn't crashed since 10pm last night. If I read the data about NUMA from my systems, I don't really need to split the load between 2 workers as you did, right? I'm working on tuning some now and also trying to address the really high lag (500) that I'm still seeing. Currently seeing some loss on it, but will continue to tune and see what if I can get that under control. Let me know if you need help testing the doctor script.

Ron

# cat capture\_loss.log  
#separator \x09  
#set\_separator ,  
#empty\_field (empty)  
#unset\_field -  
#path capture\_loss  
#open 2018-08-22-10-01-21  
#fields ts ts\_delta peer gaps acks percent\_lost  
#types time interval string count count double  
1534946481.938006 900.000084 worker-1-20 33 696 4.741379  
1534946481.941548 900.000000 worker-1-24 20 2722 0.734754  
1534946481.938533 900.000059 worker-1-21 630 40222 1.566307  
1534946481.938396 900.000070 worker-1-9 89 1470 6.054422  
1534946481.941452 900.000044 worker-1-8 156 1821 8.566722  
1534946481.941323 900.000017 worker-1-12 1062 232679 0.456423  
1534946481.939547 900.000037 worker-1-27 1023 216063 0.473473  
1534946481.937269 900.000040 worker-1-10 749 5465 13.705398  
1534946481.937517 900.000111 worker-1-3 87 15720 0.553435  
1534946481.941367 900.000649 worker-1-16 117 2187 5.349794  
1534946481.939451 900.000079 worker-1-7 870 195358 0.445336  
1534946481.940450 900.000041 worker-1-5 111 626 17.731629  
1534946481.931345 900.000019 worker-1-4 44 885 4.971751  
1534946481.941268 900.000074 worker-1-17 131 1641 7.982937  
1534946481.946945 900.000039 worker-1-18 189 1350 14.0  
1534946481.941532 900.000083 worker-1-25 118 9414 1.253452  
1534946481.942680 900.000094 worker-1-30 1375 2635 52.182163  
1534946481.937385 900.000074 worker-1-1 1050 232183 0.452229  
1534946481.939621 900.000062 worker-1-26 20 1973 1.013685  
1534946481.942331 900.000127 worker-1-2 1236 240350 0.51425  
1534946481.938535 900.000003 worker-1-29 133 2923 4.55012  
1534946481.938737 900.000077 worker-1-13 1463 223976 0.653195  
1534946481.937868 900.000121 worker-1-15 278 2360 11.779661  
1534946481.937738 900.000006 worker-1-28 36 765 4.705882  
1534946481.940076 900.000039 worker-1-23 43 3749 1.146973  
1534946481.940530 900.000008 worker-1-22 1151 4798 23.989162  
1534946481.944632 900.000030 worker-1-19 510 88481 0.576395  
1534946481.937329 900.000045 worker-1-6 891 146039 0.610111  
1534946481.938533 900.000095 worker-1-14 206 2276 9.050967  
1534946481.937384 900.000074 worker-1-11 222 2176 10.202206  
1534947381.938548 900.000013 worker-1-29 1135 241449 0.470079  
1534947381.942682 900.000002 worker-1-30 399 13150 3.034221  
1534947381.939458 900.000007 worker-1-7 332 66504 0.499218  
1534947381.937742 900.000004 worker-1-28 31 711 4.360056  
1534947381.940622 900.000092 worker-1-22 77 1728 4.456019  
1534947381.938073 900.000067 worker-1-20 103 2343 4.396073  
1534947381.941622 900.000074 worker-1-24 90 7394 1.217203  
1534947381.941549 900.000017 worker-1-25 1259 235553 0.534487  
1534947381.941454 900.000087 worker-1-16 231 5455 4.234647  
1534947381.942399 900.000068 worker-1-2 69 1293 5.336427  
1534947381.941324 900.000056 worker-1-17 152 759 20.02635  
1534947381.931395 900.000050 worker-1-4 1310 240018 0.545792  
1534947381.938810 900.000073 worker-1-13 109 17301 0.630021  
1534947381.938606 900.000073 worker-1-14 305 2184 13.965201  
1534947381.937398 900.000069 worker-1-6 67 3465 1.933622  
1534947381.940457 900.000007 worker-1-5 118 1280 9.21875  
1534947381.937470 900.000085 worker-1-1 24 1581 1.518027  
1534947381.940195 900.000119 worker-1-23 189 20872 0.905519  
1534947381.937614 900.000097 worker-1-3 1167 213001 0.547885  
1534947381.944751 900.000119 worker-1-19 160 4249 3.765592  
1534947381.937943 900.000075 worker-1-15 593 2541 23.337269  
1534947381.947066 900.000121 worker-1-18 809 160344 0.50454  
1534947381.939548 900.000001 worker-1-27 219 2612 8.38438  
1534947381.938628 900.000095 worker-1-21 302 1627 18.56177  
1534947381.937326 900.000057 worker-1-10 107 1763 6.0692  
1534947381.938497 900.000101 worker-1-9 1599 238664 0.66998  
1534947381.941398 900.000075 worker-1-12 201 2936 6.846049  
1534947381.937399 900.000015 worker-1-11 1382 236433 0.584521  
1534947381.939677 900.000056 worker-1-26 52 1100 4.727273  
1534947381.941453 900.000001 worker-1-8 224 1601 13.991255  
1534948281.939548 900.000090 worker-1-7 1088 235524 0.461949  
1534948281.941678 900.000129 worker-1-25 202 32683 0.618058  
1534948281.947198 900.000132 worker-1-18 284 6208 4.574742  
1534948281.937477 900.000079 worker-1-6 70 14679 0.476872  
1534948281.937532 900.000062 worker-1-1 57 1621 3.516348  
1534948281.937477 900.000078 worker-1-11 71 24940 0.284683  
1534948281.938938 900.000128 worker-1-13 111 12288 0.90332  
1534948281.941679 900.000057 worker-1-24 731 121315 0.602564  
1534948281.938621 900.000015 worker-1-14 1056 230109 0.458913  
1534948281.942751 900.000069 worker-1-30 34 448 7.589286  
1534948281.938548 900.000000 worker-1-29 219 1033 21.200387  
1534948281.941325 900.000001 worker-1-17 671 111097 0.603977  
1534948281.937348 900.000022 worker-1-10 145 1917 7.563902  
1534948281.938055 900.000112 worker-1-15 859 187429 0.458307  
1534948281.939622 900.000074 worker-1-27 50 3453 1.448016  
1534948281.931396 900.000001 worker-1-4 193 3759 5.134344  
1534948281.937780 900.000038 worker-1-28 230 6086 3.779165  
1534948281.938109 900.000036 worker-1-20 1135 230316 0.492801  
1534948281.938512 900.000015 worker-1-9 44 3888 1.131687  
1534948281.940323 900.000128 worker-1-23 30 1212 2.475248  
1534948281.939677 900.000000 worker-1-26 165 6336 2.604167  
1534948281.940527 900.000070 worker-1-5 96 5162 1.859744  
1534948281.937736 900.000122 worker-1-3 1123 249305 0.450452  
1534948281.941454 900.000001 worker-1-8 67 1910 3.507853  
1534948281.940679 900.000057 worker-1-22 115 4310 2.668213  
1534948281.938677 900.000049 worker-1-21 25 2141 1.167679  
1534948281.944879 900.000128 worker-1-19 29 1637 1.771533  
1534948281.942454 900.000055 worker-1-2 36 2033 1.770782  
1534948281.941453 900.000055 worker-1-12 26 991 2.623613  
1534948281.941454 900.000000 worker-1-16 1127 230791 0.488321

cat capture\_loss.log  
#separator \x09  
#set\_separator ,  
#empty\_field (empty)  
#unset\_field -  
#path capture\_loss  
#open 2018-08-22-10-06-13  
#fields ts ts\_delta peer gaps acks percent\_lost  
#types time interval string count count double  
1534946772.685666 900.000108 worker-1-9 71276 209039 34.096987  
1534946772.682117 900.000110 worker-1-20 43286 430827 10.047188  
1534946772.686758 900.000020 worker-1-22 58337 172653 33.788582  
1534946772.689750 900.000013 worker-1-17 61579 422200 14.585268  
1534946772.683422 900.000599 worker-1-4 62846 224500 27.993764  
1534946772.692533 900.000076 worker-1-13 56519 190555 29.660203  
1534946772.684749 900.000086 worker-1-15 41612 129870 32.041272  
1534946772.684889 900.000230 worker-1-27 76559 187163 40.904987  
1534946772.683731 900.000001 worker-1-25 74450 188407 39.515517  
1534946772.681934 900.000111 worker-1-5 50253 153355 32.769065  
1534946772.682021 900.000012 worker-1-28 52191 151854 34.369197  
1534946772.682825 900.000074 worker-1-8 52037 190660 27.293087  
1534946772.699409 900.000084 worker-1-16 88137 266670 33.050962  
1534946772.685734 900.000100 worker-1-30 51271 238600 21.488265  
1534946772.682739 900.000022 worker-1-6 66273 250566 26.449319  
1534946772.682741 900.000063 worker-1-26 49902 153687 32.46989  
1534946772.681960 900.000006 worker-1-1 89188 255018 34.973218  
1534946772.682631 900.000622 worker-1-29 60705 210476 28.841768  
1534946772.681953 900.000075 worker-1-2 38281 125211 30.573192  
1534946772.682673 900.000007 worker-1-3 67450 187531 35.967387  
1534946772.686732 900.000060 worker-1-23 55932 191885 29.148709  
1534946772.681828 900.000005 worker-1-7 66947 445007 15.044033  
1534946772.681886 900.000007 worker-1-11 48944 138084 35.445091  
1534946772.693528 900.000000 worker-1-14 65762 188557 34.876456  
1534946772.681885 900.000006 worker-1-10 62149 428124 14.516589  
1534946772.685697 900.000017 worker-1-21 48039 147640 32.53793  
1534946772.683753 900.000022 worker-1-19 59660 157172 37.958415  
1534946772.705397 900.000127 worker-1-24 71820 223813 32.089289  
1534946772.688718 900.000117 worker-1-18 48410 452562 10.696877  
1534946772.685511 900.000137 worker-1-12 46673 145455 32.087587  
1534947672.682048 900.000114 worker-1-5 68107 180382 37.757093  
1534947672.683025 900.000286 worker-1-6 45761 183027 25.002322  
1534947672.685750 900.000053 worker-1-21 50836 422213 12.040368  
1534947672.683879 900.000126 worker-1-19 53010 178899 29.631244  
1534947672.693643 900.000115 worker-1-14 92038 425392 21.636044  
1534947672.682825 900.000084 worker-1-26 55076 176437 31.215675  
1534947672.682008 900.000123 worker-1-10 73148 207138 35.313656  
1534947672.699475 900.000066 worker-1-16 72461 223957 32.354872  
1534947672.684952 900.000063 worker-1-27 47858 167864 28.509984  
1534947672.686884 900.000126 worker-1-22 65305 192727 33.884718  
1534947672.681973 900.000020 worker-1-2 60511 181325 33.37157  
1534947672.682136 900.000176 worker-1-1 109592 280275 39.101597  
1534947672.682749 900.000118 worker-1-29 64164 192112 33.399267  
1534947672.689756 900.000006 worker-1-17 61667 166246 37.093825  
1534947672.683803 900.000072 worker-1-25 56366 464877 12.124928  
1534947672.682152 900.000035 worker-1-20 49701 148229 33.529876  
1534947672.685826 900.000092 worker-1-30 54071 160228 33.746287  
1534947672.684823 900.000074 worker-1-15 60758 204305 29.738871  
1534947672.685527 900.000016 worker-1-12 51410 166297 30.914569  
1534947672.688722 900.000004 worker-1-18 73693 218226 33.76912  
1534947672.682082 900.000061 worker-1-28 62184 198747 31.288019  
1534947672.686826 900.000094 worker-1-23 57861 221752 26.092662  
1534947672.682903 900.000078 worker-1-8 48482 219779 22.059432  
1534947672.685711 900.000045 worker-1-9 53372 172244 30.986275  
1534947672.692602 900.000069 worker-1-13 62358 502957 12.398277  
1534947672.682167 900.000281 worker-1-11 48767 198101 24.617241  
1534947672.705447 900.000050 worker-1-24 55112 186729 29.51443  
1534947672.682731 900.000058 worker-1-3 56891 162845 34.935675  
1534947672.683487 900.000065 worker-1-4 78602 255868 30.719746  
1534947672.681880 900.000052 worker-1-7 51099 541967 9.428434  
1534948572.682094 900.000086 worker-1-10 82032 524780 15.631693  
1534948572.693667 900.000024 worker-1-14 85369 297217 28.722785  
1534948572.682472 900.000499 worker-1-2 53654 221056 24.271678  
1534948572.686886 900.000002 worker-1-22 55666 467706 11.901921  
1534948572.685008 900.000056 worker-1-27 86916 263647 32.966808  
1534948572.682279 900.000127 worker-1-20 89828 256003 35.088651  
1534948572.682223 900.000087 worker-1-1 62337 344970 18.070267  
1534948572.685750 900.000000 worker-1-21 70389 510644 13.784359  
1534948572.684880 900.000057 worker-1-15 67459 206447 32.676183  
1534948572.685740 900.000029 worker-1-9 57163 227031 25.1785  
1534948572.682752 900.000021 worker-1-3 61958 204039 30.365763  
1534948572.682835 900.000010 worker-1-26 54506 196350 27.759613  
1534948572.683153 900.000128 worker-1-6 60501 190365 31.781577  
1534948572.682183 900.000016 worker-1-11 63835 191625 33.312459  
1534948572.682208 900.000126 worker-1-28 91876 284589 32.28375  
1534948572.683828 900.000025 worker-1-25 44239 139128 31.797338  
1534948572.685880 900.000054 worker-1-30 55616 172434 32.2535  
1534948572.689884 900.000128 worker-1-17 69725 178142 39.140124  
1534948572.681961 900.000081 worker-1-7 53776 220472 24.391306  
1534948572.683937 900.000058 worker-1-19 50184 163270 30.736816  
1534948572.685538 900.000011 worker-1-12 60185 260306 23.120865  
1534948572.686889 900.000063 worker-1-23 59788 194439 30.748975  
1534948572.682908 900.000005 worker-1-8 60904 532647 11.434214  
1534948572.692674 900.000072 worker-1-13 67152 216975 30.949188  
1534948572.688750 900.000028 worker-1-18 70383 235710 29.859997  
1534948572.705484 900.000037 worker-1-24 57008 201189 28.335545  
1534948572.682147 900.000099 worker-1-5 61878 194825 31.760811  
1534948572.699536 900.000061 worker-1-16 76385 256671 29.759887  
1534948572.682829 900.000080 worker-1-29 52464 188150 27.884135  
1534948572.683536 900.000049 worker-1-4 110222 314119 35.08925

[root@aosoc current]# broctl netstats  
worker-1-1: 1534949053.166850 recvd=813997 dropped=0 link=813997  
worker-1-2: 1534949053.366803 recvd=873351 dropped=0 link=873353  
worker-1-3: 1534949053.567778 recvd=1770808 dropped=0 link=1770810  
worker-1-4: 1534949053.767852 recvd=865443 dropped=0 link=865449  
worker-1-5: 1534949053.968873 recvd=349355 dropped=0 link=349361  
worker-1-6: 1534949054.168785 recvd=1152160 dropped=0 link=1152161  
worker-1-7: 1534949054.368825 recvd=1358553 dropped=0 link=1358553  
worker-1-8: 1534949054.569808 recvd=345267 dropped=0 link=345272  
worker-1-9: 1534949054.769982 recvd=856725 dropped=0 link=856732  
worker-1-10: 1534949054.969811 recvd=351148 dropped=0 link=351148  
worker-1-11: 1534949055.170855 recvd=883897 dropped=0 link=883897  
worker-1-12: 1534949055.370950 recvd=820117 dropped=0 link=820125  
worker-1-13: 1534949055.571899 recvd=1132465 dropped=0 link=1132473  
worker-1-14: 1534949055.771751 recvd=823249 dropped=0 link=823249  
worker-1-15: 1534949055.972921 recvd=754342 dropped=0 link=754343  
worker-1-16: 1534949056.173778 recvd=822102 dropped=0 link=822106  
worker-1-17: 1534949056.373806 recvd=570905 dropped=0 link=570911  
worker-1-18: 1534949056.573815 recvd=1033845 dropped=0 link=1033846  
worker-1-19: 1534949056.774737 recvd=648977 dropped=0 link=649001  
worker-1-20: 1534949056.974823 recvd=816836 dropped=0 link=816838  
worker-1-21: 1534949057.175858 recvd=423896 dropped=0 link=423901  
worker-1-22: 1534949057.375894 recvd=761794 dropped=0 link=761796  
worker-1-23: 1534949057.576737 recvd=415151 dropped=0 link=415153  
worker-1-24: 1534949057.776887 recvd=604342 dropped=0 link=604349  
worker-1-25: 1534949057.978046 recvd=911772 dropped=0 link=911785  
worker-1-26: 1534949058.177749 recvd=358386 dropped=0 link=358395  
worker-1-27: 1534949058.379062 recvd=1283463 dropped=0 link=1283465  
worker-1-28: 1534949058.578751 recvd=364801 dropped=0 link=364807  
worker-1-29: 1534949058.778735 recvd=930041 dropped=0 link=930042  
worker-1-30: 1534949058.979938 recvd=857963 dropped=0 link=857967

---

<div class="post-metadata">

**Author:** ![Azoff\_Justin\_S](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Azoff\_Justin\_S](https://community.zeek.org/u/Azoff_Justin_S)\
**Post date:** [August 22, 2018, 2:58pm UTC](https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423/19 "2018-08-22T14:58:35Z")

</div>

> Justin,
> 
> &nbsp;&nbsp;Got good news and solid progress with your help. BRO is running on both boxes and hasn't crashed since 10pm last night. If I read the data about NUMA from my systems, I don't really need to split the load between 2 workers as you did, right?

If you can get another NIC so each box has 2, then you could divide the workers between each NIC and NUMA node. Otherwise it doesn't matter so much.

> I'm working on tuning some now and also trying to address the really high lag (500) that I'm still seeing. Currently seeing some loss on it, but will continue to tune and see what if I can get that under control. Let me know if you need help testing the doctor script.
> 
> Ron
> 
> 1534948572.682908 900.000005 worker-1-8 60904 532647 11.434214  
> 1534948572.692674 900.000072 worker-1-13 67152 216975 30.949188  
> 1534948572.688750 900.000028 worker-1-18 70383 235710 29.859997  
> 1534948572.705484 900.000037 worker-1-24 57008 201189 28.335545  
> 1534948572.682147 900.000099 worker-1-5 61878 194825 31.760811  
> 1534948572.699536 900.000061 worker-1-16 76385 256671 29.759887  
> 1534948572.682829 900.000080 worker-1-29 52464 188150 27.884135  
> 1534948572.683536 900.000049 worker-1-4 110222 314119 35.08925
> 
> [root@aosoc current]# broctl netstats  
> worker-1-1: 1534949053.166850 recvd=813997 dropped=0 link=813997  
> worker-1-2: 1534949053.366803 recvd=873351 dropped=0 link=873353  
> worker-1-3: 1534949053.567778 recvd=1770808 dropped=0 link=1770810  
> worker-1-4: 1534949053.767852 recvd=865443 dropped=0 link=865449  
> worker-1-5: 1534949053.968873 recvd=349355 dropped=0 link=349361  
> worker-1-6: 1534949054.168785 recvd=1152160 dropped=0 link=1152161  
> worker-1-7: 1534949054.368825 recvd=1358553 dropped=0 link=1358553  
> worker-1-8: 1534949054.569808 recvd=345267 dropped=0 link=345272  
> worker-1-9: 1534949054.769982 recvd=856725 dropped=0 link=856732  
> worker-1-10: 1534949054.969811 recvd=351148 dropped=0 link=351148  
> worker-1-11: 1534949055.170855 recvd=883897 dropped=0 link=883897  
> worker-1-12: 1534949055.370950 recvd=820117 dropped=0 link=820125  
> worker-1-13: 1534949055.571899 recvd=1132465 dropped=0 link=1132473  
> worker-1-14: 1534949055.771751 recvd=823249 dropped=0 link=823249  
> worker-1-15: 1534949055.972921 recvd=754342 dropped=0 link=754343  
> worker-1-16: 1534949056.173778 recvd=822102 dropped=0 link=822106  
> worker-1-17: 1534949056.373806 recvd=570905 dropped=0 link=570911  
> worker-1-18: 1534949056.573815 recvd=1033845 dropped=0 link=1033846  
> worker-1-19: 1534949056.774737 recvd=648977 dropped=0 link=649001  
> worker-1-20: 1534949056.974823 recvd=816836 dropped=0 link=816838  
> worker-1-21: 1534949057.175858 recvd=423896 dropped=0 link=423901  
> worker-1-22: 1534949057.375894 recvd=761794 dropped=0 link=761796  
> worker-1-23: 1534949057.576737 recvd=415151 dropped=0 link=415153  
> worker-1-24: 1534949057.776887 recvd=604342 dropped=0 link=604349  
> worker-1-25: 1534949057.978046 recvd=911772 dropped=0 link=911785  
> worker-1-26: 1534949058.177749 recvd=358386 dropped=0 link=358395  
> worker-1-27: 1534949058.379062 recvd=1283463 dropped=0 link=1283465  
> worker-1-28: 1534949058.578751 recvd=364801 dropped=0 link=364807  
> worker-1-29: 1534949058.778735 recvd=930041 dropped=0 link=930042  
> worker-1-30: 1534949058.979938 recvd=857963 dropped=0 link=857967

If you're seeing a high percentage of capture loss but netstats is showing 0 dropped packets that means one of two things:

\* Something still isn't right with the load balancing. It could be that your NIC isn't doing symmetric hashing properly.  
\* There's an issue with the traffic upstream of bro.

A bunch of the checks that bro-doctor does can help diagnose this, but you'd need to re-enable the conn.log

---

<div class="post-metadata">

**Author:** ![rmcclellan](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rmcclellan](https://community.zeek.org/u/rmcclellan)\
**Post date:** [August 22, 2018, 3:40pm UTC](https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423/20 "2018-08-22T15:40:54Z")

</div>

Sorry, forgot to send that, I did re-enable the conn.log.

Ron

[Next page](https://community.zeek.org/t/bro-logger-crashing-due-to-large-dns-log-files/5423.md?page=2)
