Skip to content

Instantly share code, notes, and snippets.

@rainest
Created October 28, 2017 17:15
Show Gist options
  • Save rainest/247c3fd7b23e6a8d68cf7fb1b8a90655 to your computer and use it in GitHub Desktop.
Save rainest/247c3fd7b23e6a8d68cf7fb1b8a90655 to your computer and use it in GitHub Desktop.
10:14:27-0700 vshn $ cat /tmp/hakka.json| jq 'select(.client.ip == "210.101.131.231") |.timestamp,.edge.rateLimit.processedRules,.clientRequest.uri'
1509208285242000100
[]
"/"
1509208285441000000
[]
"/"
1509208287851000000
[
{
"ruleId": 123063,
"ruleSrc": "user",
"status": "ban",
"ruleType": "ban"
}
]
"/login_check"
1509208287965000000
[
{
"ruleId": 123063,
"ruleSrc": "user",
"status": "ban",
"ruleType": "ban"
}
]
"/login_check"
1509208422756000000
[]
"/"
1509208422793000000
[]
"/"
1509208426138000100
[
{
"ruleId": 123063,
"ruleSrc": "user",
"status": "ban",
"ruleType": "ban"
}
]
"/login_check"
1509208427121000000
[
{
"ruleId": 123063,
"ruleSrc": "user",
"status": "ban",
"ruleType": "ban"
}
]
"/login_check"
1509208677701999900
[]
"/"
1509208678542000000
[]
"/"
1509208680528000000
[
{
"ruleId": 123063,
"ruleSrc": "user",
"status": "ban",
"ruleType": "ban"
}
]
"/login_check"
1509208681246000000
[
{
"ruleId": 123063,
"ruleSrc": "user",
"status": "ban",
"ruleType": "ban"
}
]
"/login_check"
1509208892971000000
[]
"/"
1509208892969000200
[]
"/"
1509208895372000000
[
{
"ruleId": 123063,
"ruleSrc": "user",
"status": "ban",
"ruleType": "ban"
}
]
"/login_check"
1509208895583000000
[
{
"ruleId": 123063,
"ruleSrc": "user",
"status": "ban",
"ruleType": "ban"
}
]
"/login_check"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment