https://github.com/kipz/oak
Humio CLI log viewer written in ClojureScript
https://github.com/kipz/oak
clojurescript humio logging
Last synced: 3 months ago
JSON representation
Humio CLI log viewer written in ClojureScript
- Host: GitHub
- URL: https://github.com/kipz/oak
- Owner: kipz
- License: epl-2.0
- Created: 2020-02-17T21:58:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T13:11:40.000Z (over 2 years ago)
- Last Synced: 2025-03-05T12:15:20.590Z (3 months ago)
- Topics: clojurescript, humio, logging
- Language: Clojure
- Homepage:
- Size: 131 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Humio CLI log viewer written in ClojureScript
[](https://circleci.com/gh/kipz/oak)
[](https://www.npmjs.com/package/@kipz/oak)## Installation
```
npm i @kipz/oak -g
```## Running
Export an environment variable called `HUMIO_API_KEY` (or provided the `api-key` argument)
```
oak query -r [opts...] ["query string"]
```Query sub-command options:
```
NAME:
oak query - Query logs in humio via REST APIUSAGE:
oak query [command options] query ...OPTIONS:
-r, --repo S* Repository
--query S Query expressions
-u, --unix F false Unix timestamps instead of human readable ones
-f, --fields S Additional fields to display
-s, --start S 2minutes Relative time e.g. 1minute, 24hours etc
-?, --help```
## Development
To connect a repl:
```bash
npm run watch
```and in a different shell
```bash
node index.js
```Connect an nrepl to 8778, and run
```clojure
(shadow/repl :script)
```