Skip to content

Instantly share code, notes, and snippets.

@navinpai
Created November 25, 2025 10:54
Show Gist options
  • Select an option

  • Save navinpai/974c90a78440eaf922a646e5e2ef7800 to your computer and use it in GitHub Desktop.

Select an option

Save navinpai/974c90a78440eaf922a646e5e2ef7800 to your computer and use it in GitHub Desktop.
{
"indexer": {
"dateKey": "EdgeStartTimestamp",
"dateFormat": "epoch",
"fields": [
"tenantid",
"EdgeResponseStatus",
"EdgeRequestHost",
"CacheCacheStatus",
"CacheResponseStatus",
"ClientCountry",
"ClientRequestMethod",
"PartitionedRayID",
"NormalizedPath",
"ZoneName",
"OriginResponseStatus"
]
},
"rules": [
{
"id": "3b54fae2-04fd-4429-b11e-f5223f038b85",
"description": "Remap the tenant id",
"priority": 2,
"type": "REMAPPER",
"attributes": {
"sources": [
"RequestHeaders.tenantid"
],
"target": "tenantid"
}
},
{
"id": "d02c8c7a-4db4-4d87-b274-af8af94bf61a",
"description": "Partition RayID",
"priority": 1,
"type": "REMAPPER",
"attributes": {
"sources": [
"RayID"
],
"regexReplace": [
{
"pattern": "^([0-9a-fA-F]{8}).*$",
"replacement": "$1"
}
],
"target": "PartitionedRayID"
}
},
{
"id": "63f47911-d536-4499-b1b5-1f65953c48df",
"description": "sanitize ClientRequestPath",
"priority": 2,
"type": "REMAPPER",
"attributes": {
"sources": [
"ClientRequestPath"
],
"regexReplace": [
{
"pattern": "[A-Fa-f0-9]{8}-(?:[A-Fa-f0-9]{4}-){3}[A-Fa-f0-9]{12}",
"replacement": "{guid}"
},
{
"pattern": "/[A-Za-z0-9.:]{32,128}",
"replacement": "/{id}"
},
{
"pattern": "-[A-Za-z0-9.:]{20,128}",
"replacement": "-{id}"
},
{
"pattern": "/[A-Z0-9.]{10}",
"replacement": "/{id}"
},
{
"pattern": "[0-9a-f]{64,}",
"replacement": "{shasum}"
},
{
"pattern": "[0-9.]{2,}",
"replacement": "{int}"
}
],
"target": "NormalizedPath"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment