Skip to content

Instantly share code, notes, and snippets.

@hemna
Created March 26, 2021 17:02
Show Gist options
  • Save hemna/fb6b4d6fbc12a117133462aa8c79a7ec to your computer and use it in GitHub Desktop.
Save hemna/fb6b4d6fbc12a117133462aa8c79a7ec to your computer and use it in GitHub Desktop.
{
"aprsd" : {
"title" : "APRSD APRS-IS server log format",
"description" : "Log formats used by ARPRSD server",
"url" : "http://github.com/craigerl/aprsd",
"regex" : {
"std" : {
"pattern" : "^\\[(?<timestamp>\\d{2}/\\d{2}/\\d{4} \\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2} ([AaPp][Mm]))\\] \\[(?<thread>)\\w+\\] \\[(?<level>\\w+)\\] (?<body>\\S.*)$"
}
},
"value" : {
"thread": { "kind" : "string", "identifier" : true },
"body" : { "kind" : "string" }
},
"timestamp-format" : [
"%m/%d/%Y %I:%M:%S %p"
],
"sample" : [
{
"line" : "[03/26/2021 11:47:41 AM] [KeepAlive] [DEBUG] some piss here - [/home/waboring/devel/aprsd/aprsd/threads.py.loop:89]"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment