Before:
{
"client": {
"ip": "10.12.4.20"
},
"http": {
"method": "GET",
"url": "https://api.example.com/v1/orders?user_id=12345&limit=20",
"status_code": 200
},
"timestamp": 1696945536000
}
URL Parser
Create a URL Parser processor and configure it to parse the http.url attribute. The processor extracts the URL into multiple structured attributes (scheme, host, path, or query parameters).
After processing:
{
"client": {
"ip": "10.12.4.20"
},
"http": {
"method": "GET",
"url": "https://api.example.com/v1/orders?user_id=12345&limit=20",
"url_details": {
"host": "api.example.com",
"path": "/v1/orders",
"port": 443,
"queryString": {
"user_id": "12345",
"limit": "20"
},
"scheme": "https"
},
"status_code": 200
},
"timestamp": 1696945536000
}
The URL Parser automatically adds a new nested attribute (http.url_details) containing extracted components of the URL.