@Path(value="/tools/grok_tester") @Produces(value="application/json") public class GrokTesterResource extends RestResource
userService
Constructor and Description |
---|
GrokTesterResource(GrokPatternService grokPatternService) |
Modifier and Type | Method and Description |
---|---|
GrokTesterResponse |
grokTest(@NotEmpty String pattern,
@NotNull String string,
@NotNull boolean namedCapturesOnly) |
GrokTesterResponse |
testGrok(@Valid @NotNull GrokTestRequest grokTestRequest) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
@Inject public GrokTesterResource(GrokPatternService grokPatternService)
@GET @Timed public GrokTesterResponse grokTest(@QueryParam(value="pattern") @NotEmpty @NotEmpty String pattern, @QueryParam(value="string") @NotNull @NotNull String string, @QueryParam(value="named_captures_only") @NotNull @NotNull boolean namedCapturesOnly) 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(@Valid @NotNull @Valid @NotNull GrokTestRequest grokTestRequest) throws oi.thekraken.grok.api.exception.GrokException
oi.thekraken.grok.api.exception.GrokException
Copyright © 2012–2018 Graylog, Inc.. All rights reserved.