Skip to content

if statements error #153

@gui66497

Description

@gui66497

My origin filter:

filter {
    if ![ipv4] {
        drop{
          id => "drop nmap data"
        }
    }
}

the parser seem to can not understand it and throw an error:

Error in created hook: "Error: Parse error on line 11:
...ter {   if [ipv4] {  drop{  id => "d
---------------------^
Expecting 'BINARY_OPERATOR', got 'START'"

Does the jison paser just do not support this?
So i have to change my conditon to if [ipv4] != null?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions