You need to enable JavaScript to run this app.
Torch Log Service

Torch Log Service

Copy page
Download PDF
LogCollector plugins
Log filtering plugin
Copy page
Download PDF
Log filtering plugin
The drop_log plugin in LogCollector supports matching log field names and regular expressions to filter out logs that do not meet specified conditions.​
Notice​
This plugin is supported in LogCollector V2.0.0 and later versions. To view LogCollector version, see 2. View software version.​
Parameters description​
Notice​
The drop_log field is an array type and supports adding multiple array objects. You cannot configure both keep_regex and drop_regex in the same array object, but at least one must be configured.​
​
Name​
Type​
Required​
Description​
field​
String​
Yes​
Field name.​
keep_regex​
String​
No​
Regular expression that is used to keep logs.​
If neither the field name nor the regular expression matches, the log will be discarded.​
drop_regex​
String​
No​
Regular expression for discarding logs.​
If a field name exactly matches the regular expression for discarding logs, the log will be discarded.​
​
Configuration examples​
  • Key-value pair logs after processing (such as collection mode or other processor plugins)​
  • ​
    "data": "Click Here"​
    "size": "36"​
    "style": "bold"​
    "name": "text1"​
    "hOffset": "250"​
    "vOffset": "100"​
    "alignment": "center"​
    "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"​
    "time": "Today is 2023-06-08. Tomorrow is 2023-06-09."​
    ​
  • LogCollector plugin processor configuration​
  • ​
    {​
    "processors":[​
    {​
    "drop_log":[​
    {​
    "field":"alignment",​
    "keep_regex":"center"​
    },​
    {​
    "field":"data",​
    "drop_regex":"\d+"​
    }​
    ]​
    }​
    ]​
    }​
    ​
  • Processing result​
  • This log is retained.​
​
Last updated: 2025.12.12 10:30:52