Closed hsninbil closed 8 months ago
Hello,
Since collectors are separate to the core of Taranis NG, there are two paths in general. One of them is to modify the existing collector code in src/collectors. The other is to create a completely independent application which collects your desired type of data, and make it talk to the core using the REST API.
Advantages: use the infrastructure of the original collectors, only need to focus on the business part of the code Disadvantages: limited to Python How to:
collectors/
subdirectory, subclass BaseCollector
in that file, use RSS collector as an exampleparameters
, define parameters that will be collected from the user when adding a source based on that collectorcollect
which should create array of NewsItems
and use BaseCollector.publish(news_items, source)
to publish the data to Taranis NGAdvantages: use any language / framework you chose Disadvantages: possibly more work How to:
/api/v1/collectors
, GET /api/v1/collectors/NAME
/api/v1/collectors/COLLECTOR_ID/osint-sources?api_key=KEY&collector_type=TYPE
- get a list of configured sources for this collector
/api/v1/collectors/news-items?api_key=KEY&collector_type=TYPE
to publish collected data from the collector to the core/api/v1/collectors/COLLECTOR_ID
to mark the collector "alive" right nowDear milanKowww, and Greetings, First of all thank you for your help, for your explanation. Also, I'm trying to follow the points but I got the same result. sorry, but I'm currently presenting your TaranisNG project instead of Taranis3.
What is in assess now?
nothing.
Dear @multiflexi ,
http://collectors/ is fine. Why would you add SKIP_DEFAULT_COLLECTOR to the configuration? What do you have in Uncategorized? Have you set refresh interval for OSINT sources? Do you see in logs that they are collected?
Thank you @multiflexi. Taranis-NG is working.
Hi, how can I add a new collector? or collectors?