Open mjknoxie opened 4 years ago
@mjknoxie in order to work with R2S you will need to implement 3 classes: a class that inherits from R2SAPIAdaptor - responsible for constructing the URLs and calling the REST endpoints a class that inherits from R2SItemFormatter - responsible for parsing the response (each of the returned items) and a class that inherits from R2SAPIPaginator - responsible for implementing the pagination strategy (usually, the REST API will provide a limited set of items per page, hence there is a need to paginate through all pages)
you can review the base classes under: r2s/extensions/abstract.py
You can see example for each of this custom class under: r2s/extensions/proofpoint/pcasb where we have 2 extensions: one that fetched alerts (using a page num pagination strategy) and another extension which fetch system events (using a next_page token strategy).
also you will need to add the extension name and class paths in the syslong config file (the readme shows and example of that)
Hi, I seem to be unable to get this working. I followed the instructions, but syslog-ng won't start.
config is pretty simple: