我想創建這樣春天XD - 在規劃環境地政司表達的邏輯運算符和過濾
file --outputType=text/plain --dir=someDir --mode=lines | filter --expression='payload.contains(\"request url\") AND payload.contains(\"request method\")' | log
過濾器,我就在控制檯上可視化包含request URL
和request method
線。
使這個流可惜的是,我這個錯誤:
.... Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'expressionString' threw exception; nested exception is org.springframework.expression.spel.SpelParseException: EL1065E:(pos 17): unexpected escape character.
編輯:我已經通過弗洛
我正在使用1.3.1。在你的消息之後,我通過shell部署了同樣的問題流(首先我通過Flo部署)。使用shell就可以了,通過Flo,相同的流不能正常工作,並返回問題的錯誤。 – strano
使用''''而不是'''與flo - 看到我的答案更新(我剛剛測試過)。 –
現在一切都好!非常感謝! – strano