0
다음 정규식을 사용하려고했습니다 : (a)? b (? (1) c | d). 예 : http://www.regular-expressions.info/conditional.html입니다.logstash는 정규 표현식에서 If-Then-Else 조건을 지원합니까?
하지만 오류가 발생했습니다.
/opt/logstash-1.4.2/bin/logstash -e 'input { stdin { } } filter { grok { match => [ "message", "(a)?b(?(1)c|d)" ] } } output { stdout { codec => rubydebug }}'
+---------------------------------------------------------+
| An unexpected error occurred. This is probably a bug. |
| You can find help with this problem in a few places: |
| |
| * chat: #logstash IRC channel on freenode irc. |
| IRC via the web: http://goo.gl/TI4Ro |
| * email: [email protected] |
| * bug system: https://logstash.jira.com/ |
| |
+---------------------------------------------------------+
The error reported is:
undefined group option: /(a)?b(?(1)c|d)/