davidcarlton / sumo-cli-client

A CLI client for the Sumo search API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a CLI client for the Sumo Logic Search Job API. You can use it to search the system and retrieve results.

It's very much a work in progress: in particular, I need to think more about what output formats would be helpful, and about error handling. But it does seem to work in its current form.

To build it, download Rust (I used Rust 1.2.0), type cargo test to see if it built properly, and then cargo run -- -h to see the options. (When invoking the program, think of cargo run -- as the name of the program - all flags listed go after that.) A sample invocation, doing a search for errors by source category over the last 5 minutes, is

cargo run -- -u USERNAME -e https://ENDPOINT//api/v1/search/jobs -m 5 "error | count by _sourcecategory"

where ENDPOINT is as given in the API endpoint list.

About

A CLI client for the Sumo search API


Languages

Language:Rust 100.0%