Class LogsGrokParser

java.lang.Object
com.datadog.api.client.v1.model.LogsGrokParser

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LogsGrokParser extends Object
Create custom grok rules to parse the full message or a specific attribute of your raw event. For more information, see the parsing section.
  • Field Details

  • Constructor Details

  • Method Details

    • grok

      public LogsGrokParser grok(LogsGrokParserRules grok)
    • getGrok

      public LogsGrokParserRules getGrok()
      Set of rules for the grok parser.
      Returns:
      grok
    • setGrok

      public void setGrok(LogsGrokParserRules grok)
    • isEnabled

      public LogsGrokParser isEnabled(Boolean isEnabled)
    • getIsEnabled

      @Nullable public Boolean getIsEnabled()
      Whether or not the processor is enabled.
      Returns:
      isEnabled
    • setIsEnabled

      public void setIsEnabled(Boolean isEnabled)
    • name

      public LogsGrokParser name(String name)
    • getName

      @Nullable public String getName()
      Name of the processor.
      Returns:
      name
    • setName

      public void setName(String name)
    • samples

      public LogsGrokParser samples(List<String> samples)
    • addSamplesItem

      public LogsGrokParser addSamplesItem(String samplesItem)
    • getSamples

      @Nullable public List<String> getSamples()
      List of sample logs to test this grok parser.
      Returns:
      samples
    • setSamples

      public void setSamples(List<String> samples)
    • source

      public LogsGrokParser source(String source)
    • getSource

      public String getSource()
      Name of the log attribute to parse.
      Returns:
      source
    • setSource

      public void setSource(String source)
    • type

      public LogsGrokParser type(LogsGrokParserType type)
    • getType

      public LogsGrokParserType getType()
      Type of logs grok parser.
      Returns:
      type
    • setType

      public void setType(LogsGrokParserType type)
    • putAdditionalProperty

      public LogsGrokParser putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - The arbitrary key to set
      value - The associated value
      Returns:
      LogsGrokParser
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - The arbitrary key to get
      Returns:
      The specific additional property for the given key
    • equals

      public boolean equals(Object o)
      Return true if this LogsGrokParser object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object