6 releases
0.1.1-alpha7 | Feb 6, 2024 |
---|---|
0.1.1-alpha4 | Jul 5, 2023 |
0.1.1-alpha3 | Apr 23, 2023 |
0.0.1 | Mar 23, 2023 |
#914 in Web programming
56KB
1K
SLoC
splunk
A start on implementing a Rust crate for Splunk-related things.
Check out the tests and examples in the source repository for some implementation hints.
This is async, no blocking thanks!
TODO
- Most of it!
- HEC Transfers
- send_event sends a single event
- if you want to batch up things, you can use send_events and/or HecClient.enqueue() / HecClient.flush()
- REST API Auth
- Basic Authentication to the REST API
- Token Authentication to the REST API
- Cookie-based Authentication to the REST API
- REST API SearchJob
- create
<http://dev.splunk.com/view/SP-CAAAEE5#searchjobparams>
- disable preview
- enable preview
- events handle
- export
- oneshot
- cancel
- finalize job
- is_done
- is_ready
- name getter (search ID)
- pause / unpause
- searchlog (http://docs.splunk.com/Documentation/Splunk/latest/RESTAPI/RESTsearch#GET_search.2Fjobs.2F.7Bsearch_id.7D.2Fsearch.log)
- set_priority (0-10)
- summary (GET search/jobs/{search_id}/summary http://docs.splunk.com/Documentation/Splunk/latest/RESTAPI/RESTsearch#GET_search.2Fjobs.2F.7Bsearch_id.7D.2Fsummary)
- timeline GET search/jobs/{search_id}/timeline http://docs.splunk.com/Documentation/Splunk/latest/RESTAPI/RESTsearch#GET_search.2Fjobs.2F.7Bsearch_id.7D.2Ftimeline`
- touch the job (set ttl)
- create
- SearchJob Results - maybe its own thing, maybe an Iterator?
Thanks
In no particular order:
Dependencies
~8–20MB
~294K SLoC