Hi, I've recently encountered a problem with the rest-api-output bot. The bot sometimes timeouts because the consumer endpoint is unavailable. I've thought that the error_procedure -> pass would solve the problem and the bot would retry after several seconds (immediately in current set-up). However the bot tries once and than stops I thought that max retiries discards the event but in this case it seems that it shuts down the bot itself. There are no modifications to the code of the code. Following is the runtime configuration without the targets configuration. The exception is quite large so I've added it to the attachment.
"rest-api-0-output":{ "group":"Output", "module":"intelmq.bots.outputs.restapi.output", "name":"REST API", "parameters":{ "error_dump_message":true, "error_log_message":true, "error_max_retries":1, "error_procedure":"pass", "error_retry_delay":0, "hierarchical_output":true, "use_json":true } },
Sincerely, Václav Brůžek
To influence the timeout you can reduce http_timeout_sec.
I will look into the error_procedure thing.
On 14/01/2019 09.46, Vaclav Bruzek wrote:
Hi, I've recently encountered a problem with the rest-api-output bot. The bot sometimes timeouts because the consumer endpoint is unavailable. I've thought that the error_procedure -> pass would solve the problem and the bot would retry after several seconds (immediately in current set-up). However the bot tries once and than stops I thought that max retiries discards the event but in this case it seems that it shuts down the bot itself. There are no modifications to the code of the code. Following is the runtime configuration without the targets configuration. The exception is quite large so I've added it to the attachment.
"rest-api-0-output":{ "group":"Output", "module":"intelmq.bots.outputs.restapi.output", "name":"REST API", "parameters":{ "error_dump_message":true, "error_log_message":true, "error_max_retries":1, "error_procedure":"pass", "error_retry_delay":0, "hierarchical_output":true, "use_json":true } },
Sincerely, Václav Brůžek
Intelmq-dev mailing list Intelmq-dev@lists.cert.at https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev