usql is a command line SQL client for Uptycs with auto-complete and syntax highlighting features.
Pre-requisites for installation
Python 2.7 or higher
For complete details, refer to the article below
https://www.uptycs.com/blog/introducing-usql-an-interactive-command-line-tool-for-osquery-and-uptycs
Usage / examples:
usql -k <api_key_file> global
global> <global_queries>
usql -k <api_key_file> realtime
realtime> set hostname = '<hostname>'
realtime> <realtime queries>
global> use realtime;
realtime> use global;
Related Articles