Skip to content

caeops > logs

enable-parsing-rule

Description


This command enables the parsing rule filter for the given logs source

Synopsis


  enable-parsing-rule
--name [value]
--service-name [value]

Options


--name (string)

Name of parsing rule

--service-name (string)

Name of the logs source to create this rule for

Examples


The following logs enable-parsing-rule example enables the parsing rule for the given logs source

caeops logs enable-parsing-rule --name access-pattern --service-name dev-logs

Output


Parsing Rule Details -> (Structure)

  • name -> (string) Name of the parsing rule created
  • serviceName -> (string) Name of the logs source that applies this rule
  • pluginName -> (string) Name of the plugin(logstash) used for parsing logs
  • rule -> (structure)
    • pattern -> (string) Filter pattern defined for this rule
    • target -> (string) Name of the target field, that should contain the parsed information
Back to top