mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 13:37:15 +00:00
For a log line like
```
x-amz-id-2: WxwS/N175wqLyRlzCXLpGZGszCEbQA0f63uFgdQN1qfcPr2IAmwE/P7HF2b1NdZLg18pNLF3ecTw5CrItXJid/uLe+fxh3jMBiJ7UlUxidw=
```
The level will be inferred as fatal because it contains `CrIt`, which is incorrect.
To fix this, we need to add a word boundary at the start
Ref: HDX-3439
CLAUDE: made a mistake.
```
❌ Test expects "ALERTING" to match "alert" keyword → "ALERTING" won't match with word boundary because "alert" is a substring, not at a word boundary. Expected should be "info",9,"ALERTING system engaged" not "fatal",21.
```
-> incorrect statement
77 lines
2 KiB
JSON
77 lines
2 KiB
JSON
{
|
|
"resourceLogs": [
|
|
{
|
|
"resource": {
|
|
"attributes": [
|
|
{
|
|
"key": "suite-id",
|
|
"value": {
|
|
"stringValue": "severity-inference"
|
|
}
|
|
},
|
|
{
|
|
"key": "test-id",
|
|
"value": {
|
|
"stringValue": "infer-superstring"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"scopeLogs": [
|
|
{
|
|
"scope": {},
|
|
"logRecords": [
|
|
{
|
|
"timeUnixNano": "1901999580000000000",
|
|
"body": {
|
|
"stringValue": "WARNING: disk space running low"
|
|
}
|
|
},
|
|
{
|
|
"timeUnixNano": "1901999580000000001",
|
|
"body": {
|
|
"stringValue": "CRITICAL: database connection pool exhausted"
|
|
}
|
|
},
|
|
{
|
|
"timeUnixNano": "1901999580000000002",
|
|
"body": {
|
|
"stringValue": "EMERGENCY: system failure imminent"
|
|
}
|
|
},
|
|
{
|
|
"timeUnixNano": "1901999580000000003",
|
|
"body": {
|
|
"stringValue": "ALERTING system engaged"
|
|
}
|
|
},
|
|
{
|
|
"timeUnixNano": "1901999580000000004",
|
|
"body": {
|
|
"stringValue": "ERRORS detected in application"
|
|
}
|
|
},
|
|
{
|
|
"timeUnixNano": "1901999580000000005",
|
|
"body": {
|
|
"stringValue": "NOTICED unusual activity in request handler"
|
|
}
|
|
},
|
|
{
|
|
"timeUnixNano": "1901999580000000006",
|
|
"body": {
|
|
"stringValue": "DEBUGGING enabled for module"
|
|
}
|
|
},
|
|
{
|
|
"timeUnixNano": "1901999580000000007",
|
|
"body": {
|
|
"stringValue": "TRACED request path through gateway"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|