Tagged in

Regexp

Mitar’s point
Mitar’s point
Somewhere and everywhere between (computer) science, technology, nature and (open) society.
More information
Followers
30
Elsewhere
More, on Medium

I made a simple tool regex2json in Go to convert traditional text-based (and line-based) logs to JSON for programs which do not support JSON logs themselves. But the tool is more general and can enable any workflow where you prefer operating on JSON instead of text. It works especially great when combined with jq. I was inspired by this blog post.