Hi,
Your bot's configuration is missing the parameter `name` which results in the report/event field `feed.name`. Previously the parameter was called `feed`, which is still supported, but none of them is given in your case.
Sebastian
On 2018-07-05 11:27, Salehi Ghamsari, Majid wrote:
Hi,
i try to test the tcpcollector bot, on sender site I send this message
{
"feed.accuracy":100.0,
"feed.name":"FileCollector",
"feed.url":"file://localhost/opt/intelmq/var/lib/bots/file-input/event.json",
"time.observation":"2018-07-05T08:25:51+00:00",
"extra.info":"TC_IMQ_Event_001",
"extra.threat_level_id":"1",
"raw":"eyJFdmVudCI6IHsiZGlzdHJpYnV0aW9uIjogIjEiLCAiaW5mbyI6ICJUQ19JTVFfRXZlbnRfMDAxIiwgInNoYXJpbmdfZ3JvdXBfaWQiOiAiMCIsICJ0aHJlYXRfbGV2ZWxfaWQiOiAiMSJ9fQ=="
}
On the other site the TcpColltector bot failed with this message.
Bot has found a problem. Traceback (most recent call last): File "/opt/dev_intelmq/intelmq/lib/bot.py", line 167, in start self.process() File "/opt/dev_intelmq/intelmq/bots/collectors/tcp/collector.py", line 47, in process self.send_message(report) File "/opt/dev_intelmq/intelmq/lib/bot.py", line 816, in send_message super(CollectorBot, self).send_message(*messages, path=path) File "/opt/dev_intelmq/intelmq/lib/bot.py", line 797, in __add_report_fields report.add("feed.name", self.parameters.name) AttributeError: 'Parameters' object has no attribute 'name'
What do I missing?
Regards Majid
Intelmq-dev mailing list Intelmq-dev@lists.cert.at https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev