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

Torch Log Service

Copy page
Download PDF
LogCollector plugins
Field retention plugin
Copy page
Download PDF
Field retention plugin
You can use the keep_fields plugin of LogCollector to retain specified fields. The rest will be discarded.​
Notice​
This plugin is supported in LogCollector V2.2.5 and later versions. To view LogCollector version, see 2. View software version..​
​
keep_fields plugin parameter description​
​
Name​
Type​
Required​
Description​
fields​
Array<String>​
Yes​
List of field names to retain.​
​
keep_fields plugin configuration example​
  • Log content:​
  • ​
    {​
    "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 keep_fields plugin configuration:​
  • Retain only the size, name, and time fields in the log.​
  • ​
    {​
    "processors": [​
    {​
    "keep_fields": {​
    "fields": [​
    "size",​
    "name",​
    "time"​
    ]​
    }​
    }​
    ]​
    }​
    ​
  • Processing result:​
  • ​
    {​
    "size": "36",​
    "name": "text1",​
    "time": "Today is 2023-06-08. Tomorrow is 2023-06-09."​
    }​
    ​
​
Last updated: 2025.12.12 14:07:35