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

Torch Log Service

Copy page
Download PDF
LogCollector plugins
Rename plugin
Copy page
Download PDF
Rename plugin
You can use the LogCollector rename plugin to rename field names.​
Description​
This plugin is supported in LogCollector V2.0.0 and later versions. To check your LogCollector version, see 2. View software version.​
​
Parameters description​
​
Name​
Type​
Required​
Description​
field​
String​
Yes​
Field name that needs to be renamed.​
new_field​
​
String​
​
Yes​
New name for the field.​
Field names must be unique and non-empty, and can not contain periods (.).​
ignore_missing​
​
Boolean​
No​
This parameter determines whether to skip fields that do not exist.​
  • True (default): If the field does not exist, it will be skipped.​
  • False: If the field does not exist, an error will be reported.​
​
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":[​
    {​
    "rename":[​
    {​
    "field":"alignment",​
    "new_field":"address"​
    },​
    {​
    "field":"data",​
    "new_field":"message"​
    }​
    ]​
    }​
    ]​
    }​
    ​
  • Processing result​
  • ​
    "message": "Click Here"​
    "size": "36"​
    "style": "bold"​
    "name": "text1"​
    "hOffset": "250"​
    "vOffset": "100"​
    "address": "center"​
    "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"​
    "time": "Today is 2023-06-08. Tomorrow is 2023-06-09."​
    ​
Last updated: 2025.12.12 10:30:52