You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm actually install a Graylog for production. And when I have tested, I haven't had this problem.
Problem description
When I want test my regular expression on "Extractor Configuration" graylog print this:
Could not try regular expression. Make sure that it is valid.
Details: Error: cannot POST http://xxx.xxx.xxx.xxx:12900/tools/regex_tester (500)
And logs file say:
2016-07-12T09:53:44.555+02:00 ERROR [AnyExceptionClassMapper] Unhandled exception in REST resource
java.util.regex.PatternSyntaxException: Dangling meta character '?' near index 0
?*
^
at java.util.regex.Pattern.error(Pattern.java:1955) ~[?:1.8.0_20]
at java.util.regex.Pattern.sequence(Pattern.java:2123) ~[?:1.8.0_20]
at java.util.regex.Pattern.expr(Pattern.java:1996) ~[?:1.8.0_20]
at java.util.regex.Pattern.compile(Pattern.java:1696) ~[?:1.8.0_20]
at java.util.regex.Pattern.<init>(Pattern.java:1351) ~[?:1.8.0_20]
at java.util.regex.Pattern.compile(Pattern.java:1054) ~[?:1.8.0_20]
at org.graylog2.rest.resources.tools.RegexTesterResource.doTestRegex(RegexTesterResource.java:59) ~[graylog.jar:?]
at org.graylog2.rest.resources.tools.RegexTesterResource.testRegex(RegexTesterResource.java:55) ~[graylog.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_20]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_20]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_20]
at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_20]
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) ~[graylog.jar:?]
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144) ~[graylog.jar:?]
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161) ~[graylog.jar:?]
at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:205) ~[graylog.jar:?]
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99) ~[graylog.jar:?]
at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389) ~[graylog.jar:?]
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347) ~[graylog.jar:?]
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102) ~[graylog.jar:?]
at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326) [graylog.jar:?]
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) [graylog.jar:?]
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) [graylog.jar:?]
at org.glassfish.jersey.internal.Errors.process(Errors.java:315) [graylog.jar:?]
at org.glassfish.jersey.internal.Errors.process(Errors.java:297) [graylog.jar:?]
at org.glassfish.jersey.internal.Errors.process(Errors.java:267) [graylog.jar:?]
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) [graylog.jar:?]
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) [graylog.jar:?]
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154) [graylog.jar:?]
at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:384) [graylog.jar:?]
at org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:224) [graylog.jar:?]
at com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176) [graylog.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_20]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_20]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_20]
Steps to reproduce the problem
Add an extractor to an input
Choose "Grok Pattern" or "Regular expression"
In "Condition" choose "Only attempt extraction if field matches regular expression"
Write just one regular expression
Message appears and logs
Environment
Graylog Version: 2.0.3
Elasticsearch Version: 2.3.3
MongoDB Version: 3.2.7
Operating System: Redhat 6.6
Browser version: Chrome 50
The text was updated successfully, but these errors were encountered:
Hello everyone.
I will start to excuse for my english...
I'm actually install a Graylog for production. And when I have tested, I haven't had this problem.
Problem description
When I want test my regular expression on "Extractor Configuration" graylog print this:
And logs file say:
Steps to reproduce the problem
Environment
The text was updated successfully, but these errors were encountered: