humio / issues

Issue Tracker for Humio
4 stars 2 forks source link

Bug: match statement does not accept wildcard #121

Open sammysherban opened 4 years ago

sammysherban commented 4 years ago

A query of the form

myfield match {
   value => some_field := "";
   *
}

Fails with the below error:

Failed to execute the query
There was an error while running the query:
The server returned a base status code=400:
Could not parse expression:

Unexpected '}'.
 2:    myfield match { myvalue => some_field := "";  *}
                                                      ^

A dummy expression after the wildcard works:

myfield match {
   value => some_field := "";
   * => drop(NonExistentField)
}

Humio's documentation indicates that the first form of the wildcard is supported.

erik-humio commented 3 years ago

This appears to be a documentation issue - at least unless/until we decide to make the "=> ..." part optional.