RecordStream is a great solution for manipulating JSON log files:
https://github.com/benbernard/RecordStream - makes it easy to perform relational-style operations, such as grouping, counting (recs-collate), and even joins (recs-join). It can also display and transform the logs in a variety of ways (recs-tocsv, recs-totable, recs-tognuplot for graphing).
There are also tools to extract records from other data formats such as CSV or by querying a database.
All in all, a fantastic tool for manipulating and querying complex data from the command line. I use it regularly.