caeops > logs
get-parsing-rule¶
Description¶
This command fetches a parsing rule filter for the given logs source
Synopsis¶
get-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 get-parsing-rule
example fetches the parsing rule for the given logs source
caeops logs get-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