<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Václav,</p>
    <p>This is specific to parsers, as these statistics on
      success/errors per report can only reported at this stage.
      Afterwards, the bots are process single events, not reports
      anymore.</p>
    <p>The ParserBot class provides some (optional!) helpers which can
      be used. Not all parsers actually use this class or it's features.<br>
    </p>
    <p>Have a look at the documentation:
<a class="moz-txt-link-freetext" href="https://github.com/certtools/intelmq/blob/master/docs/Developers-Guide.md#parsers">https://github.com/certtools/intelmq/blob/master/docs/Developers-Guide.md#parsers</a><br>
      You can also find examples in the repository:
<a class="moz-txt-link-freetext" href="https://github.com/certtools/intelmq/search?q=ParserBot+extension%3Apy+path%3A%2Fintelmq%2Fbots%2Fparsers%2F">https://github.com/certtools/intelmq/search?q=ParserBot+extension%3Apy+path%3A%2Fintelmq%2Fbots%2Fparsers%2F</a></p>
    <p>Sebastian<br>
    </p>
    <div class="moz-cite-prefix">On 30/04/2019 14.27, Vaclav Bruzek
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAAQS+TdQpU8ORhNR+2Nwmw0pUiXQoQcVuiduRRxvOGgqvmFq0Q@mail.gmail.com">
      <div dir="ltr">
        <div dir="ltr">Hi Sebastian,
          <div>thanks for the info. Does the same behaviour apply for
            other types of bots or it doesn't matter whether a generic
            import from Bot or specific one is done?</div>
          <div><br>
            <div>
              <div dir="ltr" class="gmail_signature">
                <div dir="ltr">
                  <div>
                    <div dir="ltr">Sincerely,
                      <div>Václav Brůžek</div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <br>
          </div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Tue, 30 Apr 2019 at 13:14,
          Sebastian Wagner <<a href="mailto:wagner@cert.at"
            moz-do-not-send="true">wagner@cert.at</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote">
          <div>
            <p>Hi Václav,</p>
            <p>These log lines only exists for parsers which inherit
              from the ParserBot class and use it's methods. The methods
              in this class provide some very handy shortcuts for error
              handling and logging, as well as already existing parser
              for e.g. JSON and CSV.</p>
            <p>Sebastian<br>
            </p>
            <div class="gmail-m_-5605861782082020536moz-cite-prefix">On
              29/04/2019 11.11, Vaclav Bruzek wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">
                <div dir="ltr">
                  <div dir="ltr">
                    <div dir="ltr">Hi mailing list,
                      <div>I've recently encountered and issue with some
                        of my custom parser bots. The default parsers
                        log a line like this:</div>
                      <div>Sent 7176 events and found 0 error(s)<br>
                      </div>
                      <div><br>
                      </div>
                      <div>This is quite fine piece of information but I
                        am not getting that for my custom parsers. The
                        only info i have is the number of processed
                        messages. Is there a need to do something
                        special apart from 'acknowledge_message()' and
                        'send_message()'? </div>
                      <div><br>
                      </div>
                      <div>
                        <div>
                          <div dir="ltr"
                            class="gmail-m_-5605861782082020536gmail_signature">
                            <div dir="ltr">
                              <div>
                                <div dir="ltr">Sincerely,
                                  <div>Václav Brůžek</div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <br>
              <fieldset
                class="gmail-m_-5605861782082020536mimeAttachmentHeader"></fieldset>
            </blockquote>
            <pre class="gmail-m_-5605861782082020536moz-signature" cols="72">-- 
// Sebastian Wagner <a class="gmail-m_-5605861782082020536moz-txt-link-rfc2396E" href="mailto:wagner@cert.at" target="_blank" moz-do-not-send="true"><wagner@cert.at></a> - T: +43 1 5056416 7201
// CERT Austria - <a class="gmail-m_-5605861782082020536moz-txt-link-freetext" href="https://www.cert.at/" target="_blank" moz-do-not-send="true">https://www.cert.at/</a>
// Eine Initiative der <a href="http://nic.at" target="_blank" moz-do-not-send="true">nic.at</a> GmbH - <a class="gmail-m_-5605861782082020536moz-txt-link-freetext" href="https://www.nic.at/" target="_blank" moz-do-not-send="true">https://www.nic.at/</a>
// Firmenbuchnummer 172568b, LG Salzburg</pre>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <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>