Skip to content

davidcarlton/sumo-cli-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%