@@ -611,19 +611,19 @@ pipeline:
611611 params :
612612 key : severity
613613 value : ' high'
614- where : safe ("log.level", "") in ["ERROR", "Error", "FATAL", "CRITICAL", "Critical"]
614+ where : oneOf ("log.level", ["ERROR", "Error", "FATAL", "CRITICAL", "Critical"])
615615 - add :
616616 function : ' string'
617617 params :
618618 key : severity
619619 value : ' medium'
620- where : safe ("log.level", "") in ["WARN", "Warning"]
620+ where : oneOf ("log.level", ["WARN", "Warning"])
621621 - add :
622622 function : ' string'
623623 params :
624624 key : severity
625625 value : ' low'
626- where : safe ("log.level", "") in ["Information", "Informational", "INFO", "DEBUG", "TRACE"]
626+ where : oneOf ("log.level", ["Information", "Informational", "INFO", "DEBUG", "TRACE"])
627627
628628 # .......................................................................#
629629 # Add geolocation to remote.ip
@@ -643,37 +643,37 @@ pipeline:
643643 params :
644644 key : action
645645 value : ' get'
646- where : safe ("log.propertiesRequestMethod", "") == " GET"
646+ where : equals ("log.propertiesRequestMethod", "GET")
647647 - add :
648648 function : ' string'
649649 params :
650650 key : action
651651 value : ' post'
652- where : safe ("log.propertiesRequestMethod", "") == " POST"
652+ where : equals ("log.propertiesRequestMethod", "POST")
653653 - add :
654654 function : ' string'
655655 params :
656656 key : action
657657 value : ' put'
658- where : safe ("log.propertiesRequestMethod", "") == " PUT"
658+ where : equals ("log.propertiesRequestMethod", "PUT")
659659 - add :
660660 function : ' string'
661661 params :
662662 key : action
663663 value : ' delete'
664- where : safe ("log.propertiesRequestMethod", "") == " DELETE"
664+ where : equals ("log.propertiesRequestMethod", "DELETE")
665665 - add :
666666 function : ' string'
667667 params :
668668 key : action
669669 value : ' patch'
670- where : safe ("log.propertiesRequestMethod", "") == " PATCH"
670+ where : equals ("log.propertiesRequestMethod", "PATCH")
671671 - add :
672672 function : ' string'
673673 params :
674674 key : action
675675 value : ' request'
676- where : safe ("log.propertiesRequestMethod", "") == " REQUEST"
676+ where : equals ("log.propertiesRequestMethod", "REQUEST")
677677
678678 # .......................................................................#
679679 # Removing log.propertiesRequestMethod if action was set
@@ -716,4 +716,4 @@ pipeline:
716716 params :
717717 key : actionResult
718718 value : ' accepted'
719- where : safe( "statusCode", 0.0) >= double( 200) && safe ("statusCode", 0.0) <= double( 299) || (safe ("statusCode", 0.0) >= double( 300) && safe ("statusCode", 0.0) <= double( 399) && safe ("origin.bytesReceived", 0.0) > double( 0))
719+ where : (greaterOrEqual( "statusCode", 200) && lessOrEqual ("statusCode", 299)) || (greaterOrEqual ("statusCode", 300) && lessOrEqual ("statusCode", 399) && greaterThan ("origin.bytesReceived", 0))
0 commit comments