- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Cannot Enable a new parser which passes validation and testing SIEM 7.1.3 GUI Parser window
Hello,
I now have new parser. When I go to the Admin -> Device support -> Parsers
I can see my parser I try to check the box in the Enable column
it then opens the parser window showing the code. Here you can see the Enable state is checked
If I pick Validate it validates if I select Test it tests successfully. if I select Save it says parser not validated or test failed which makes no sense. If I select cancel it just take me back to the list view of parsers.
it is stuck in some kind of loop, there is no way for me to enable the parser , I cannot get to the Apply option.
also if I start in the list view and select Edit it takes me in the parser code where again I select validate and it validates and then I select test and it tests successfully, but Enable is greyed out via this menu path that I take.
Solved! Go to Solution.
- Labels:
-
FortiSIEM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Looks good to me.. You should now be able to enable the parser. Don't forget to t hit apply afterwards so it gets pushed out to your collectors
- « Previous
-
- 1
- 2
- Next »
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A step between 8 and 9.
Please hit the test button again, as high lighted in the attached screen shoot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Rob_SIEMI will ask Rob here is he might have some insights, thank you @kcanalichio for pointing this out, very interesting indeed.
When I hit Test within the parser window it never did this only upon hitting it a second time. Something is severely wrong with the documentation, or parser or parser interpreter or all of the above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When you see this error, it means that the test log given, we "expected" it to use the parser we are testing, but in fact it did not match this parser, or any other parser.
This indicates that the <eventFormatRecognizer> regex does not match the header of this log.
I can confirm this by looking at your screenshot. I sent you a full parser zip based on an initial sample log you sent.
<eventFormatRecognizer><![CDATA[<:gPatYear>-<:gPatMon>-<:gPatDay>\s+<:gPatTime>\s+<:gPatHostName>\s+<:gPatWord>\s+VENDOR_ATTACK]]></eventFormatRecognizer>
This requires the literal format of "2024-10-29 00:00:00 someValue someWord VENDOR_ATTACK"
The sample log you are using to test instead has the literal value
MORPHISEC_ATTACK instead of VENDOR_ATTACK
So in your parser just replace all instances of VENDOR_ATTACK with MORPHISEC_ATTACK and it should work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The error above means that the event didn't match the pattern in the event format recognizer section of the parser
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If your using the code earlier replace VENDOR_ATTACK with MORPHISEC_ATTACK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
That is confusing sorry, at one point during this post I did use VENDOR but it was to difficult to go through the raw log and change it so I just used the actual name as we were having so many issues.
the actual first line
is
<eventFormatRecognizer><![CDATA[<:gPatYear>-<:gPatMon>-<:gPatDay>\s+<:gPatTime>\s+<:gPatHostName>\s+<:gPatWord>\s+MORPHISEC_ATTACK]]></eventFormatRecognizer>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
good news the event is now matched by the parser
Bad news the event doesn't match the stuff in your collect fields by regex block starting on line 7.
I can't see the whole block, but if you understand how regex works it should be easy to trobleshoot, by eliminating one variables at time until you figure out would the disconnect is
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Woo hoo! Please tell me this good
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Looks good to me.. You should now be able to enable the parser. Don't forget to t hit apply afterwards so it gets pushed out to your collectors

- « Previous
-
- 1
- 2
- Next »