BRO-CUT(1)
β¨ NAME β¨
okay bestie, this is the manual page for bro-cut, and it's from the User Commands corner of the man page universe π and what it does is parse bro logs. that's it. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
bro-cut [options] [<columns>]
π DESCRIPTION π
so like, bro-cut pulls the columns you ask for out of an ASCII Bro log that's coming in on standard input π₯. if you don't give it any columns? it just selects all of them, no big deal, main character behavior. π
and by default β and this is important, bestie β bro-cut does not include format header blocks in the output. like, it just skips them. so clean. so minimal. π
π OPTIONS π
-cβ includes the first format header block in the output. just the one. π₯-Cβ includes all format header blocks in the output. greedy in the best way, we love to see it. π-dβ converts time values into a human-readable format. lowkey essential. needsgawkthough, so check that first. π«Ά-D <fmt>β same energy as-d, but you get to specify the format for the time yourself. peepstrftime(3)for the syntax. iykyk. π§-F <ofs>β sets a different output field separator. so if you're not feeling the default, go off. π-nβ prints all fields except the ones you specified. yes, it flips the whole thing. iconic. π-uβ like-d, but prints timestamps in UTC instead of local time. needsgawktoo. β-U <fmt>β like-D, but prints timestamps in UTC instead of local time. needsgawk. πΈ
π¦ ENVIRONMENT π¦
BRO_CUT_TIMEFMTβ for the time conversion, you can also specify the format string by setting the environment variable$BRO_CUT_TIMEFMT. so you literally never have to type it out again, obsessed. β¨
π EXAMPLES π
here's the moment you've been waiting for, bestie:
cat conn.log | bro-cut -d ts id.orig_h id.orig_p
cat the log, pipe it in, grab those columns, human-readable timestamps, slay. π₯
π AUTHOR π
bro-cut was written by The Bro Project <info@bro.org>. π
this manual page was written by RaΓΊl Benencia <rul@kalgan.cc> for the Debian project (but may be used by others). no gatekeeping here, the door is open. π
and that's the whole page fr fr π this is bro-cut, from the bro-cut source, dated November 2014. go forth and parse those logs, you absolute legend. ππ
π¦
π¦ where this page comes from
- debian bookworm: bro-aux 0.42-1 Β· BSD-3-Clause
- debian trixie: bro-aux 0.42-1+b1 Β· BSD-3-Clause
- ubuntu jammy: bro-aux 0.42-1 Β· BSD-3-Clause
- ubuntu noble: bro-aux 0.42-1build2 Β· BSD-3-Clause
- ubuntu resolute: bro-aux 0.42-1build2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms