@Path(value="/tools/grok_tester") @Produces(value="application/json") public class GrokTesterResource extends RestResource
objectMapper, userService| Constructor and Description |
|---|
GrokTesterResource(GrokPatternService grokPatternService) |
| Modifier and Type | Method and Description |
|---|---|
GrokTesterResponse |
grokTest(String pattern,
String string) |
GrokTesterResponse |
testGrok(GrokTestRequest grokTestRequest) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint@Inject public GrokTesterResource(GrokPatternService grokPatternService)
@GET @Timed public GrokTesterResponse grokTest(@QueryParam(value="pattern") @NotEmpty String pattern, @QueryParam(value="string") @NotNull String string) throws oi.thekraken.grok.api.exception.GrokException
oi.thekraken.grok.api.exception.GrokException@POST @Timed @Consumes(value="application/json") @Produces(value="application/json") public GrokTesterResponse testGrok(@NotNull GrokTestRequest grokTestRequest) throws oi.thekraken.grok.api.exception.GrokException
oi.thekraken.grok.api.exception.GrokExceptionCopyright © 2012-2016 Graylog, Inc.. All Rights Reserved.