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
  • Constructor Details

    • GrokTesterResource

      @Inject public GrokTesterResource(GrokPatternService grokPatternService)
  • 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