--quiet suppresses the notices.
How the format is chosen
-o/--outputon the command line.- The
outputsetting from a project.bronto.tomlor your profile. - Otherwise, based on where stdout goes:
Formats
Use
jsonl for streaming, since a consumer can process each line as it arrives. json
has to be parsed as a whole.
Numbers keep their exact value in json, jsonl, and --jq output. 64-bit ids such as
metadata.sequence aren’t rounded to floats.
Some views render their own layout at a terminal instead of a table: the expanded view
(search -x), --histogram, --patterns, live tail aggregates, and the traces show
and traces shape waterfalls.
—fields
--fields a,b,c keeps only the named keys in json, jsonl, and csv, and picks the
columns in table output for resource lists, search, and tail.
--fields '?' prints the field names available instead of the data. For the streaming
commands (tail, traces), combine it with a machine format such as -o jsonl.
search flattens each event, and the fields parsed from the log line sit under
message_kvs.. --fields takes either form: a bare status finds message_kvs.status
when the event has no top-level status key, and the column or key is named the way you
typed it:
message_kvs. fallback. A name that matches neither is
left out. The fallback applies only to names you pass to --fields; without it, each
column shows its exact key. tail asks the server for the fields you name, so it takes the same plain names.
--fields is rejected with -o raw, and with the traces show and traces shape
renderers.
—jq
--jq '<expr>' applies a jq expression and prints each result on its own line.
- It needs
jsonorjsonloutput. At a terminal, pass-o jsonor-o jsonl; piped, the default formats already qualify. - With
jsonoutput of a list, the expression runs once per element. - It runs after
--fields. Without--fieldsit sees the full keys, such as."message_kvs.host"on a search event. With--fields hostit sees only the output keys you requested, so write.host. - A value that makes the expression fail is skipped. The other values still print. This
differs from the
jqCLI, which stops at the first error. - Results print as compact JSON, so strings keep their quotes.
-r(--raw-output) prints string results without quotes, likejq -r, and other values as compact JSON. It needs--jq.
-x / —expand
bronto search -x prints each event as a block of key value lines with every field,
untruncated. It works only with table output: with -o json, jsonl, csv, or raw it fails with a
usage error, because those formats already include every field. To get the expanded view
in a pipe, pass -o table -x.
Color
Colors are on at a terminal and off otherwise. The order of precedence is--no-color,
then NO_COLOR, then FORCE_COLOR, then TERM=dumb, then whether stdout is a terminal.
