fstrm_capture(1) | General Commands Manual | fstrm_capture(1) |
fstrm_capture - Receive and save Frame Streams data from a socket.
fstrm_capture -t content-type -w
filename
[ -u socket-path ] [ -a IP -p port
]
[ -c max-connections ] [ -b buffer-size ]
[ -s seconds ] [ --gmtime ] [ --localtime ]
[ -d [-d ...] ]
fstrm_capture --type content-type --write
filename
[ --unix socket-path ] [ --tcp IP --port
port ]
[ --maxconns max-connections ] [ --buffersize
buffer-size ]
[ --split seconds ] [ --gmtime ] [ --localtime ]
[ --debug [--debug ...] ]
fstrm_capture listens on a UNIX domain or TCP socket, receives Frame Streams data, and writes the data to a file.
If the --gmtime or --localtime option is given, filename is preprocessed with strftime(). This will allow specifying a format string which includes the date and time, for example, for the created filename.
If filename is "-" and standard output is not connected to a terminal, fstrm_capture will write to standard output. Output splitting (-s) may not be used with a filename of "-".
Sending SIGHUP to fstrm_capture will flush any buffered output to the file. Sending SIGUSR1 will close and reopen the file.
The default buffersize is 262144 (256KiB).
Note that this file rotation is triggered by incoming data, so it may be delayed after the interval.
Receive dnstap data and save to hourly rotating files (with a converted filename such as /var/log/dnstap/dnstap-2018-05-04-12:58:48.fstrm).
fstrm_capture -t protobuf:dnstap.Dnstap \ -u /var/run/named/dnstap.sock \ -w /var/log/dnstap/dnstap-%F-%T.fstrm \ -s 3600 --gmtime
fstrm_dump(1), fstrm_replay(1), strftime(3),
Frame Streams C Library https://farsightsec.github.io/fstrm