chronicle-shell 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -4
- data/lib/chronicle/shell/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd121be7bcf453873b98d815bd22b5ef2a685b2e5752d88982ab435ded4e9a1d
|
4
|
+
data.tar.gz: f175ee27114f9b02344387e06a19122f400c37291e67721ad7aecfb32dc77016
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e652cbf303a7f5407d3d1bf67c688932836551760e5966a194ee75a2944957a958f3500e371cd116ad8050d798f8667fe24ad1eb01ad1425adf1d6716b909ab
|
7
|
+
data.tar.gz: 434efb8f969f5c28a6e49a89ab88a8193d9dd195365bd7be1d08d83b3cee1c3f8752c71b5e32604dd3bf5a15f49a0f485090d77b0832561f2d19219d0fa34d04
|
data/README.md
CHANGED
@@ -1,19 +1,25 @@
|
|
1
1
|
# Chronicle::Shell
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/chronicle-shell.svg)](https://badge.fury.io/rb/chronicle-shell)
|
2
3
|
|
3
4
|
Shell importer for [chronicle-etl](https://github.com/chronicle-app/chronicle-etl)
|
4
5
|
|
5
6
|
## Available Connectors
|
6
7
|
### Extractors
|
7
|
-
- `shell
|
8
|
+
- `shell:history` - Extract shell history from bash or zsh
|
8
9
|
|
9
10
|
### Transformers
|
10
|
-
- `shell
|
11
|
+
- `shell:history` - Turn a shell command into Chronicle Schema
|
11
12
|
|
12
|
-
## Usage
|
13
|
+
## Usage and examples
|
13
14
|
|
14
15
|
```bash
|
16
|
+
# install chronicle-etl and then this plugin
|
15
17
|
gem install chronicle-etl
|
16
18
|
chronicle-etl plugins:install shell
|
17
19
|
|
18
|
-
|
20
|
+
# output commands since Feb 7 as json
|
21
|
+
chronicle-etl --extractor shell:history --transformer shell:history --since "2022-02-07" --loader json
|
22
|
+
|
23
|
+
# Show recent commands sorted by frequency of use
|
24
|
+
chronicle-etl --extractor shell:history --limit 500 --fields command --silent | sort | uniq -c | sort -nr
|
19
25
|
```
|