You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Philip Perricone edited this page Jan 26, 2018
·
8 revisions
Many examples are within the source code examples.sh.
Sleuth is a tool designed to allow users to make SQL-like queries on JSON data. It reads a stream of flow objects, processes each one in sequence, and writes out the resulting objects. There are several processing stages, each of which is optional; their order is:
Filtering objects (--where)
Selecting elements (--select)
Splitting into multiple output streams (--split)
Computing the distribution (--dist)
Computing the sum of particular elements (--sum)
The whole solution is broken into 2 parts. First, sleuth_pkg is a Python package that can be installed using pip. This package provides the underlying system for performing operations on and manipulating JSON data. The second piece is a Python script named sleuth which resides at the top-level of the repository. This is the main entry point for users to interact with Sleuth by issuing command options.
Command options
--select [keys]
Only show the selected JSON keys, along with their values.
Exclude any object that does not contain the keys.