stoQ plugin that pulls from the VTMIS File Feed and processes each result.
All options below may be set by:
-
apikey
[str]: VTMIS API key -
time_since
[str]: Time sincenow
to pull from file feed. May be represented in either minutes (e.g. 1m), hours (e.g 1h) or as outlined in the VTMIS Private API documentation (e.g. %Y%m%dT%H%M (e.g. 20190104T0900) or %Y%m%dT%H (e.g. 20190104T09)). Defaults to1m
. -
download
[True
/`False]: Should each sample be downloaded and processed as an extracted file
Download and process the last hours worth of the VTMIS File Feed and save to disk:
$ stoq run -P vtmis-filefeed -A filedir --plugin-opts filedir:use_sha=False vtmis-filefeed:time_since=1h
Start stoq
using kafka-queue
as the provider plugin, filedir
as the source archiver, then process the VTMIS file feed entry with vtmis-filefeed
, then save to elasticsearch:
$ stoq run -P kafka-queue -S filedir -a vtmis-filefeed -C elasticsearch
In another terminal, download the most recent 1 minute worth of the VTMIS file feed with the vtmis-filefeed
provider plugin, then archive each entry with filedir
archive plugin, and send a message to the kafka-queue
queue for processing:
$ stoq run -P vtmis-filefeed -A filedir -C kafka-queue