Skip to content

Latest commit

 

History

History

vtmis-filefeed

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

VTMIS File Feed

stoQ plugin that pulls from the VTMIS File Feed and processes each result.

Plugin Classes

Configuration

All options below may be set by:

Options

  • apikey [str]: VTMIS API key

  • time_since [str]: Time since now 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 to 1m.

  • download [True/`False]: Should each sample be downloaded and processed as an extracted file

Usage

Save file feed to disk

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

Kafka Queuing Example

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