Announcement

Collapse
No announcement yet.

Grammar rules

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • misi01
    replied
    Thanks, now that I understand what to do, I've got it working as expected.

    Leave a comment:


  • Aaron
    replied
    Hello,

    Here you have used $ as the End of Line but didn't enable Regular Expressions, so it is searching for the literal text "$". I'd suggest leaving the "To" text box blank, and instead use the checkbox below "Stop at End of Line", so:

    From: ROUTER SEND
    To: (blank)
    Enable "Stop at end of line"

    Leave a comment:


  • misi01
    replied
    Still not getting the expected results. Have attached a screen shot showing my settings.. Session, session settings does have the XDB Trace unmarked. What am I missing?
    Attached Files

    Leave a comment:


  • Aaron
    replied
    Hello,

    For the Grammar type, did you pick Delimited FROM:
    ^ROUTER SEND
    to
    End of Line

    Otherwise, the Basic grammar type would be for the specific defined text (ROUTER SEND) but not the following text.

    Leave a comment:


  • misi01
    started a topic Grammar rules

    Grammar rules

    I'm trying to define grammar rules for a log file. I've attached an example of how the file could look below.

    Basically, I want to be able to mark all lines in the files that either start with
    ROUTER SEND
    or
    Elapsed Time
    as being unimportant and to be ignored.

    I defined my first attempt as a regular expression
    XDB Trace=Text matching ^ROUTER SEND
    .

    I also selected Session, session settings and the importance tab and UNmarked the XDB Trace grammar element.

    Based on what I read in the online help, I imagine this would tell BC that I want to mark ANY lines starting with ROUTER SEND as being unimportant, but that's not what I'm seeing. What am I doing wrong ???
    Attached Files
Working...
X