Topic Thread

Expand all | Collapse all

Custom Parser Test failing

  • 1.  Custom Parser Test failing

    Posted 09-12-2017 09:10

    I've a problem with creating a custom parser. 

    I've added the Device, created a Custom Event, added a simple parser (with Recognizer etc) and a test log message.

    The XML validates ok, but when I use the Test button, I get an "Errors" message (but no other details).

    My parser is listed under the 'Parser Used' column.

    I cloned some other existing parsers (such as CiscoSEParser) and tried the test function there.

    They also fails with "Errors"

    Why do clones of 'production' parsers fail the Test ?

     

    thanks,



  • 2.  RE: Custom Parser Test failing

    Posted 10-23-2017 23:55

    Hello,

    to pass the test, you also need an appropriate syslog message to test the custom parser against.

    Sincerely

    Harald



  • 3.  RE: Custom Parser Test failing

    Posted 11-02-2017 04:58
      |   view attached

    If is based on another parser you must disable it before clone it, in the error message sometimes you will see that the error is because another parser is handling the test message. I'm attaching a quick document that you can use as a reference, however, keep in mind that the parser used in that example is already fixed on 4.10.

    In Reply to Morgan Doyle:

    I've a problem with creating a custom parser. 

    I've added the Device, created a Custom Event, added a simple parser (with Recognizer etc) and a test log message.

    The XML validates ok, but when I use the Test button, I get an "Errors" message (but no other details).

    My parser is listed under the 'Parser Used' column.

    I cloned some other existing parsers (such as CiscoSEParser) and tried the test function there.

    They also fails with "Errors"

    Why do clones of 'production' parsers fail the Test ?

     

    thanks,



    -

    Rolando Antón

    Attachment(s)

    pdf
    FSM_Fixing_parsers_v1.pdf   2.92MB 1 version