Class GrokTesterResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog2.rest.resources.tools.GrokTesterResource
@Path("/tools/grok_tester")
@Produces("application/json")
public class GrokTesterResource
extends RestResource
-
Field Summary
Fields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration, userService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongrokTest
(@NotEmpty String pattern, @NotNull String string, @javax.validation.constraints.NotNull boolean namedCapturesOnly) testGrok
(@Valid @NotNull GrokTestRequest grokTestRequest) Methods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
Constructor Details
-
GrokTesterResource
-
-
Method Details
-
grokTest
@GET @Timed public GrokTesterResponse grokTest(@QueryParam("pattern") @NotEmpty @NotEmpty String pattern, @QueryParam("string") @NotNull @NotNull String string, @QueryParam("named_captures_only") @NotNull @javax.validation.constraints.NotNull boolean namedCapturesOnly) throws io.krakens.grok.api.exception.GrokException - Throws:
io.krakens.grok.api.exception.GrokException
-
testGrok
@POST @Timed @Consumes("application/json") @Produces("application/json") public GrokTesterResponse testGrok(@Valid @NotNull @Valid @NotNull GrokTestRequest grokTestRequest) throws io.krakens.grok.api.exception.GrokException - Throws:
io.krakens.grok.api.exception.GrokException
-