Class GrokDataFormat


@Metadata(label="dataformat,transformation", title="Grok", firstVersion="3.0.0") public class GrokDataFormat extends DataFormatDefinition
Unmarshal unstructured data to objects using Logstash based Grok patterns.
  • Constructor Details

    • GrokDataFormat

      public GrokDataFormat()
  • Method Details

    • getPattern

      public String getPattern()
    • setPattern

      public void setPattern(String pattern)
      The grok pattern to match lines of input
    • getFlattened

      public String getFlattened()
    • setFlattened

      public void setFlattened(String flattened)
      Turns on flattened mode. In flattened mode the exception is thrown when there are multiple pattern matches with same key.
    • getAllowMultipleMatchesPerLine

      public String getAllowMultipleMatchesPerLine()
    • setAllowMultipleMatchesPerLine

      public void setAllowMultipleMatchesPerLine(String allowMultipleMatchesPerLine)
      If false, every line of input is matched for pattern only once. Otherwise the line can be scanned multiple times when non-terminal pattern is used.
    • getNamedOnly

      public String getNamedOnly()
    • setNamedOnly

      public void setNamedOnly(String namedOnly)
      Whether to capture named expressions only or not (i.e. %{IP:ip} but not ${IP})
    • toString

      public String toString()
      Overrides:
      toString in class Object