<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I have now added this parameter in the templates file (bots/BOTS)
so for newly added TCP bots (and an updated intelmq instance) this
should not happen again.<br>
Thanks for reporting, I also found some other minor glitches when
investigating/fixing this.<br>
<a class="moz-txt-link-freetext" href="https://github.com/certtools/intelmq/commit/6e37806f2777a52a2fbb89e61f49a65ef380daba">https://github.com/certtools/intelmq/commit/6e37806f2777a52a2fbb89e61f49a65ef380daba</a><br>
</p>
<p>Sebastian<br>
</p>
<br>
<div class="moz-cite-prefix">On 2018-07-05 11:33, Sebastian Wagner
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:cfa6d3e9-0a3a-1cc7-0b1d-88dff2c31961@cert.at">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<p>Hi,</p>
<p>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.</p>
<p>Sebastian<br>
</p>
<br>
<div class="moz-cite-prefix">On 2018-07-05 11:27, Salehi Ghamsari,
Majid wrote:<br>
</div>
<blockquote type="cite"
cite="mid:b4f3297758834995b8d2430c530c9882@fokus.fraunhofer.de">
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">i try to test the
tcpcollector bot, on sender site I send this message<o:p></o:p></span></p>
<p class="MsoNormal"> <span lang="EN-US">{<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
"feed.accuracy":100.0,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
"feed.name":"FileCollector",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
"feed.url":<a class="moz-txt-link-rfc2396E"
href="file://localhost/opt/intelmq/var/lib/bots/file-input/event.json"
moz-do-not-send="true">"file://localhost/opt/intelmq/var/lib/bots/file-input/event.json"</a>,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
"time.observation":"2018-07-05T08:25:51+00:00",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
"extra.info":"TC_IMQ_Event_001",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
"extra.threat_level_id":"1",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
"raw":"eyJFdmVudCI6IHsiZGlzdHJpYnV0aW9uIjogIjEiLCAiaW5mbyI6ICJUQ19JTVFfRXZlbnRfMDAxIiwgInNoYXJpbmdfZ3JvdXBfaWQiOiAiMCIsICJ0aHJlYXRfbGV2ZWxfaWQiOiAiMSJ9fQ=="<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">On the other site the
TcpColltector bot failed with this message.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Bot has found a
problem.<br>
Traceback (most recent call last):<br>
File "/opt/dev_intelmq/intelmq/lib/bot.py", line 167, in start<br>
self.process()<br>
File "/opt/dev_intelmq/intelmq/bots/collectors/tcp/collector.py", line 47, in process<br>
self.send_message(report)<br>
File "/opt/dev_intelmq/intelmq/lib/bot.py", line 816, in send_message<br>
super(CollectorBot, self).send_message(*messages, path=path)<br>
File "/opt/dev_intelmq/intelmq/lib/bot.py", line 797, in __add_report_fields<br>
report.add("feed.name", self.parameters.name)<br>
<span style="background:yellow;mso-highlight:yellow">AttributeError: 'Parameters' object has no attribute 'name'</span><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">What do I missing?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards Majid<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<!--'"--><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Intelmq-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Intelmq-dev@lists.cert.at" moz-do-not-send="true">Intelmq-dev@lists.cert.at</a>
<a class="moz-txt-link-freetext" href="https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev" moz-do-not-send="true">https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
// Sebastian Wagner <a class="moz-txt-link-rfc2396E" href="mailto:wagner@cert.at" moz-do-not-send="true"><wagner@cert.at></a> - T: +43 1 5056416 7201
// CERT Austria - <a class="moz-txt-link-freetext" href="https://www.cert.at/" moz-do-not-send="true">https://www.cert.at/</a>
// Eine Initiative der nic.at GmbH - <a class="moz-txt-link-freetext" href="https://www.nic.at/" moz-do-not-send="true">https://www.nic.at/</a>
// Firmenbuchnummer 172568b, LG Salzburg</pre>
<!--'"--><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Intelmq-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Intelmq-dev@lists.cert.at">Intelmq-dev@lists.cert.at</a>
<a class="moz-txt-link-freetext" href="https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev">https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
// Sebastian Wagner <a class="moz-txt-link-rfc2396E" href="mailto:wagner@cert.at"><wagner@cert.at></a> - T: +43 1 5056416 7201
// CERT Austria - <a class="moz-txt-link-freetext" href="https://www.cert.at/">https://www.cert.at/</a>
// Eine Initiative der nic.at GmbH - <a class="moz-txt-link-freetext" href="https://www.nic.at/">https://www.nic.at/</a>
// Firmenbuchnummer 172568b, LG Salzburg</pre>
</body>
</html>