- Documentation
Torch Log Service
User Guide
Data collection
LogCollector collection
LogCollector plugins
URL parsing plugin
LogCollector plugins
URL parsing plugin
URL parsing plugin
By using LogCollector url_parse plugin, you can parse URL strings in specified fields. Besides, you can extract components from URL strings (such as scheme, host, port, path, query, fragment, username, and password) and add them to your logs.
Notice
This plugin is supported in LogCollector V2.2.5 and later versions. To view LogCollector version, see 2. View software version.
url_parse plugin parameter description
url_parse plugin configuration example
"request_url": "https%3A%2F%2Fuser%3Apass%40example.com%3A8080%2Fpath%2Fto%2Fresource%3Fparam1%3Dvalue1%26param2%3Dvalue2%23section1"
- Processor configuration of LogCollector url_parse plugin
- Retain no original field; extract the URL string from request_url; decode the string and add each query parameter as a separate field to the log.
"url_path": "/path/to/resource",
"url_query": "param1=value1¶m2=value2",
"url_params_param1": "value1",
"url_params_param2": "value2",
"url_fragment": "section1"
Last updated: 2025.12.12 14:07:35